Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Document Number for Cash Receipt empty using Integration Manager

Posted on by Microsoft Employee

Hello,

I'm Integrating Cash Receipts using Integration Manager. The integration is set up to write back the status of each integration to an internal DB. I'd like to be able to write the Document Number (Receipt) as well, but when I try to query DestinationFields("Receipt") in VBA Script of AfterDocument, it comes up empty. The Receipt field is set to Default, and all the receipts integrated into GP do have the Receipt numbers of the form PYMNTxxxxxxx. How can I get this number in the integration?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Document Number for Cash Receipt empty using Integration Manager

    Hi Leslie,

    Thanks for the answer. Since there's no way to read the Receipt from the IM, I decided to just make up my own receipt numbers and use them instead of the default. I'm going for the simplest solution here. If user modifies that number in GP, the link will be broken, but for now I can just instruct the users not to do that (it's a very small team). In the future I'll write more code to follow each document more closely from the GP tables directly.

  • Verified answer
    L Vail Profile Picture
    L Vail 65,271 on at
    RE: Document Number for Cash Receipt empty using Integration Manager

    Hi,

    I think you'll need to query the table. I don't think IM knows what the receipt number is going to be. I believe it's assigned when receipt writes to the table. However, even though it has been imported, it can still be modified or deleted before it is posted. Do you have a way to update your private table in the event something like that happens?

    Kind regards,

    Leslie

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!

Community AMA December 12th

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

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