You need to sign in to do that
Don't have an account?
Mark Rutter
How to get the current record ID in a Flow?
I want to initiate a Flow from a button on a Custom Object. How do I capture the ID of that Custom Object record and be able to use it in the Flow?
Then the URL on the custom button will look like: /flow/Get_Inquiry?InquiryID={!Inquiry__c.Id}
All Answers
Then the URL on the custom button will look like: /flow/Get_Inquiry?InquiryID={!Inquiry__c.Id}
I'm trying to set up this flow to look through all related records of a certain type and loop through each, allowing the end user to evaluate each record and make a quick update to it before moving on to the next. I think this should be possible, but I believe the first step is just getting the id from the record I'm on before I can identify records related to it.
Piggybacking to make life easier for the next person who searches for this (like me):
If you create a flow action, and make sure your flow has a text input named "recordId", the starting record Id will be picked up automatically.
Source: https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_distribute_internal_action.htm
Why in the hell isnt that already DEFAULT does Saleforce expect you to always remember that.
FIX IT SAlesforce
Thanks to all for sharing, apparently create a RecordID text input is only feasible on actions, but I have the requirement to do so in a screen flow.
Is there a way to pass current RecordID to a screen flow?
The used of guided process to complete the current record is so powerful that I am pretty sure there has to be a way.
I have created screen flow and to capture the account id i have created the Variable with API name recordId available for input.
I have debugged the Flow as well for which in input we have to manually pass the recordId and opportunity is getting associated with Account.
In Account record page have associated this flow from there i am able to successully create the Opportunity but it is not getting associated with Account Id.
Variable spelling and caps all are correct but still from UI it is not working
From an opportunity the user is prompted to a screen flow with a propertylookup.
How can I get the opportunity recordID that started this flow?
I have a variable
recordId
DataType Text
Both available for input / output are checked off.
however its always null. The error is when I'm trying to used the recordId value
ASSIGNMENT: Assign Opportunity Prop Values
{!varOpportunityProperty.Property__c} Equals {!lkupProperty.selectedRecordId}
{!varOpportunityProperty.Opportunity__c} Equals {!recordId}
Result
{!varOpportunityProperty.Property__c} = "a084x000004w8GkAAI"
{!varOpportunityProperty.Opportunity__c} = "null"
Thank you in advance for your help
Hi Rabecca,
I am nit sure what is the issue, please provide a picture whit the flow and the declaration of the recordId.
A few things to check that would prbably help you solve the issue.
1. The name "recordId" is case sensitive and if it is not wriiten exacltly the way SF sugests it, it will not work
2. Remove the available for output check
3. On the first screen of the flow put the recordId somewhere to be visible, so you can debug in real time.
4. If none of this works click on edit page and put the flow directly on the page, where you can setup the record id as a setting on the flow component on your page : https://help.salesforce.com/s/articleView?id=sf.flow_distribute_internal_lab.htm&type=5
For now this is all I can recomend.
@veerabhadragouda, I'm the one who flagged this post as inappropriate. The most basic function of flow is to call it from a button. This response was posted 5 years ago: https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000A8hH0SAJ
As with most forums, please do some homework on very basic questions before posting to the forum (at least google it). Additionally, this question is not related to your question and thus also not appropriate. Try to find the right questions to add responses to. Thanks for asking! Just a little ettiquette. We love to help. See the link above. Troy