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
AbAb 

Workflow entry criteria | Failure

Hello,

I have a workflow Rule with a field update attached with it.

The workflow entry criteria for workflow is as below:
AND( 
AND($Profile.Name <> 'Profile 1',$Profile.Name <> 'Profile 2',$Profile.Name <> 'Profile 3',$Profile.Name <> 'Profile 4',$Profile.Name <> 'Profile 5'), 
NOT(ISBLANK(customField__1)), 
Or( 
ISCHANGED( customField__1 ), 
ISNEW() ) 
)
I want to execute the workflow if it doesnot belong to certain profile
Profile 1 to Profile 5

the fielld update is not working as i want because of entry criteria.

Am i going wrong anywhere ?


 
Best Answer chosen by Ab
Amit Chaudhary 8Amit Chaudhary 8
Try to update your formula like below
AND( 
	AND(
		$Profile.Name !='Profile 1',
		$Profile.Name != 'Profile 2',
		$Profile.Name != 'Profile 3',
		$Profile.Name != 'Profile 4',
		$Profile.Name != 'Profile 5'
	), 
	NOT(ISBLANK(customField__1)), 
	Or(
		ISCHANGED( customField__1 ), 
		ISNEW() 
	) 
)

Let is know if this will help you
 

All Answers

Cloud AtlasCloud Atlas
Workflow is working fine.
I just checked it out and it did update the field correctly..
See if there is some other workflow/process changing the value.
Triggers fire before WF rules, so triggers should be causing a problem.

Post you field update as well if you can.
Amit Chaudhary 8Amit Chaudhary 8
Try to update your formula like below
AND( 
	AND(
		$Profile.Name !='Profile 1',
		$Profile.Name != 'Profile 2',
		$Profile.Name != 'Profile 3',
		$Profile.Name != 'Profile 4',
		$Profile.Name != 'Profile 5'
	), 
	NOT(ISBLANK(customField__1)), 
	Or(
		ISCHANGED( customField__1 ), 
		ISNEW() 
	) 
)

Let is know if this will help you
 
This was selected as the best answer