Hi Everyone,
There is a workflow which gets triggered on change of a date field for a custom entity (Agreements) to send emails based on wait condition (before 2 months from actual end date) from crm.
This date gets changed every time so i need to kill the workflow process sessions and only consider the latest one to send email to the user.
If i write a plugin on change of the date field and fetch all process sessions related to that workflow and based on the regarding record. Will i be able to change the status of the process session entity to Cancelled and only consider the latest started on process session?
Please suggest any other way for this requirement.
Thanks in advance.
Regards
AKHIL R









