Questions tagged [flow-interviews]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
53 views

Can later runs of a flow see records inserted in an earlier run of the same flow interview?

I am running into a strange problem with a flow that has lead me to wonder if I am not understanding how flow interviews work on bulk inserts and I am not able to find any documentation that answers ...
Frank Evers's user avatar
1 vote
0 answers
225 views

Salesforce Flow Pause Element error

I have a salesforce flow that is an invoked flow from a button click on a list. After clicking the button, I send the ID of the parent record to the flow, and get all the child records with a get ...
Luke Sharon's user avatar
0 votes
0 answers
79 views

Process Builder Scheduled Actions got stuck in paused state

I have a Process Builder with Scheduled Action which should run after 6 hours of the Date field. It is triggered when Case is created or edited and the criteria are: Picklist field = 'X' Checkbox is ...
user2452483's user avatar
0 votes
1 answer
191 views

Any other solutions other than Pause and Resume flow interview?

My requirement : I have a simple flow where in the flow sends an email to the contact but now client wants to first receive the email to their specific sales rep and if everything is ok, then would ...
Cathy's user avatar
  • 73
1 vote
1 answer
325 views

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,...
Bahman.A's user avatar
  • 808
1 vote
1 answer
735 views

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 ...
Peter Andronakos's user avatar
1 vote
1 answer
426 views

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 ...
bonzi's user avatar
  • 155
1 vote
0 answers
205 views

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 ...
Arthlete's user avatar
  • 4,855
2 votes
1 answer
1k views

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( ...
user73893's user avatar
  • 305
0 votes
0 answers
257 views

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 ...
gtu's user avatar
  • 113
1 vote
0 answers
339 views

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 (...
Chris Campbell's user avatar
5 votes
1 answer
794 views

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. ...
Json's user avatar
  • 1,587
0 votes
0 answers
96 views

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

Has anyone successfully created a test class for this? https://help.salesforce.com/articleView?id=flow_pause_cmp_record.htm&type=5
Jay Omayan's user avatar
1 vote
0 answers
159 views

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 ...
thinker's user avatar
  • 1,402