Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Run Macro after launch?

Posted on by 205

I have a situation where I need to disable HRM Solution Series prior to running an integration.  However, the dictionary must be loaded, else I get an error.

Is there any way to automatically disable HRM Solution Series after GP is launched, or through the integration itself?  I have a macro that will do it, so automating that macro gives me a possible route - if that can be done.

Thanks!

*This post is locked for comments

  • SaintFrag Profile Picture
    SaintFrag 205 on at
    RE: Run Macro after launch?

    Hmm... I will check out that solution next week.  Sounds promising!

    Thanks!

  • Suggested answer
    KirkLivermont Profile Picture
    KirkLivermont 5,985 on at
    RE: Run Macro after launch?

    What version are you on? Running GP 2013 there is a folder called startup on the home page if you place the macro in that folder it should execute after company login like you want.

    Sorry for the delayed response. I didn't know this was possible until I was troubleshooting a user's workstation for slow login times and noticed this.

    Best regards,

    Kirk

  • SaintFrag Profile Picture
    SaintFrag 205 on at
    RE: Run Macro after launch?

    Hmm... yeah, I don't want to have the macro handling any of the login stuff.  Just want it to run post-company selection.  I thought a quick link might even be a nice compromise, but that didn't work either.

  • KirkLivermont Profile Picture
    KirkLivermont 5,985 on at
    RE: Run Macro after launch?

    Hi,

    It is absolutely possible to achieve this but be aware that the GP password will be stored in plain text in the Macro file

    Here is what my batch file to open and automatically login to GP looks like.

    "C:\Program Files (x86)\Microsoft Dynamics\GP2015\Dynamics.exe" "C:\Program Files (x86)\Microsoft Dynamics\GP2015\Dynamics.set" "C:\Program Files (x86)\Microsoft Dynamics\GP2015\Login.mac"

    And the macro contents.

    # DEXVERSION=14.00.0072.000 2 2

    CheckActiveWin dictionary 'default'  form Login window Login

     MoveTo field Password

     TypeTo field Password , 'Password1'

     MoveTo field 'OK Button'

     ClickHit field 'OK Button'

    NewActiveWin dictionary 'default'  form sheLL window sheLL

    NewActiveWin dictionary 'default'  form sheLL window sheLL

    # You have chosen to use the sample company, which provides data that you can use to practice procedures or learn more about the product. When you use this sample company, the date is automatically set to April 12, 2017.

    NewActiveWin dictionary 'default'  form DiaLog window DiaLog

     ClickHit field OK

    NewActiveWin dictionary 'default'  form sheLL window sheLL

    NewActiveWin dictionary 'default'  form syReminders window syReminders

    This macro assumes that you are trying to use the last logged in account and as you can see the sa password in my test environment is Password1.

    Best regards,

    Kirk

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans