Friday, 13 April 2012

How to create a macro to automatically log in and Post a batch

STEP 1: Create macro to sign into GP and post batch.

Click on GP launch file.
When the sign in window appears click 'Alt + F8' to begin the recording of the macro.
Name your macro and the location to be saved to.
Continue the process as if you were going to post the batch.
Therefore, enter userid and password, click ok, select company, etc.
Go to Menu and click Transactions>> Sales>> Series POst (for example). click on batch to post and continue with the steps that the auto proceedure should complete. once finished click 'Alt + F8" to stop recording the macro.


STEP 2: Create Notepad file.

Create a note pad document, in the contents of the document enter the location of the Dynamics exe file, the set file and the location of the macro.
For example: "C:\Program Files\Microsoft Dynamics\GP\DYNAMICS.EXE" "C:\Program Files\Microsoft Dynamics\GP\DYNAMICS.SET" "C:\Program Files\Microsoft Dynamics\GP\DATA\AUTOPOST.MAC"


STEP 3: Change notepad file to batch file.

Right click on the notepad file and change the extention from '.txt' to '.bat'


STEP 4: Run macro.
To run macro just double click on the batch file.

*If you need to edit the batch file - right click on the file and click 'edit'

For more information on Integration manager autoposts see the following link by Mariano Gomez.
http://dynamicsgpblogster.blogspot.com/2009/01/how-to-schedule-dynamics-gp-to.html

No comments:

Post a Comment