I’m working with the new “New Flow” option available in milestone actions (Entitlements and Milestones – Winter ’25 feature). According to the release notes, the process to add a flow is:
Open the milestone from an entitlement process. Click Add Actions and select New Flow to add the autolaunched flow. Go to Flow Builder to customize and activate this action.
From my testing, it seems:
- You can't create a flow directly from setup and then assign it to milestone action.
- You must create the flow directly from the milestone action UI for it to be selectable.
This becomes a problem when deploying to another environment. The flow itself deploys successfully and is available in the target org, but it can't be selected for the milestone action. The only way to link it is to recreate the flow from the “New Flow” action in the target org.
I've inspected the Entitlement Process metadata and found the following structure:
- The
EntitlementProcessmetadata has amilestionefield of typeEntitlementProcessMilestoneItem. - This type contains a
timeTriggersfield of typeEntitlementProcessMilestoneTrigger. - This in turn has an
actionsfield of typeWorkflowActionReference. - The
WorkflowActionReferencetype has a requiredtypefield of typeWorkflowActionType. - One of the available values of
typeisFlowAction, which corresponds to the autolaunched flow.
It looks like the association between milestone actions and flows is stored in a way that only recognizes flows created from that specific context, rather than any existing autolaunched flow.
IMPORTANTE NOTE (Let's continue with strange behaviours):
- Flows aren't shared between different Entitlement Processes. In other words, the flow created from an action in a Milestone associated with an Entitlement Process will only be available for other actions in other Milestones that are associated with the same Entitlement Process.
- Flows can only be selected if they are assigned to an action in a Milestone.If the flow is unassigned from all Milestone actions, it will no longer be available for selection again (even though it still exists). It has to be rebuilt in order to be assigned again.
Is this a known limitation?
Is there any metadata or deployment approach that allows using an already-deployed flow in a milestone action without having to recreate it manually?