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
Ganta SureshGanta Suresh 

How to get the parent records to using SF FLOW ?

This is the requirement , I have to create a flow , Can any one help me with the sample example ?
Best Answer chosen by Ganta Suresh
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Suresh,

As you mentioend I have created agreemnt object and related agreement child object under it. I am populating agreemnt lookup based on agreement name on related Agreemnt record.

You have to create record triggered flow on Related Agreement object as below.

User-added image
get record element:

User-added imageupdate record triggered element:

User-added image

Save the flow and activate it.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,

All Answers

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Ganta,

Can you explain in more details. You have child record called workorder and do you want the parent record details of the workorder in flow?

Thanks
 
Ganta SureshGanta Suresh
@SaiPraveen Yes, Actually I have to get parent record details we've lookup fields,
Ganta SureshGanta Suresh
@SaiPraveen ( How to auto-populate the look-up filed into SF FLOW? )  Can you give me a sample example if possible?
Ganta SureshGanta Suresh
@SaiPraveen  Need a FLOW using the below condition. Give me a sample example.

1. We have a custom object (Related Agreement) and it has a lookup field for Agreement object
2. While inserting the records in custom object, auto-populate Agreement lookup field value based on  Agreement name & Agreement Number, etc.. in the record
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Suresh,

Sure I will share the sample flow for that in some tima as I have to implement it in my personal org.

Thanks,

 
Ganta SureshGanta Suresh
@SaiPraveen , Thank you , waiting for that.
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Suresh,

As you mentioend I have created agreemnt object and related agreement child object under it. I am populating agreemnt lookup based on agreement name on related Agreemnt record.

You have to create record triggered flow on Related Agreement object as below.

User-added image
get record element:

User-added imageupdate record triggered element:

User-added image

Save the flow and activate it.

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,
This was selected as the best answer