You need to sign in to do that
Don't have an account?
Tsvety
Workflow triggers, process builder workflow does not
Hi experts,
I built a workflow that works fine, but when I tried to re-create it using process builder it does not.
What am I doing wrong?
1) Workflow Rule Criteria
AND(
ISPICKVAL(Location_Country__c, "USA"),
NOW()< High_Priority_Date_Time__c +30*60/1440,
RecordType.DeveloperName <> "Internally staffed",
SLA_met__c = FALSE,
ISPICKVAL( Approval_history_status__c,"Approved"),
ISPICKVAL(ts2__Priority__c, "High"),
ISPICKVAL(ts2__Status__c,"Open"),
NOT(ISBLANK(ts2__Account__c)))
2) Process Builder Formula
AND(
ISPICKVAL([ts2__Job__c].Location_Country__c , "USA"),
NOW()< [ts2__Job__c].High_Priority_Date_Time__c +30*60/1440,
[ts2__Job__c].RecordType.DeveloperName <> "Internally staffed",
[ts2__Job__c].SLA_met__c = FALSE,
ISPICKVAL( [ts2__Job__c].Approval_history_status__c,"Approved"),
ISPICKVAL([ts2__Job__c].ts2__Priority__c,"High"),
ISPICKVAL([ts2__Job__c].ts2__Status__c,"Open"),
NOT(ISBLANK([ts2__Job__c].ts2__Account__c)))
I built a workflow that works fine, but when I tried to re-create it using process builder it does not.
What am I doing wrong?
1) Workflow Rule Criteria
AND(
ISPICKVAL(Location_Country__c, "USA"),
NOW()< High_Priority_Date_Time__c +30*60/1440,
RecordType.DeveloperName <> "Internally staffed",
SLA_met__c = FALSE,
ISPICKVAL( Approval_history_status__c,"Approved"),
ISPICKVAL(ts2__Priority__c, "High"),
ISPICKVAL(ts2__Status__c,"Open"),
NOT(ISBLANK(ts2__Account__c)))
2) Process Builder Formula
AND(
ISPICKVAL([ts2__Job__c].Location_Country__c , "USA"),
NOW()< [ts2__Job__c].High_Priority_Date_Time__c +30*60/1440,
[ts2__Job__c].RecordType.DeveloperName <> "Internally staffed",
[ts2__Job__c].SLA_met__c = FALSE,
ISPICKVAL( [ts2__Job__c].Approval_history_status__c,"Approved"),
ISPICKVAL([ts2__Job__c].ts2__Priority__c,"High"),
ISPICKVAL([ts2__Job__c].ts2__Status__c,"Open"),
NOT(ISBLANK([ts2__Job__c].ts2__Account__c)))
The order of the execution is different for workflow and process builder.If the trigger having any update operation then workflow rule and field update will fired. Once the update trigger event is finished then the process builder execution is starte to execute once.
Please refer the order of execution :
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm
Thanks,
Vijay
All Answers
Apparently both have the same logic (assuming that the object is ts2__Job__c in both scenarios). Have you checked that the process is marked to trigger when you want? (just creating ts2__Job__c records or when editing them as well) and more important (and it's very common), have you activated the flow? you can't imagine how many times this happens...
Regards
The order of the execution is different for workflow and process builder.If the trigger having any update operation then workflow rule and field update will fired. Once the update trigger event is finished then the process builder execution is starte to execute once.
Please refer the order of execution :
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm
Thanks,
Vijay