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
Answer plzAnswer plz 

Process builder criteria not matching

In formula Evaluate True if Profile is Operator or Accountant and Status(picklist) is "Solved"then process builder fire update the status solved to "New".
I have used these conditions to Criteria. But I'm not getting desired output. 
$USer.UserName = 'Operator' OR $USer.UserName = 'Accountant' and Status = 'Solved'

 
PriyaPriya (Salesforce Developers) 

Hi 

In the statement you have mentioned that your criteria should be based on Profile name but in the formula you are using username. You need to use like below :- 

$Profile.Name == "Operator" || $Profile.Name == "Accountant" && [ObjectAPIName].Status='Solved'

Please mark as Best Answer so that it can help others in the future.

Regards,

Priya Ranjan

 

Suraj Tripathi 47Suraj Tripathi 47
Hi Priya,
To make it more clear.
If you want to check the Profile for the same as the owner of the record then you should use this:-
AND( OR([ObjectApiName].Owner.Profile.Name = 'Operator', [ObjectApiName].Owner.Profile.Name = 'Accountant' ), [ObjectApiName].Status = 'Solved')
else if you just want the profile of the current user the you can go with:-
AND( OR($Profile.Name = 'Operator',$Profile.Name = 'Accountant'), [ApiName].Status = 'Solved' )
If there is still any issue please mention it here.

Please mark it as the best answer if it helps you to fix the issue.
Thank and Regards,
Suraj Tripathi
richard thorntonrichard thornton
salesforce.com members can play world of solitaire (https://worldofsolitaires.co) for free online without download, install, or register. Update many beauty themes.
Website: https://worldofsolitaires.co