Process Builder Vs Workflow - Who Wins
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
2
down vote
favorite
We utilise email-to-case, I have a process builder flow executing on new cases that, amongst other elements, closes cases received from specific emails automatically. The conditions for this are, the logic is (1 OR 2 OR 3 OR 4) AND 5 AND 6
- SuppliedEmail = X4@X.com
- SuppliedEmail = X3@X.com
- SuppliedEmail = X2@X.com
- SuppliedEmail = X1@X.com
- Record Type = 'Blah'
- Status does not equal 'Closed'
I also have a Workflow rule, which judging by the Salesforce order of execution is executed next. This rule runs against the Email message object and reopens closed cases with logic 1 AND 2 AND (3 OR 4 OR 5 OR 6):
- Email Messainge: Is Incoming equals True
- Case: Closed equals True
- Email Message: From Address not equal to X4@X.com
- Email Message: From Address not equal to X3@X.com
- Email Message: From Address not equal to X2@X.com
- Email Message: From Address not equal to X1@X.com
I expected the workflow rule NOT to fire on emails received from the same from address as the SuppliedEmail on the case.
Unfortunately when a record comes in, the process runs first and correctly executes the actions but so does the workflow, the email address are correct. You can see the case history here, the bottom three actions are the process builder flow and the next two are the workflow rule. Can you advise what is wrong with my workflow logic?
Thanks
workflow visual-workflow
add a comment |Â
up vote
2
down vote
favorite
We utilise email-to-case, I have a process builder flow executing on new cases that, amongst other elements, closes cases received from specific emails automatically. The conditions for this are, the logic is (1 OR 2 OR 3 OR 4) AND 5 AND 6
- SuppliedEmail = X4@X.com
- SuppliedEmail = X3@X.com
- SuppliedEmail = X2@X.com
- SuppliedEmail = X1@X.com
- Record Type = 'Blah'
- Status does not equal 'Closed'
I also have a Workflow rule, which judging by the Salesforce order of execution is executed next. This rule runs against the Email message object and reopens closed cases with logic 1 AND 2 AND (3 OR 4 OR 5 OR 6):
- Email Messainge: Is Incoming equals True
- Case: Closed equals True
- Email Message: From Address not equal to X4@X.com
- Email Message: From Address not equal to X3@X.com
- Email Message: From Address not equal to X2@X.com
- Email Message: From Address not equal to X1@X.com
I expected the workflow rule NOT to fire on emails received from the same from address as the SuppliedEmail on the case.
Unfortunately when a record comes in, the process runs first and correctly executes the actions but so does the workflow, the email address are correct. You can see the case history here, the bottom three actions are the process builder flow and the next two are the workflow rule. Can you advise what is wrong with my workflow logic?
Thanks
workflow visual-workflow
so the process builder - closes the cases and Workflow rule - Reopens the closed cases. Right? If yes, according to your case history, the workflow seems to be executed first... If I am wrong, please share the entire case history.
– Saumya Gaikwad
Aug 30 at 11:09
Hi, logically it should (I assume email to case creates the email message record before the case record) but the case history shows the process builder running first - it closes the cases - the workflow rule is designed to re-open cases when a new email comes in. Sorry I didn't talk about actions enough above.
– sfdc_beginner1
Aug 30 at 11:48
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
We utilise email-to-case, I have a process builder flow executing on new cases that, amongst other elements, closes cases received from specific emails automatically. The conditions for this are, the logic is (1 OR 2 OR 3 OR 4) AND 5 AND 6
- SuppliedEmail = X4@X.com
- SuppliedEmail = X3@X.com
- SuppliedEmail = X2@X.com
- SuppliedEmail = X1@X.com
- Record Type = 'Blah'
- Status does not equal 'Closed'
I also have a Workflow rule, which judging by the Salesforce order of execution is executed next. This rule runs against the Email message object and reopens closed cases with logic 1 AND 2 AND (3 OR 4 OR 5 OR 6):
- Email Messainge: Is Incoming equals True
- Case: Closed equals True
- Email Message: From Address not equal to X4@X.com
- Email Message: From Address not equal to X3@X.com
- Email Message: From Address not equal to X2@X.com
- Email Message: From Address not equal to X1@X.com
I expected the workflow rule NOT to fire on emails received from the same from address as the SuppliedEmail on the case.
Unfortunately when a record comes in, the process runs first and correctly executes the actions but so does the workflow, the email address are correct. You can see the case history here, the bottom three actions are the process builder flow and the next two are the workflow rule. Can you advise what is wrong with my workflow logic?
Thanks
workflow visual-workflow
We utilise email-to-case, I have a process builder flow executing on new cases that, amongst other elements, closes cases received from specific emails automatically. The conditions for this are, the logic is (1 OR 2 OR 3 OR 4) AND 5 AND 6
- SuppliedEmail = X4@X.com
- SuppliedEmail = X3@X.com
- SuppliedEmail = X2@X.com
- SuppliedEmail = X1@X.com
- Record Type = 'Blah'
- Status does not equal 'Closed'
I also have a Workflow rule, which judging by the Salesforce order of execution is executed next. This rule runs against the Email message object and reopens closed cases with logic 1 AND 2 AND (3 OR 4 OR 5 OR 6):
- Email Messainge: Is Incoming equals True
- Case: Closed equals True
- Email Message: From Address not equal to X4@X.com
- Email Message: From Address not equal to X3@X.com
- Email Message: From Address not equal to X2@X.com
- Email Message: From Address not equal to X1@X.com
I expected the workflow rule NOT to fire on emails received from the same from address as the SuppliedEmail on the case.
Unfortunately when a record comes in, the process runs first and correctly executes the actions but so does the workflow, the email address are correct. You can see the case history here, the bottom three actions are the process builder flow and the next two are the workflow rule. Can you advise what is wrong with my workflow logic?
Thanks
workflow visual-workflow
asked Aug 30 at 10:55
sfdc_beginner1
51113
51113
so the process builder - closes the cases and Workflow rule - Reopens the closed cases. Right? If yes, according to your case history, the workflow seems to be executed first... If I am wrong, please share the entire case history.
– Saumya Gaikwad
Aug 30 at 11:09
Hi, logically it should (I assume email to case creates the email message record before the case record) but the case history shows the process builder running first - it closes the cases - the workflow rule is designed to re-open cases when a new email comes in. Sorry I didn't talk about actions enough above.
– sfdc_beginner1
Aug 30 at 11:48
add a comment |Â
so the process builder - closes the cases and Workflow rule - Reopens the closed cases. Right? If yes, according to your case history, the workflow seems to be executed first... If I am wrong, please share the entire case history.
– Saumya Gaikwad
Aug 30 at 11:09
Hi, logically it should (I assume email to case creates the email message record before the case record) but the case history shows the process builder running first - it closes the cases - the workflow rule is designed to re-open cases when a new email comes in. Sorry I didn't talk about actions enough above.
– sfdc_beginner1
Aug 30 at 11:48
so the process builder - closes the cases and Workflow rule - Reopens the closed cases. Right? If yes, according to your case history, the workflow seems to be executed first... If I am wrong, please share the entire case history.
– Saumya Gaikwad
Aug 30 at 11:09
so the process builder - closes the cases and Workflow rule - Reopens the closed cases. Right? If yes, according to your case history, the workflow seems to be executed first... If I am wrong, please share the entire case history.
– Saumya Gaikwad
Aug 30 at 11:09
Hi, logically it should (I assume email to case creates the email message record before the case record) but the case history shows the process builder running first - it closes the cases - the workflow rule is designed to re-open cases when a new email comes in. Sorry I didn't talk about actions enough above.
– sfdc_beginner1
Aug 30 at 11:48
Hi, logically it should (I assume email to case creates the email message record before the case record) but the case history shows the process builder running first - it closes the cases - the workflow rule is designed to re-open cases when a new email comes in. Sorry I didn't talk about actions enough above.
– sfdc_beginner1
Aug 30 at 11:48
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
5
down vote
According to Order of Execution, workflow rule will be evaluated first and since in the criteria Case: Closed equals True
, so workflow rule will not meet the criteria.
So, process builder will come next and it meets the criteria Status does not equal 'Closed'
and it is executed first.
After this execution, system has updated the status and workflow rule is getting evaluated again and that time it matches with Case: Closed equals True
and hence workflow works.
Hope it clarifies your doubt.
Order is like this at this scenario
- Workflow tries to execute and not matching the rule criteria
- Process builder executing as matching the criteria.
- Workflow is executing again since record got updated.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
According to Order of Execution, workflow rule will be evaluated first and since in the criteria Case: Closed equals True
, so workflow rule will not meet the criteria.
So, process builder will come next and it meets the criteria Status does not equal 'Closed'
and it is executed first.
After this execution, system has updated the status and workflow rule is getting evaluated again and that time it matches with Case: Closed equals True
and hence workflow works.
Hope it clarifies your doubt.
Order is like this at this scenario
- Workflow tries to execute and not matching the rule criteria
- Process builder executing as matching the criteria.
- Workflow is executing again since record got updated.
add a comment |Â
up vote
5
down vote
According to Order of Execution, workflow rule will be evaluated first and since in the criteria Case: Closed equals True
, so workflow rule will not meet the criteria.
So, process builder will come next and it meets the criteria Status does not equal 'Closed'
and it is executed first.
After this execution, system has updated the status and workflow rule is getting evaluated again and that time it matches with Case: Closed equals True
and hence workflow works.
Hope it clarifies your doubt.
Order is like this at this scenario
- Workflow tries to execute and not matching the rule criteria
- Process builder executing as matching the criteria.
- Workflow is executing again since record got updated.
add a comment |Â
up vote
5
down vote
up vote
5
down vote
According to Order of Execution, workflow rule will be evaluated first and since in the criteria Case: Closed equals True
, so workflow rule will not meet the criteria.
So, process builder will come next and it meets the criteria Status does not equal 'Closed'
and it is executed first.
After this execution, system has updated the status and workflow rule is getting evaluated again and that time it matches with Case: Closed equals True
and hence workflow works.
Hope it clarifies your doubt.
Order is like this at this scenario
- Workflow tries to execute and not matching the rule criteria
- Process builder executing as matching the criteria.
- Workflow is executing again since record got updated.
According to Order of Execution, workflow rule will be evaluated first and since in the criteria Case: Closed equals True
, so workflow rule will not meet the criteria.
So, process builder will come next and it meets the criteria Status does not equal 'Closed'
and it is executed first.
After this execution, system has updated the status and workflow rule is getting evaluated again and that time it matches with Case: Closed equals True
and hence workflow works.
Hope it clarifies your doubt.
Order is like this at this scenario
- Workflow tries to execute and not matching the rule criteria
- Process builder executing as matching the criteria.
- Workflow is executing again since record got updated.
answered Aug 30 at 11:53


Santanu Boral
28.4k52048
28.4k52048
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f230682%2fprocess-builder-vs-workflow-who-wins%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
so the process builder - closes the cases and Workflow rule - Reopens the closed cases. Right? If yes, according to your case history, the workflow seems to be executed first... If I am wrong, please share the entire case history.
– Saumya Gaikwad
Aug 30 at 11:09
Hi, logically it should (I assume email to case creates the email message record before the case record) but the case history shows the process builder running first - it closes the cases - the workflow rule is designed to re-open cases when a new email comes in. Sorry I didn't talk about actions enough above.
– sfdc_beginner1
Aug 30 at 11:48