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
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.
Why dont you try flow controls -> conditional decision in respective workflow design, select the table, coloumn and amount with < XXX.
How do I write a coc?
I have not done one before..
Also can I write it in the validatesubmit method of the table?
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.
Thank you so much this worked.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,047
André Arnaud de Cal... 885 Super User 2025 Season 2
Sohaib Cheema 592 User Group Leader