You need to sign in to do that
Don't have an account?
Mike A Smith
Automation email sending when status equals void and PB shows status equals Completed.
I dleleted the original question I posted as I had the wrong criteria.
We have a Process Builder that is sending a pre class confirmation email 7 days prior to the class start date. Part of the criteria is that the scheduling Status=Completed so why would emails still be sent when the criteria on the Training Event = Void?
In one example I'm looking at the TE was created on 5/22/23 with a class start date initially of 8/9/23. The start date, while 'In-Discussion' status, was changed around a little but always occuring in early August and ended up being set to 8/5/23. The Scheduling status was then set to Completed on 6/15/23. Then on 7/6/23 the Scheduling Status was changed from Completed to VOID.
So why might the email still have sent 7 days prior to 8.5.23 when the status no longer matched the criteria=Completed when it was changed to Void on 7/6/23?
Does the system check the criteria one last time to make sure everything still matches before sending the email? That's what a Salesforce support agent told me years ago so not sure if that's true today but would seem if was checking on 7/29/23 it would have seen the VOID status no longer matched the criteria Scheduling Status=Completed. And thus the email should not have been sent.
So any ideas at all why the email was sent out ?
We have a Process Builder that is sending a pre class confirmation email 7 days prior to the class start date. Part of the criteria is that the scheduling Status=Completed so why would emails still be sent when the criteria on the Training Event = Void?
In one example I'm looking at the TE was created on 5/22/23 with a class start date initially of 8/9/23. The start date, while 'In-Discussion' status, was changed around a little but always occuring in early August and ended up being set to 8/5/23. The Scheduling status was then set to Completed on 6/15/23. Then on 7/6/23 the Scheduling Status was changed from Completed to VOID.
So why might the email still have sent 7 days prior to 8.5.23 when the status no longer matched the criteria=Completed when it was changed to Void on 7/6/23?
Does the system check the criteria one last time to make sure everything still matches before sending the email? That's what a Salesforce support agent told me years ago so not sure if that's true today but would seem if was checking on 7/29/23 it would have seen the VOID status no longer matched the criteria Scheduling Status=Completed. And thus the email should not have been sent.
So any ideas at all why the email was sent out ?
https://help.salesforce.com/s/articleView?id=sf.process_limits_scheduled_processing.htm&type=5
As per the documentation, if the criteria does not match with updated record then the scheduled action will be cancelled.
Actions remain scheduled only as long as the criteria for the actions are still valid. If a record no longer matches the criteria, Salesforce cancels the scheduled actions for the record.
For processes that start when a record is created, Salesforce never reevaluates the record associated with that process. The scheduled time for the actions stays the same, even if the record no longer meets the associated criteria when the scheduled actions are executed.
Can you tell me how many days did you set up to send an email?
Thanks,
Sukanya Banekar
Here below is an actual TE (with History) that resulted in the email being sent even though the status was made VOID. Again the email is set to send 7 days prior to the start date so if the START DATE here was set as 8/5 then you would expect the email to send very early in the morning on 7/29 correct? But the Status was changed to VOID on the morning of 7/27 so then why did the email send on 7/29 if it would have evaluated the criteria again before sending as at that point the status was no longer 'Completed'... the criteria did not match before the send...:
Date Action
7/27/2023, 11:13 AM Changed Void Reason to Customer Declined.
Changed Scheduling Status from Completed to Void.
6/19/2023, 2:10 PM Changed Completed Date to 6/19/2023, 2:10 PM.
Changed Scheduling Status from In-Discussion to Completed.
6/19/2023, 1:27 PM Changed Start Date to 8/5/2023.
Changed Number of Instructors to 1.
Changed Number in Class to 12.
Changed End Date to 8/5/2023.
6/19/2023, 1:24 PM Changed Scheduling Status from Contacting to In-Discussion.
6/19/2023, 1:24 PM Changed Scheduling Status from Open to Contacting.
6/19/2023, 1:24 PM Created.
Please uncheck the checkbox and try..
If it is already unchecked then you should raise a case with Salesforce to invetsigate furthermore.
Or may be try using workflow rule.
Thanks,
Sukanya Banekar