Header Ads Widget

WORKFLOW RULE TIME ACTION ||SFDC PROBLEMS AND SOLUTIONS || INTERVIEW STUFF

SFDC PROBLEMS AND SOLUTIONS

WORKFLOW RULE TIME ACTION:


Problem:
Basic issue in Time based workflow is after criteria match and action in Queue however after some time condition not equal than after user will get ACTION triggered through workflow.
Description:
We have faced one issue related with time based workflow. For example we have created Time based workflow and perform field update action after 48 hours time. We have inserted record and which satisfied the workflow rule condition. However after 2 hour of record insertion we have edited record and now this workflow condition not satisfying the criteria. Therefore as logically we don’t get any update after 48 hour time however time based workflow not recalculating the criteria once gets in workflow QUEUE. So this is the one of the limitation of time based workflow.
 Solution:
We could solve time based workflow recalculation issue using following steps:

  1. We could update the record manually and save it. It would be matched the latest criteria of workflow rule. However we have like hundreds of records to update that it will create problem than Follow below step 2.

  2. We can code and update the records:


    • Write code on After Update Trigger on Object

    • Call class on above trigger and having @Future method. (Issue we can’t update the record in Update trigger of itself object.)

    • In this future method write logic and update the record.

     We can monitor the time based workflow in Monitor on Setup>Monitor>Time Based Workflow Monitor.
    Conclusion: Use the above steps to solve the issue of Time Based Workflow.

Post a Comment

0 Comments