Hi awesome community!
I'm trying to write a code that should run once a status field value has changed.
The table that has the status field is in Model1, and I want to write my code in a different model Model2.
And what I want to accomplish is when the status field will change to a different value for a record in a table in Model1, I want my code in Model2 to run.
I tried using /Events/ available in the table and copied the event handler and pasted it in a class in Model2.
The events I tried:
- OnModifiedField
- OnModifiedFieldValue
Screenshot for events in table:
But both of these events did not trigger when I changed the value in the Table in model1.
Note*: The status field value is changing through a workflow. So once I click on the workflow Approve button on the form for the workflow, the status field value will change once workflow is complete.
Why the events are not triggering? is it because I'm modifying the field through workflow?
How to achieve once the status field changed in the table in model1, the code in model2 should run?
Any advice is appreciated !
Thanks in advance!