Questions tagged [flow-interviews]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer

Getting the error "Invalid constructor name: myFlow.start" when calling the flow interview start() method

I'm trying to invoke an autolaunched flow from an apex class like below, @RestResource(urlMapping='/apex/contact_us') global class ContactUsAPI { Map<String, Object> request = (Map<String,...
  • 704
1 vote
1 answer

Record Triggered Flow trying to create duplicate records

I have a record triggered flow that needs to create related records if they do not already exist. However, once the record is created, if other records in the transaction would have triggered a create ...
1 vote
1 answer

Is it possible to delete a record created during a flow interview that has been interrupted?

I have a screen flow where a user creates a record in one screen, and in the next screen the user uploads a file to the record that has just been created. Then, the user presses a button that launches ...
  • 135
1 vote
0 answers

Resume Flow to the CurrentElement step

I am querying for CurrentElement on FlowInterview. Now is there a way to pass that CurrentElement into the flow interface in salesforce and tell it to resume the flow from that step? The scenario is ...
  • 4,571
2 votes
1 answer

Can't get flow variable from flow interview I created and started in Apex

Having come across documentation that states that flow variables can be retrieved for a specific flow in Apex, I tested this by writing the following code: myEvent__e eventRecord = new myEvent__e( ...
  • 305
0 votes
0 answers

Why are flow interviews paused

I created some flows which get triggered at certain conditions (on opportunity won send survey, send email, ...). Now I am seeing some of them in a list of Paused Flow Interviews. Details page is not ...
  • 113
1 vote
0 answers

Flow Interview on Invocable Process - how to get test coverage

I’m looking at a list of flows that don’t currently have code coverage obtained by running the following Tooling API SOQL: SELECT Definition.DeveloperName FROM Flow WHERE Status = 'Active' AND (...
5 votes
1 answer

Unit test for Pause Reason in a Screen Flow

I've created a script in apex that captures the pause reason in a screen flow. In general, I use the FlowRecordRelation and FlowInterview to capture the pause reason and save it to a specific field. ...
  • 1,495
0 votes
0 answers

Make It Easy for Users to Find Paused Flow Interviews for a Record - Test Class

Has anyone successfully created a test class for this?
1 vote
0 answers

How do you determine which element is the paused element in your process builder?

I have an advanced process builder that i'm working with. I was under the impression that each criteria and action are 'elements' in the process builder that determines the element that get's paused ...
  • 1,328