+ Start a Discussion
VSUVSU 

how to include global user fields in process builder criteria?

We have a current process which needs to execute when an opportuniy is updated to Closed Won with the following criteria. This is then followed by an automated flow (ss attached). I need to include few user profiles to avoid the error we now receive. How do I reference the global user fields in this rule?  Appreciate any help on this.

Criteria
User-added image

Action
User-added image

Error message:
User-added image
 
Raj VakatiRaj Vakati
Click on the  System Variable and Select a Global System Variable
 

Refer this images
User-added image

User-added image
VSUVSU
Will the conditions set in the criteria also run or do I have to include the in the formula?
Raj VakatiRaj Vakati
Yes .. try and let me know 
VSUVSU
now I get a flow error:

Flow Details
Flow Name: csm_new_Client_procedure
Type: Record Change Process
Version: 2
Status: Active
Org: Selligent (00D300000000CL5)
Flow Interview Details
Interview Label: csm_new_Client_procedure-2_InterviewLabel
Current User: Vinitha Subramanya (005f3000004Ca9w)
Start time: 10/16/2018 5:04 PM
Duration: 2 seconds
How the Interview Started
Vinitha Subramanya (005f3000004Ca9w) started the flow interview.
Some of this flow's variables were set when the interview started.
myVariable_old = Opportunity (006f300000ph6gyAAA)
myVariable_current = Opportunity (006f300000ph6gyAAA)
ASSIGNMENT: myVariable_waitStartTimeAssignment
{!myVariable_waitStartTimeVariable} Equals {!$Flow.CurrentDateTime}
Result
{!myVariable_waitStartTimeVariable} = "10/16/2018 5:04 PM"
DECISION: myDecision
Executed this outcome: myRule_1
Outcome conditions:
{!formula_myRule_1} (true) Equals true
OPPORTUNITY_CW_WON (FLOWS): myRule_1_A1
Inputs:
VarAccountID = {!myVariable_current.AccountId} (0013300001jvwAdAAI)

Error Occurred: An error occurred when executing a flow interview.


Salesforce Error ID: 2021581985-12215 (-467861607)
 
VSUVSU
User-added image
This is te new criteria. The previous condition was not deleted.
VSUVSU
It doesn't lookeprocess builder is running both conditions. Its either criteria in the "conditions are met" or "formula evaluates to true". 
How would I be able to add the profile if that;s the case?
VSUVSU
I tried inputting the below formula, but it is still throwing a flow error. 

User-added image