cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
duncant
Helper V
Helper V

Link Child Record to Parent Record

I'm having a little trouble getting a child table in the Dataverse to link to the Parent record.  When submitting a form in PowerApps, what would be the way to go about linking the child to the parent record? 

1 ACCEPTED SOLUTION

Accepted Solutions
dpoggemann
Super User
Super User

Check this out with code to utilize...  https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Create-new-parent-record-with-child-records-...

Thanks!

Drew

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

View solution in original post

5 REPLIES 5
dpoggemann
Super User
Super User

Hi @duncant 

 

Please see the following post as I think this is what you are looking for.  Please reply if you are asking something different.  https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Creating-a-new-record-in-a-related-table/m-p... 

 

Hope this helps.  Please accept if this answers your question or Like if helps in any way.


Thanks,


Drew

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

Thank You @dpoggemann.

My issue now lies with getting the autonumber from the created Parent entity.

dpoggemann
Super User
Super User

Hi @duncant,

 

What do you mean on this question, sorry, don't understand...  You will have the GUID on the child entity as a lookup to the parent, not the autonumber field of the parent n the child.

 

Am I misunderstanding your question?

 

Thanks,

 

Drew

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

@dpoggemann correct.  I will have a GUID for the child record(s), but I will not have the Parent GUID.  I guess my question is how do I get the Parent records GUID?

dpoggemann
Super User
Super User

Check this out with code to utilize...  https://powerusers.microsoft.com/t5/Microsoft-Dataverse/Create-new-parent-record-with-child-records-...

Thanks!

Drew

Hope this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,919)