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
Jared TuttleJared Tuttle 

Cancel a time-based workflow on Opportunity based on criteria on a related object

My organization uses Opportunities to generate $Market_Project__c. When that Market_Project__c is generated, the opportunity fills in several fields and triggers a number of notifications and tasks.

Is it possible to delete the workflow rules (triggered off the Opportunity) based on the status of a custom checkbox $Market_Project__c.$Event_Cancelled?
sumit singh 37sumit singh 37
why to delete, just change the filter criteria
Jared TuttleJared Tuttle
The workflow is triggered based on criteria from the Opportunity object. I am trying to delete the rule based on criteria from the Market Project object, which does not appear in the dropdown.
sumit singh 37sumit singh 37
you cannot delete the workflow from apex class, 
is  Opportunity a parent object and Market Project object is child object, then use trigger to perform the action that you are doing through workflow