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
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.
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156