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 / Patch into Dataverse t...
Power Apps
Answered

Patch into Dataverse table containing column of type AAD User

(0) ShareShare
ReportReport
Posted on by 18

Hi Guys,

 

I'm messing around with canvas apps and have a drop down list with items set to a list of AAD users.

 

MicrosoftEntraID.GetGroupMembers("698706fc-d9cc-4233-8e73-bc89d1caf1a5").value

 

when I change the user in the drop down list then press the Save button on the screen I want to update the entry in the table with the newly selected user account.

 

The OnSelect of the button looks like this:

 

Set(userDetails,MicrosoftEntraID.GetUser(ddPoolDrivers.Selected.id));

Patch(Cars,LookUp(Cars,ID = selectedID),{'Primary Driver': userDetails });

Navigate(CarChecker_ListCars,ScreenTransition.Fade);

 

table lookup column.

 

lookup.png

 

My save button

 

patch.png

 

error given when hovering.

 

guid.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Ian-Waters ,

     

    Please try :

    Patch(
     Cars,
     LookUp(Cars,ID=selectedID),
     {
     'Primary Driver':LookUp(Choices(Cars.'Primary Driver'),Text('AAD user id')="1e73f54f-6be9-4407-ba93-4ac6afe625ab")
     }
    )

     

     

    Best Regards,

    Bof

  • Ian-Waters Profile Picture
    18 on at

    Many thanks Bof that works perfectly!

     

    Go Team!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard