2

I have around 50+ workflows rules in our org. And there may be around 5 to 10 rules which Have time dependent workflow actions. How can I easily identify which workflow rule has one?

  • 1
    I don't know about 'easily', but as a developer I just search within the eclipse IDE for the term 'workflowTimeTriggers'. – Nick Cook Sep 1 '15 at 4:47
  • Are you sure that this info is available in eclipse? If both tooling API & Meta data API do not provide details about Workflow Queue object then how eclipse which use these API can give information about Workflow Queue ? – AtulRajguru9 Sep 1 '15 at 7:07
1

Currently both tooling API & Meta data API do not provide details about Workflow Queue object where information about time dependent workflow is stored.

https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_types_list.htm

https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/reference_objects_list.htm

So there there is no legitimate way by which you can do this. But there is workaround that you can use.

You can set naming convention where all time dependent workflows must start with name "Time_XXXXX" using any of above api you can get the list of all workflows and search for "Time_" sting in name field.

/services/data/v34.0/tooling/query/?q=Select+id,+name+from+WorkflowRule

The other work around is screen scrape Salesforce with REST GET call from Apex which not recommended.

screen scrape Salesforce with REST GET call from Apex

| improve this answer | |
  • 2
    well if u r having a naming standard, then u can have a list view to filter on the WFR name starting with Time_ to easily see them – Vamsi Krishna Gosu Sep 1 '15 at 6:12
  • Yes, this will work if you don't need list in your code. – AtulRajguru9 Sep 1 '15 at 6:51
  • Thank you guys. Mine is a one off scenario, so I will manually open the workflows and see if there is one and update the name of the workflow rules for future references. – Goki Sep 2 '15 at 1:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.