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 Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (27,593)