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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Subgrid not visible while creating new record in the form (Model driven apps)

(1) ShareShare
ReportReport
Posted on by

Not able to see subgrid control when creating a new record in the form (model driven apps). It only shows up when editing the record. Please help

Thanks in advance.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi, that's normal behavior, you wont see the grid until you save the first time.

  • Community Member Profile Picture
    on at

    Hi Mike,

    Thanks for the reply.

    My requirement is I need to have multiselect(while creating new record) by doing lookup with an entity/table. So I thought this subgrid  control will help but it is not as you said. So please let me know how can I achieve this requirement.

    Thanks,

    Paniraj

  • Suggested answer
    CRM Pundit Profile Picture
    15 on at

    This is an out of the box feature.

    You can not associate any record without saving it.

    For eg: You have grid of "Entity B" on "Entity A" form, then you have to create "Entity A" record first then "Entity B" grid get visible.

  • Community Member Profile Picture
    on at

    Yes I understand, but what is the solution available to have multiselect with entity lookup. Is there a way to do that in powerapps or any work around. Please suggest

  • Suggested answer
    prt33k Profile Picture
    6,907 on at

    Hi Emids,

    As explained, you cannot link entities without creating them.

    A workaround will be to save the record using a onload script if the formtype = Create.

    This will then allow user to add the link.

    function OnLoad(executionContext){
     var formContext = executionContext.getFormContext();
     var formType = formContext.ui.getFormType();
     if(formType == 1){ // u can add more condition like name should be filled etc
       formContext.data.entity.save();
     }
    }

    However, if for some reason user closes the record without linking anything - you will end up with a 'blank' record.

    You can have a plugin/javascript to check if the record is linked with anything and then delete it if it is not - but then that can be decided based on requirements.

    Thanks,

    Prateek

  • Suggested answer
    Fubar Profile Picture
    2,761 on at

    Workaround could be to create a PCF Control, and place the selected id's in a text field, then on save process the field (via Plugin) to associate the records.

    Whilst you have never been able to populate a Subgrid until the record is created, the other day I did notice that the Subgrid container was no longer showing until after the record was created.

  • Spiker Profile Picture
    90 on at

    Good day. Where can I read that's normal behavior. Thank you in advance

  • Gyllentid Profile Picture
    10 on at

    I am also wishing this was possible.

    The logic with saying it is not possible to relate entities before it is saved, doesn't add up because single options can be related when the new record is created.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
11manish Profile Picture

11manish 48 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 45

#3
Ayesha Wajahat Profile Picture

Ayesha Wajahat 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans