You need to sign in to do that
Don't have an account?
Topher Reynolds
How can I manage paused flow interviews with Apex in a trigger?
I have a Process that I have built that uses a time lapse to create a Task 7 days prior to a field on a custom SObject. This works fine unless the date happens to end up less than 7 days out, forinstance the dealine is 3 days away based on the date changed. I am controlling this in the trigger and that works as well. The problem is when the trigger creates the task immediately, the paused flow interview is not updated and ends up creating another Task when the original date is reached. I cannot find a way to control this in the trigger. Is there a way to do this?
Greetings!
I don't think there is any way of managing the paused flow via apex as you can delete the paused flow if you do not want them to fire at the scheduled time.
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri