1

A customer is asking that a status field on a child record be defaulted to a value from a parent record when the "New" button is used on the "Related" tab of the parent record.

Can this be accomplished in Lightning Experience just using the default layouts?

(In Classic, the request can be routed through a page/controller to add parameters to the URL; that is a hack.)

4
  • is custom quick action good enough? – Pranay Jaiswal Jan 29 '19 at 12:06
  • @PranayJaiswal I thought that only allowed constants not references to values from the parent? – Keith C Jan 29 '19 at 12:14
  • 2
    I created a quick Action on Account to create an Opportunity and on Predefined Field Values I was able to refer and use Account fields( Account.AccountNumber ) . – Pranay Jaiswal Jan 29 '19 at 12:15
  • @PranayJaiswal My bad - excellent! Please post as an answer. – Keith C Jan 29 '19 at 12:23
4

A quick Action on Parent to create child records would work a charm. Also, we can prepopulate child record's fields from parent using Predefined Field Values which is somewhat similar to classic(pre-populating fields url hack)

enter image description here

A tip from Salesforce docs says:

On object-specific actions, the predefined value can include references to the source object and its related objects

Src: https://help.salesforce.com/articleView?id=predefined_field_values.htm&type=5

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.