Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Integration Manager and SQL script

(0) ShareShare
ReportReport
Posted on by

We are on GP13 with sp1 and every time we run a IM to upload assets into GP and run Projections/Depreciation, it errors out. Here is a script that I can run after the upload that prevents the error. I am running the script after the upload against the company database. I was told that there is a way to add this script to IM so I don't have to run the script each time.

This is my first time doing this. Any help will be greatly appreciated.

Here is the script:

update a set a.GLINTACCTINDX=b.DEPRRESVACCTINDX from FA00902 a join FA00400 b on a.ASSETINDEX=b.ASSETINDEX

where a.TRANSACCTTYPE = '1' and a.GLINTACCTINDX='0'

update a set a.GLINTACCTINDX=b.DEPREXPACCTINDX from FA00902 a join FA00400 b on a.ASSETINDEX=b.ASSETINDEX

where a.TRANSACCTTYPE = '2' and a.GLINTACCTINDX='0'

update a set a.GLINTACCTINDX=b.ASSETCOSTACCTINDX from FA00902 a join FA00400 b on a.ASSETINDEX=b.ASSETINDEX

where a.TRANSACCTTYPE = '3' and a.GLINTACCTINDX='0'

update a set a.GLINTACCTINDX=b.PROCEEDSACCTINDX from FA00902 a join FA00400 b on a.ASSETINDEX=b.ASSETINDEX

where a.TRANSACCTTYPE = '4' and a.GLINTACCTINDX='0'

update a set a.GLINTACCTINDX=b.RECGAINLOSSACCTINDX from FA00902 a join FA00400 b on a.ASSETINDEX=b.ASSETINDEX

where a.TRANSACCTTYPE = '5' and a.GLINTACCTINDX='0'

update a set a.GLINTACCTINDX=b.NONRECGAINLOSSACCTINDX from FA00902 a join FA00400 b on a.ASSETINDEX=b.ASSETINDEX

where a.TRANSACCTTYPE = '6' and a.GLINTACCTINDX='0'

update a set a.GLINTACCTINDX=b.CLEARINGACCTINDX from FA00902 a join FA00400 b on a.ASSETINDEX=b.ASSETINDEX

where a.TRANSACCTTYPE = '7' and a.GLINTACCTINDX='0'

*This post is locked for comments

  • Verified answer
    Mick Egan Profile Picture
    Mick Egan 3,561 on at
    RE: Integration Manager and SQL script

    If you open the script window in IM, there are samples that can be used.

    These will tell you where to place the script, in this case you would be looking for an After Integration.

    Mick

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans