Hey guys,
I have an integration where I write receiving transactions to GP via eConnect, which works great, and in the same process, I have them write the receiving transaction to a SQL database as well, which works fine (most of the time). The issue is, I have the eConnect transaction going first, so it will sometimes succeed, and the subsequent SQL transaction may fail...not a big deal, except for the fact that the user will then go and try again since they got a failure which will then cause duplicates in my receiving in GP. Is there anyway to run some addition SQL statements as part of an eConnect transaction, or is there a way to hold the eConnect transaction until I call commit/rollback or something similar? I thought about reversing the process, but the problem is that if the user receives the product succesfully and gets an error from eConnect (which happens from time to time), then my users (who are mostly lazy), won't both to let accounting know to manually generate the receipt...so I'd rather some obvious duplicates rather than nothing at all.
Any insight would be much appreciated.
Thanks,
Aj
*This post is locked for comments
I have the same question (0)