2

i want to retrieve list of Visual Workflow in VisualForce page.i dont want to use SOAP api because its very bulky in size(Metadata Service class size).Is there any soql query method or rest api method for getting list of Visual WorkFlow available in salesforce or soap api is the only method

we can get list of Apexclass in soql query using Select Id From ApexClass is same type of soql query exist for visual work flows ?? .Plz guideline.

1 Answer 1

6

Most of the objects that represent a Flow have key prefixes starting at 300 and going through to 31v.

E.g.

  • 300 InteractionDefinition
  • 301 InteractionDefinitionVersion
  • 308 InteractionCondition

None of these currently (Spring 14 / v30.0) appear to be accessible via the Partner API, the tooling API, or directly in Apex. They don't appear in the sObjects returned by a REST GET to /services/data/v30.0/sobjects or /services/data/v30.0/tooling/sobjects.

In Apex you can see the SObjectType, but that is about it.

Schema.SObjectType r = Id.valueOf('300100000000000').getSObjectType();
System.debug(r); // Debugs as InteractionDefinition

I'd say the Metadata API is currently your best option (e.g. via SFDC workbench):

Flows in the Metadata API

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .