function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TsvetyTsvety 

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)))
Best Answer chosen by Tsvety
Vijay NagarathinamVijay Nagarathinam
Hi Tsvety,

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

Carlos Campillo GallegoCarlos Campillo Gallego
Hi Tsvety,

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
Vijay NagarathinamVijay Nagarathinam
Hi Tsvety,

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
This was selected as the best answer