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
Admin User 10161Admin User 10161 

Get Current Record of an object on Flow Builder

Hi everyone,
I would like to know if it is possible for an object like "Lead", "Opportunity" or "Account" to get the value of the fields from the current record on Flow Builder.
For example when I enter to a Lead with the field "Name" equals to "John Doe" I would like to display on the screen "John Doe".
Is it possible to do that on the filters of "Get Records"? Instead of having a filter like "Name = ..." I would like to have a filter "Get Current Name".
Best Answer chosen by Admin User 10161
AbhishekAbhishek (Salesforce Developers) 
Hi,

First dreate a Flow Variable linked to an SObject.  You do this by selecting SObject variable from the Default Value selection box.  Data type as Text and Input/Output Type as Input and Output.

Then  the URL on the custom button will look like: /flow/Get_Inquiry?InquiryID={!Inquiry__c.Id}


For your reference,

https://success.salesforce.com/answers?id=9063A000000id3jQAA


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks!

All Answers

AbhishekAbhishek (Salesforce Developers) 
Hi,

First dreate a Flow Variable linked to an SObject.  You do this by selecting SObject variable from the Default Value selection box.  Data type as Text and Input/Output Type as Input and Output.

Then  the URL on the custom button will look like: /flow/Get_Inquiry?InquiryID={!Inquiry__c.Id}


For your reference,

https://success.salesforce.com/answers?id=9063A000000id3jQAA


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks!
This was selected as the best answer
Admin User 10161Admin User 10161
Hi Abhishek,
Thank you for the answer. 
However, I still need more clarification because I already read this answer somewhere and did not understand it. When I create the Flow Variable there is no SObject variable on the default value. The only variable that I have is "$Flow".
I also did not understand where to put the following URL: /flow/Get_Inquiry?InquiryID={!Inquiry__c.Id}
I will be very delighted if you provide me further details about that.
AbhishekAbhishek (Salesforce Developers) 
Try this once please,

https://success.salesforce.com/answers?id=9063A000000lQbzQAE

https://success.salesforce.com/answers?id=906300000010wiFAAQ

Thanks!