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
Divya SDivya S 

Workflow rule not working

Hello,

My workflow rule for getting the timestamp of task closed time  is below :

AND(
  OR(
   ISPICKVAL(Status,"Completed"),
   ISPICKVAL(Status, "ReAssigned"),
   ISPICKVAL(Status, "Converted")
),
Closed_Time__c =NULL
)

For some reasons , the field update is not happening as the criteria fails.  But when I see the debug log, looks like it meets the criterias.  Debug log:

13:55:46.589 (1589264000)|WF_RULE_EVAL_VALUE|
13:55:46.589 (1589268000)|WF_RULE_EVAL_VALUE|
13:55:46.589 (1589273000)|WF_CRITERIA_END|false
13:55:46.589 (1589282000)|WF_CRITERIA_BEGIN|[Task:  00Tf000000DdwIE]|Closed Time|01Qf0000000D9jU|ON_ALL_CHANGES
13:55:46.589 (1589384000)|WF_FORMULA|Formula:AND(
  OR(
   ISPICKVAL(Status,"Completed"),
   ISPICKVAL(Status, "ReAssigned"),
   ISPICKVAL(Status, "Converted")
),
Closed_Time__c =NULL
)|Values:Status=Converted, Closed_Time__c=null
13:55:46.589 (1589393000)|WF_CRITERIA_END|false
13:55:46.589 (1589413000)|WF_SPOOL_ACTION_BEGIN|Workflow
13:55:46.589 (1589420000)|WF_ACTION| None

Can anyone help on this? Thanks in advance.

Best Answer chosen by Divya S
kevin lamkevin lam
Instead of Closed_Time__c =NULL, try ISBLANK(Closed_Time__c)

All Answers

kevin lamkevin lam
Instead of Closed_Time__c =NULL, try ISBLANK(Closed_Time__c)
This was selected as the best answer
praveen murugesanpraveen murugesan
Hi divya,

I think the conditions is correct and execution is entering to the next step. Check the security setting of the fileds which you want to upate. or check you may use two field upates for same fields.

Thanks,

Praveen Murugesan.
Divya SDivya S
Kevin,  Thanks so much , that worked !!!

 Praveen,  As I am a system admin I am able to work of workflows and hence have full access to the fields.



Divya SDivya S
Kevin, can you help me in this as well - https://developer.salesforce.com/forums?communityId=09aF00000004HMGIA2#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Formulas_Validation_Rules_Discussion&criteria=OPENQUESTIONS&id=906F0000000A2DDIA0
kevin lamkevin lam
FYI, workflow field updates work independently of field-level security.