I am trying to programatically disable a Business Rule using the SDK.
I am retrieving the Business Rule by retrieving the appropriate workflow record, making sure I select the 'Activation' record (Type=2), rather than the Definition Record, and retrieving the currently active record.
I've tried using a SetStateRequest, an UpdateRequest and a plain old Update. In every case I get the error message: "Cannot update a published workflow definition."
I've used similar code in the past to deactivate SDK message processing steps, but cannot figure how to get it to work for a Business Rule. Is there a different entity I should be trying to update, rather than workflow?
Thanks,
Ben