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
ahonahon 

auto-populate recordId

When a user creates a new related record on object, the object's recordId passes to new related record. However, the new related record also must be associated with another/primary object record's id.

For example, a new related record is created (object C) on object B and does in fact associate with object B -- must associate with object A as well.

I tried an auto-launched flow, assigning variables but my flow is not working.
Best Answer chosen by ahon
ahonahon
Solution: create a record-triggered flow on record that needs to auto-populate another object's recordId, then update records. Use the object record that triggered the flow to set field values. 

All Answers

SwethaSwetha (Salesforce Developers) 
HI Ahon,
Can you share the flow you've tried so far so I can suggest better?

Related:
https://developingflow.com/2015/03/23/find-related-records-and-have-users-select-them-in-a-screen-learning-flow-1-b/

https://admin.salesforce.com/blog/2022/automate-this-update-related-records-with-flow

https://salesforce.stackexchange.com/questions/343739/flow-to-pull-related-records-and-create-corresponding-records

https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_builder_update_related_records.htm&release=240&type=5

Thanks
ahonahon
@Swetha currently, recordId does, in fact, auto-populate only if the new related record is a direct relationship -- child record (object C) of parent record (object B). This functionality is automatic, no configuration/automation or flow required.

However, I do not have a flow for the situation where creating a new child record of object C auto-populates recordId of object A because Ive tried several options that do not work and am posting here to get a better understanding of how this functionality can work. 
ahonahon
Solution: create a record-triggered flow on record that needs to auto-populate another object's recordId, then update records. Use the object record that triggered the flow to set field values. 
This was selected as the best answer
amna seoamna seo
You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming.  novelas tv download (https://novelaastv.com/)
 
amna seoamna seo

I wanted to leave a little comment to support you and wish you a good continuation.   Suika (https://suikagame.com/)