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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Relating two tables in...
Power Apps
Unanswered

Relating two tables in Dataverse using Patch

(1) ShareShare
ReportReport
Posted on by 56
Hi,
I need to relate two dataverse tables. Table A and table B. I have a button in table A, which calls a dialog box (custom page). Inside this box there is a text field, which needs to update a column in table B. I have created a lookup column in table B. I guess I need to pass some kind of unique parameter from A to B, so that I can relate those tables. I tried with the Guid from A, but I cannot pass it to the lookup table as they do not match.
This is my code so far:
Patch('Consult Request Conversation Notes',Defaults('Consult Request Conversation Notes'),{'Notification Sent':TextBox1.Value, Completed: 'Completed (Consult Request Conversation Notes)'.Yes, 'Consult Request ID':GUID(VarRecordID)});
Back()
The code update the the bolded part is where i struggle, as I cannot pass a guid to a record.
I also used this video to create a custom page and the dialog box itself:
 
I am still a bit new to powerapps but any help will be appreciated.
thanks
 
 
 
 
Categories:
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @Endjoy11 

     

    Could you check if this might work better for you? 

    Relate and Unrelate functions in Power Apps 

     

  • Endjoy11 Profile Picture
    56 on at

    Hey @poweractivate ,

     

    thanks for the suggestion.

    Maybe a silly question - how can I relate the ID of the first table with the ID of the second table with that function. Meaning when I access a record in table A, make sure that when the dialog box  is filled it will relate the text/note (from table B) to this specific record. With the FIRST parameter I can update the first rows from both tables but that does not work for me. Maybe I need to do some kind of a match to make sure that the record ID I am accessing matches the GUID? 

  • Endjoy11 Profile Picture
    56 on at

    any suggestions, how i can implement relate function to my specific scenario? It seems that in replaces patch function but still i cannot seem to relate the 1st and 2nd table.

     

    thanks in advance.

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!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard