I found a code to do send email after PO is released
It showed the message.
But I wonder the line " Commit();" should included or not ?
Does above code have any risk ?
Is there other better way or the above one is best ?
Thanks
I found a code to do send email after PO is released
It showed the message.
But I wonder the line " Commit();" should included or not ?
Does above code have any risk ?
Is there other better way or the above one is best ?
Thanks
Including the "Commit();" line in your code is good idea. It separates the transaction scope of the released document from your email send code which means that if there is an error or failure in sending the email, the purchase order will still be released as Mohana mentioned..
Do you want to release the order if you get any error in email sending process?
if yes then use commit, if not remove commit
André Arnaud de Cal...
293,041
Super User 2025 Season 1
Martin Dráb
231,856
Most Valuable Professional
nmaenpaa
101,156
Moderator