I was hoping to use Process Builder to follow the same princinples as the Lead Assignment rules where:
[Lead].Owner:Queue.OwnerId equals Type:ID "SF ID for the Queue"
[Lead].Status Is Changed Type:Boolean "True"
[Lead].Status Equals Type: Picklist "MQL"
All of these conditions are met.
IMMEDIATE ACTIONS Update Records - Lead
Owner ID Type:Formula
and this is my formula:
CASE ( [Lead].Round_Robin_ID__c ,
1, "00515000006pxuL",
2, "00515000007TpVW",
3, "00515000007TpW0",
4, "00515000007FAHI",
5, "00515000007TpW0",
"00515000007EOVv")
STOP
Unfortunately when I go to a lead that is owned by the queue above and change the lead status to MQL - the Process doesn't update the lead owner and I get a errow (below)
Error element myWaitEvent_myWait_myRule_1_event_0_SA1 (FlowActionCall).
An Apex error occurred: System.DmlException: Update failed. First exception on row 0 with id 00Qg000000B3NTcEAN; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed to execute the flow with version ID 301g00000007xAT. Flow error messages: An unhandled fault has occurred in this flow
An unhandled fault has occurred while processing the flow. Please contact your system administrator for more information. Contact your administrator for help.:
2 respuestas
So as I was unable to get this to work, I went back to basics. I create a workflow rule for every round robin nuber with the criteria that if a lead in the fishing queue status changed to MQL - the lead would be assigned based on the round robin ID (which the leads assignment rules created. It means a rule for each round robin ID - messy but works.