Showing posts with label API. Show all posts
Showing posts with label API. Show all posts
Friday, December 18, 2015
Wednesday, December 16, 2015
Testing the new transaction - MDBREADMI Part 3 of 3
Find the Transaction
a) Run Program MRS001 from SmartOffice and position to Program MDBREADMI
b) Right click for transactions then position to LstOOLINE71
I created a Lst transaction, over OOLINE71
Test the Transaction
a) Run MITEST
b) Enter the customer number you wish to search for.
c) You may get the error below
d) Only if you get the error above do you need to Clear Metadata Cache
e) The results are displayed below
Now all that remains is to add this new API transaction to the Mashup.
Create the new transaction - MDBREADMI Part 2 of 3
It is possible to create the transaction manually in smart office using MRS001 programs and transactions. I think it is much easier though to use the process below.
a) From your API tools folder, run the MdbRead.exe program
b) You will need the Host, Port, User and Password values to start the tool.
These are the same parameters needed for the more common MITEST program.
c) Enter the name of the file then click the define new transaction button
This will populate all the inbound (key fields). These are all required for a GET transaction, For a LST transaction you delete the ones you don't need.
d) You need to remove the Inbound fields one at a time by pressing the Remove last field button
e) Keep removing the fields until you have ONE more than the value you are going to use to select
f) Next add the output fields you need
g) Continue until you have all the fields you need
h) When you have all the output fields you need, press the Create Lst Trans button.
The Create Lst trans button does not provide a message box similar to "LstOOLINE71 Created", so if you are sure you pressed the button, don't press it again otherwise you will get another "LstOOLINE7101" which will need to be manually deleted using MRS001
Research the file you want to use - MDBREADMI Part 1 of 3
MDBREADMI is a new API which performs SQL like select statements against M3 tables. After you create the new API transaction you can easily use this in for example a Mashup.
a) Find the table you are looking for in MDP
I am going to use OOLINE
b) Review the available indexes for the table you wish to select over
You need to find an index in the order you need.
c) Take note of the Keys
If you are going to create a GET transaction you will need all the keys, I'm going to create a LST transaction.
d) Take note of the output fields you wish to be returned from the transaction you are about to create.
Subscribe to:
Posts (Atom)





















