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
saintrjsaintrj 

Workflow rule doesn't work as expected

I have creted a workflow rule that is supposed to run only if a text field is not blank. I used the syntax IS NOT EQUAL TO "NULL"

 

However it is running the rule for every edit.   Clearly I'm doing something wrong, but I am not sure what.

Best Answer chosen by Admin (Salesforce Developers) 
venkat-Dvenkat-D

Use the below formula in the workfloe evaluation criteria

 

(!ISBLANK(fieldname)) && (!ISNULL(fieldname))

 


All Answers

Starz26Starz26

The rule will run for every edit and only esclate if the criteria are met.

 

Can to post the rule and the relevant debug log info so we can better assist you

saintrjsaintrj

Yes it runs but it always assesses the conditionas true and updates the field whether the criteria field is blank or not :

 

I don't know how to post the rule

 

Criteria is: evaluate every time edit, {significanT action{(a text field) IS NOT EQUAL TO NULL

Action Update field date field to Today().

 

Problem is field updates whether text field is blank or not. i want it to only update if it is not blank

 

venkat-Dvenkat-D

Use the below formula in the workfloe evaluation criteria

 

(!ISBLANK(fieldname)) && (!ISNULL(fieldname))

 


This was selected as the best answer