0

i want to fetch flows and provide a button to activate and deactivate the flow, i was able to fetch a flow but unable to activate and deactivate it.

  • I think it is able to do that using Metadata API after version 34 or so. – RCS Apr 9 '18 at 11:53
2

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

To activate a flow, modify the metadata object and set the activeVersionNumber to the version number to activate. To deactivate an active flow version, set the activeVersionNumber to 0 (zero) or omit the value.

| improve this answer | |

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.