function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Prit Kang 8Prit Kang 8 

Can I get flow interview details using APEX/Metadata/Tooling API for any specific record?

My Use case:
1. I have created a trigger flow on Lead to run after 3 days of lead creation.
2. I want to show the interview status in a LWC component
3. Users can pause/reschedule interviews from the LWC component.

My question is,
1. Can I get the current running status of in-flows Interview via APEX/Metadata/Tooling API?
2. Can I pause/resume or reschedule Interview using APEX, MetaData or Tooling API

Thanks,
SubratSubrat (Salesforce Developers) 
Hello Prit ,

To get the running status of an in-flows interview via the Salesforce APIs, you can use the Tooling API. You can use the FlowInterview object to query the status of a specific in-flows interview. The FlowInterview object contains fields that provide information on the status of the interview, such as InterviewStatus, Paused, Resumed, and Rescheduled.

You can use the update() method of the appropriate API, such as APEX, Metadata, or Tooling, to update the FlowInterview object. 

--> https://support.formtitan.com/topics/Salesforce/Flow_Interview_Share_Object

--> https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_flowinterview.htm


Hope it helps !
Thank you.