web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Populate certain field when Creating a record from subgrid.

(0) ShareShare
ReportReport
Posted on by 15

Hi All,

I have an Entity A and Entity B. Entity B has a sub grid on Entity A.

i wanted to try out a functionality in which if I am creating a new Entity B record from sub grid(clicking on Add record + button), i want certain field(Single Line of Text) to have "Not required" populated. 

whereas when i am navigating to the entity from sitemap and creating a record, the field should not be automatically populated.

Is it possible? I am trying out JavaScript for this.

Can you please suggest/help on how can I achieve this?

Thanks in advance.

I have the same question (0)
  • Pradeep Rai Profile Picture
    5,489 Moderator on at

    You want to populate hardcoded value or some values from entity A. Please confirm?

    Thank You,
    Pradeep Rai.

  • RTG Profile Picture
    15 on at

    Hi Pradeep Rai,

    it should be hardcoded.

  • Suggested answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    Hi,

    You can achieve the same with JavaScript and you need register the script on Quick Create Form.

    as described in below link:
     

    Which means when you create the record from subgrid it will open quick create and your logic will execute.

    But when open the record from sitemap then CRM will open Main form and we do not have any logic on main form so it will be blank.

    Thank You,

    Pradeep Rai.

    Please mark this as VERIFIED. If it helps.

  • RTG Profile Picture
    15 on at

    Hi ,

    thanks for your quick answer.

    the subgrid button doesn't open the quick create form instead in both the cases main form is opened.

  • Pradeep Rai Profile Picture
    5,489 Moderator on at

    Hi,

    Please refer below link to open quick create form for subgrid.

    https://carldesouza.com/quick-create-forms/

    Thank You,
    Pradeep Rai.
    Please mark the answer as VERIFIED. If this is helpful.

  • RTG Profile Picture
    15 on at

    Hi,

    the forms in both the ways to create a record are same.

  • Suggested answer
    Pradeep Rai Profile Picture
    5,489 Moderator on at

    You mean, you will use main form only to create records?

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi RTG,

    As per my very little knowledge, you can achieve your requirement using field mapping.

    pastedimage1673885644719v1.png

    For more details: www.linkedin.com/.../

  • Suggested answer
    Amit Katariya007 Profile Picture
    10,409 Super User 2025 Season 2 on at

    Does same process will be applicable when user will try to create Entity B record directly ? If no then will have to add some exemption in JS for this scenario.

  • RTG Profile Picture
    15 on at

    Hi ,

    If a user creates a record For entity B directly, it will not populate the one of the field(Single line of text) present on the form.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 108 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans