HI
I am looking to do some integrate from a C# application into Dynamics GP so that I can open a specific card.
In the example below I am trying to open a Debtor Maintenance card to a record with Debtor ID AMERICAN0002.
The Sanscript below opens the Debtor card, then opens the Customer lookup and populates this with the ID. I cannot work out how then to automatically close the lookup window. I have to manually close it, and it then opens the card to the correct record.
"open form RM_Customer_Maintenance; " +
"open form Customer_Lookup return to 'Customer Number' of window 'RM_Customer_Maintenance' of form 'RM_Customer_Maintenance'; " +
"call INITIALIZE of form Customer_Lookup, 1,0,\"AMERICAN0002\",\"\",\"\",\"\",\"\",\"\";"
I am calling this using the Dynamics Continuum Integration Library ActiveX component:
Dynamics.Application gpapp = new Dynamics.Application();
gpapp.ExecuteSanscript();
Can anybody suggest what I need to change in the Sanscript to make this fully automatic? Also am I approaching this in the best way or are there any other suggestions?
Regards
Ben