0

1)How can we access Workflows in apex classes? Using describe method I am able to access sObject but not workflows. Is there any way to fetch schema of workflow.

2) can we access workflow using describe method?

1
2

You can not access workflows in Apex class using built in apex methods as it is itself a part of automation or we can say business rule. Also workflows don't require user interaction to proceed so they don't have significance of being available in normal Apex scenarios.

Instead Metadata API is the only solution why which you can access workflow or any business logic or automation component to configure. Metadadata API comes as WSDL so it is accessible through any language thats why Apex also works with it.

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.