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
Lucrecia Lopez 2017Lucrecia Lopez 2017 

profiles id's in email alert formula

I have an email alert setup to fire out when a lead is at a specific lead status and there has been no activity in 25 days. But now I need to add a third statement ensuring that if the lead is modified by the following profile id's: 00570000001m9eZ and 00570000002oRin - - the email alert should NOT fire. Can someone please let me know how I can add that statement to my formula below?

((LastModifiedDate = Now() + (-25))) && (ISPICKVAL(Status,"Workig"))
Best Answer chosen by Lucrecia Lopez 2017
Saurabh BSaurabh B
Hi Lucrecia, please try formula below,
 
AND 
( 
(LastModifiedDate = Now() + (-25)),(ISPICKVAL(Status,"Workig")), 
($User.ID <> "00570000001m9eZ"), 
($User.ID <> "00570000002oRin") 
)

id's: 00570000001m9eZ and 00570000002oRin are user ID`s (and not profile IDs) correct?
 

All Answers

Saurabh BSaurabh B
Hi Lucrecia, please try formula below,
 
AND 
( 
(LastModifiedDate = Now() + (-25)),(ISPICKVAL(Status,"Workig")), 
($User.ID <> "00570000001m9eZ"), 
($User.ID <> "00570000002oRin") 
)

id's: 00570000001m9eZ and 00570000002oRin are user ID`s (and not profile IDs) correct?
 
This was selected as the best answer
Lucrecia Lopez 2017Lucrecia Lopez 2017
Thank you Saurabh! To answer your question, yes the ID's are user id's. Thanks again!
Saurabh BSaurabh B
Thank you Lucrecia. I`m glad it helped.

Please mark this as Best Answer so that it can help answers!