In trvexpenses form there is a standard workflow.
If the amount in the trvexptrans table is more than 1000( just an example) I don't want the the user to be able to submit the record to the workflow.
How do I do this?
Do I extend the workflow event handler? If so then how?
Thank you
Thank you so much this worked.
Hi Prachi,
Please check this link on how you can create CoC for a table method. I think validateSubmit method will work as well. To be sure, you can debug and make sure this method is being called before submitting to workflow.
How do I write a coc?
I have not done one before..
Also can I write it in the validatesubmit method of the table?
Hi Prachi,
Why dont you try flow controls -> conditional decision in respective workflow design, select the table, coloumn and amount with < XXX.
Hi Prachi,
Please check the method TrvExpTable\canBeSubmitted. This method already contains logic validating if an expense report can be submitted. You can create a CoC for this method and add your validation logic here.
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,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156