Potential Fix for Flow Deployment Error with emailSimple / Send Email Core Action
I ran into an issue when deploying a Flow that uses the Salesforce Flow core action Send Email.
The deployment failed with this error:
Send_Email_to_Users (Action) - We can't find an action with the name and action type that you specified.
The action metadata looked valid:
<actionName>emailSimple</actionName>
<actionType>emailSimple</actionType>
However, the issue ended up being the versionString inside the actionCalls node.
In my sandbox, Salesforce generated the emailSimple action metadata with:
<versionString>3.0.1</versionString>
But in production, the same Send Email action was being generated with:
<versionString>2.0.1</versionString>
After changing the Flow metadata from 3.0.1 to 2.0.1, the deployment completed successfully.
Example:
<actionCalls>
<name>Send_Email_to_Users</name>
<label>Send Email to Users</label>
<actionName>emailSimple</actionName>
<actionType>emailSimple</actionType>
...
<nameSegment>emailSimple</nameSegment>
<offset>0</offset>
<versionString>2.0.1</versionString>
</actionCalls>
So, if you are seeing this deployment error with Flow Send Email / emailSimple, check whether the versionString value differs between sandbox and production.
This looks like an internal version mismatch for Salesforce’s emailSimple core action. The deployment error message does not directly identify versionString as the problem, so it can be easy to miss.
#Salesforce Developer #Flow #Automation #Metadata #Deployment #Salesforce CLI