Skip to main content

Notifications

Announcements

No record found.

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.

  • Gyllentid Profile Picture
    Gyllentid 10 on at
    RE: Subgrid not visible while creating new record in the form (Model driven apps)

    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.

  • Spiker Profile Picture
    Spiker 90 on at
    RE: Subgrid not visible while creating new record in the form (Model driven apps)

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

  • Suggested answer
    Fubar Profile Picture
    Fubar 2,752 on at
    RE: Subgrid not visible while creating new record in the form (Model driven apps)

    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.

  • Suggested answer
    prt33k Profile Picture
    prt33k 6,907 on at
    RE: Subgrid not visible while creating new record in the form (Model driven apps)

    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

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

    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
    CRM Pundit Profile Picture
    CRM Pundit 15 on at
    RE: Subgrid not visible while creating new record in the form (Model driven apps)

    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.

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

    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
    RE: Subgrid not visible while creating new record in the form (Model driven apps)

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans