+ Start a Discussion
Antonino_CupiAntonino_Cupi 

Find Process Builder in Metadata API

Hi all,

I know that the Process Builder is stored in the folder "Flow" in the Metadata API, but how can I recognize that the flows stored in this folder are a Process builder or a simple flow?

Thanks
Best Answer chosen by Antonino_Cupi
Raj VakatiRaj Vakati
Based on ProcessType "processType" 

Select Id , processType from Flow


The type of the flow, as determined by the active version (or latest version, if there’s no active version). Valid values are:
  • AutoLaunchedFlow—A flow that doesn’t require user interaction.
  • Flow—A flow that requires user interaction because it contains one or more screens, choices, or dynamic choices. In the UI and Salesforce Help, it’s a screen flow.
  • FieldServiceMobile—A flow for the Field Service Lightning mobile app. This value is available in API version 39.0 and later.
  • FieldServiceWeb—A flow for Snap-ins Appointment Booking. Its UI label is Field Service Snap-In Flow. This value is available in API version 41.0 and later.
  • Workflow—A process that is invoked when a record is created or edited. In the UI and Salesforce Help, it’s a record change process.
  • InvocableProcess—A process that can be invoked by another process or the Invocable Actions resource in the REST API. This value is available in API version 38.0 and later.
  • CustomEvent—A process that is invoked when a platform event occurs. In the UI, it’s an event process. This value is available in API version 41.0 and later.
These values are reserved for future use.
  • ActionPlan
  • JourneyBuilderIntegration
  • login flow
  • OrchestrationFlow
  • TransactionSecurityFlow
  • UserProvisioningFlow
Across versions, you can change the type from Flow to AutolaunchedFlow or vice versa.
This field is available in API version 31.0 and later.
 

All Answers

Raj VakatiRaj Vakati
Based on ProcessType "processType" 

Select Id , processType from Flow


The type of the flow, as determined by the active version (or latest version, if there’s no active version). Valid values are:
  • AutoLaunchedFlow—A flow that doesn’t require user interaction.
  • Flow—A flow that requires user interaction because it contains one or more screens, choices, or dynamic choices. In the UI and Salesforce Help, it’s a screen flow.
  • FieldServiceMobile—A flow for the Field Service Lightning mobile app. This value is available in API version 39.0 and later.
  • FieldServiceWeb—A flow for Snap-ins Appointment Booking. Its UI label is Field Service Snap-In Flow. This value is available in API version 41.0 and later.
  • Workflow—A process that is invoked when a record is created or edited. In the UI and Salesforce Help, it’s a record change process.
  • InvocableProcess—A process that can be invoked by another process or the Invocable Actions resource in the REST API. This value is available in API version 38.0 and later.
  • CustomEvent—A process that is invoked when a platform event occurs. In the UI, it’s an event process. This value is available in API version 41.0 and later.
These values are reserved for future use.
  • ActionPlan
  • JourneyBuilderIntegration
  • login flow
  • OrchestrationFlow
  • TransactionSecurityFlow
  • UserProvisioningFlow
Across versions, you can change the type from Flow to AutolaunchedFlow or vice versa.
This field is available in API version 31.0 and later.
 
This was selected as the best answer
Antonino_CupiAntonino_Cupi
Great! Thank you very much Raj!