Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Link users within Patch function using O365 Users and an Azure Connector.

(0) ShareShare
ReportReport
Posted on by

I am trying to link users within my Patch function using O365 Users and an Azure Connector. 

 

 

When you have complex field types such as “PeoplePicker” (which is “Approver” in this example), you have to use this syntax:

Claims: ____, DisplayName: ____, Email: ____. Department: ____, JobTitle: ____, Picture: ____

jharville_0-1598466185999.png

 

  • However, the SharePoint list where I stored users was not functional later on in my code (“adCouncilPicker” was my old Drop-Down connected to the SharePoint list), so I resorted to storing my users in an O365 Users Group.
  • My new Combo-Box (instead of a Drop-Down) is “testO365UserComboBox”. My "Items" code is listed in the top, which pulls users from a certain group in O365 Users while using the Group ID as a parameter.
  •  
  • jharville_1-1598466186008.png

     

  • When I replace my old Drop-Down (linked to SharePoint list) with my new Combo-Box (linked to O365 Users), it errors out my code. I changed the old attributes to the updates ones since I’m using a new variable (testO365UserComboBox) for O365 users (ex: DisplayName --> displayName), but can’t find a variable for the “Claims” object, which is required. I know I should follow the Syntax since it’s a people-picker, and suspect the error to be something wrong with the “Claims” column.
  •  
  • jharville_2-1598466186015.png
  • Why is my code throwing an error and how do I fix it? Here is the explanation for the error that it is throwing.

jharville_3-1598466186022.png

Thank you!

  • jharville Profile Picture
    on at
    Re: Link users within Patch function using O365 Users and an Azure Connector.

    I realized there wasn't a Claims attribute for my "Claims" object, so I ended up using the "id" attribute after "Selected" and the code ran well. Thank you for your help!

     

    jharville_0-1598493799427.png

     

  • VDS_Mantra Profile Picture
    175 on at
    Re: Link users within Patch function using O365 Users and an Azure Connector.

    Are you getting the same error message or its different now ?

     

    if different then share the updated snapshot. 

  • jharville Profile Picture
    on at
    Re: Link users within Patch function using O365 Users and an Azure Connector.

    Hello! I appreciate the response, but that wasn't able to fix the issue. 

  • Verified answer
    VDS_Mantra Profile Picture
    175 on at
    Re: Link users within Patch function using O365 Users and an Azure Connector.

    Hi, 

     

    It seems that you have selected the incorrect option for Claims, Display Name & Email. Kindly selected the correct option from IntelliSense after .Selected.Text/Value/Result.

     

    Hope it will help. 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard