Closed jsams-merkle closed 8 months ago
Just a thought, but do incomplete Action Plan Tasks have to be deleted before the Action Plan(s) can be deleted?
Yeah, that was the issue. Hopefully this issue thread helps someone else out there in the future :)
Describe the bug I have a Record-Triggered Flow set up to manage Action Plans created from AP Templates against Opportunities. The AP that should be running is based on the Stage of the Opportunity. When the Stage changes, I need any/all previous AP against that Opportunity to be closed/deleted/cancelled so that only the one for the current stage is running.
For example:
IsNew()
to identify) -> Create an AP from APTemplate1To manage the creation of the Action Plans against the Opportunity, I'm using the invocable Flow Action within my Record-Triggered Flow. This part works exactly as expected.
What does not work is deleting the existing APs on the Opportunity using a "Delete Records" element within the Flow. I get the following error from Flow.
To Reproduce Steps to reproduce the behavior:
I've included two screenshots showing the relevant portion of the Flow build.
Expected behavior I would expect the 'Delete Records' element in a Flow is able to successfully delete any Action Plans, including uncompleted AP Tasks and Tasks, without error. Or I would expect another Flow Action that can be used to cancel/close/delete any Action Plan.
Screenshots This screenshot shows the error.
Environment (please complete the following information):
OS: multiple
Browser: multiple, mostly Chromium-based (Edge, Brave, Chrome)
Action Plans Version: 4.3
Salesforce UI
Org Edition
Additional context N/A