Hi all,
I am new to coding.
I need help to write an apex trigger to display an error message(You must add atleast 1 product on the record to submit it for approval) before submitting a record for approval.
Suppose there is an object A and on its related list, there is option to add Products(also an object).
If I create a new record on object A and its status(field on Object A) is "Not Submitted" and has no product on it and if I click on the button(Submit for Approval), I should get an error message at the top(You must have atleast 1 product to submit it for approval). Seeing the error message, we will come to know why we are not able to submit the record for approval.
Tried to explain the whole scenario.
Thanks in Advance !
Kommentar schreiben...
0/9000