Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Need to Default Purchases Amount in Integration Manager when there are multiple distribution lines

Posted on by Microsoft Employee

The user needs to integrate credit memos with multiple distributions on the PURCH/Credit  side. They do not have the document total in the source file so they want it to default in. However, nether the Purchases/Document Amount nor the AP distribution amount defaults in (We have the source rule set to default Non-imported and it works when only 1 credit distribution line is in the file).

How do they get the Purchases Amount to default in and how do they get the AP account and amount to default in?

Thanks!

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Need to Default Purchases Amount in Integration Manager when there are multiple distribution lines

    D'oh. Totally zoned on the fact that I should check the working Integration for scripts.

    Before Integration:

    SetVariable "PurchaseAmount", CCur(0.00)

    Before Document Commit:

    DestinationFields("Purchases") = _

       GetVariable("PurchaseAmount")

    SetVariable "PurchaseAmount", CCur(0.00)

    On the Credit Distribution Field will be:

    SetVariable "PurchaseAmount", _

       CCur(GetVariable("PurchaseAmount")) + _

       CCur(SourceFields("AP Credit Memo.Amount"))

    CurrentField = SourceFields("AP Credit Memo.Amount")

    Thanks!

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans