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 / [HELP] - Patch Combo b...
Power Apps
Unanswered

[HELP] - Patch Combo box with Multi Choice Column SPList

(0) ShareShare
ReportReport
Posted on by 195

Hi Everyone,

 

I have a list of person named Tag. When I click edit btn in power apps i saved it on a variable named varComments = ThisItem.Tag

YamiteKudasai_0-1633595795865.png

On the DefaultSelectedItems of the combo box i put varComments.Tag.DisplayName

YamiteKudasai_1-1633595934103.png

 

But when I patch I'm having a runtime-error. 

YamiteKudasai_3-1633596127781.png

 

 

 

This is my patch code for update

YamiteKudasai_2-1633596008015.png

 

 

The error I found is that claims is not found on update. How to correct this?

 

YamiteKudasai_0-1633612505082.png

when edit mode in combo box

YamiteKudasai_1-1633612580320.png

 

 

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @YamiteKudasai 

     

    Please try this

    Patch(
     Comments,
     LookUp(
     Comments, ID = varComments.ID && varComments.'Created By'.Email = gvCurrentUserEmail),
     {
    	Comment: comment_txtbox.Text,
     Tag: ForAll(
     comments_cmbox.SelectedItems As Source,
     {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims: "i:0#.f|membership|" & Source.Mail,
     Department: "",
     DisplayName: Source.DisplayName,
     Email: Source.Mail,
     JobTitle: "",
     Picture: ""
     }
     ),
    	timestamp: Text(Now())
     }
    )
  • YamiteKudasai Profile Picture
    195 on at

    same issue 

    YamiteKudasai_0-1633883852686.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Please update to Source.Email

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @YamiteKudasai 

     

    I just verified it and it should be an .Email. If we use Azure AD as a Combo box list then use .Mail

     

    Patch(
     Comments,
     LookUp(
     Comments, ID = varComments.ID && varComments.'Created By'.Email = gvCurrentUserEmail),
     {
    	Comment: comment_txtbox.Text,
     Tag: ForAll(
     comments_cmbox.SelectedItems As Source,
     {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims: "i:0#.f|membership|" & Source.Email,
     Department: "",
     DisplayName: Source.DisplayName,
     Email: Source.Email,
     JobTitle: "",
     Picture: ""
     }
     ),
    	timestamp: Text(Now())
     }
    )

     

  • YamiteKudasai Profile Picture
    195 on at

    Hello Stalin, 

    Email is error it only has .Mail

    YamiteKudasai_0-1633907250407.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @YamiteKudasai 

     

    Please share the Items property of the ComboBox.

     

    In general, a person can be filled with Person column or AD  either 

    Choices(SPList.ColumnName)

     

    Or

    Office365Users.SearchUser({searchTerm: ""})

     

  • YamiteKudasai Profile Picture
    195 on at

    Hello Stalin,

     

    The items property of the combo box is 

    YamiteKudasai_0-1633913791240.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

     @YamiteKudasai 

     

    I made the same Items property like yours and works fine

    Patch(
     IssueTracker,
     LookUp(
     IssueTracker,
     ID = 1
     ),
     {
     MultiplePeople: ForAll(
     ComboBoxSearchUserv2.SelectedItems As Source,
     {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims: "i:0#.f|membership|" & Source.Mail,
     Department: "",
     DisplayName: "",
     Email: Source.Mail,
     JobTitle: "",
     Picture: ""
     }
     )
     }
    )

    StalinPonnusamy_0-1633919417640.png

     

    StalinPonnusamy_1-1633919440056.png

     

    Note:

    1. Make sure to change Source.Mail on 2 places

    • Claims: "i:0#.f|membership|" & Source.Mail,
    • Email: Source.Mail,

    2. I hope in Sharepoint the field tag allows multi-select Person field 

  • YamiteKudasai Profile Picture
    195 on at

    By the way stalin this is my sharepoint settings for column tag

    YamiteKudasai_0-1633921042504.png

     

    This is the DefaultSelectedItems of my combo box 

    YamiteKudasai_0-1633921724216.png

    And still get same error about claims. I think the claims for the data from SP still empty. But claims in SP has values

    YamiteKudasai_1-1633921763418.png

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    SharePoint Settings looks good.

     

    Other troubleshoot items.

    1. Remove the SharePoint connection and add it back
    2. Create a new column and try the same code (If #1 option not works)

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 394 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 324 Most Valuable Professional

Last 30 days Overall leaderboard