Hello friends, In this post, I will show you, how you can pass record id inside screen flow dynamically. After completing this post, you will able to pass record id dynamically inside any screen flow.
Pass record id dynamically in lightning screen flow
Use Case : We have a use case, where we have to create account related contact. So We have to pass account id dynamically into the flow while creating contact. To implement this, we have to create a screen flow using following steps.
Step 1: Create a Screen flow with following screen elements.
Step 2: Create a text variable named recordId and marked "Available for input" checkbox true.
Step 3: Setup Create Records element with following details and fields mapping.
Step 4: Save and activate the flow. The structure will be like the below image.
Step 5: Navigate to account record details page and edit the page to add flow screen in it. In flow configuration window, select your screen flow(Create Contact) and also marked "Pass record ID into this variable" checkbox true.
Step 6: Save and activate account record page. Create a contact record using this flow to verify it.
Hope you like this post, for any feedback or suggestions please feel free to comment. I would appreciate your feedback and suggestions.
Thank you.
0 Comments
Post a Comment