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

Community site session details

Session Id :
Power Apps - Building 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:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

    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
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

    same issue 

    YamiteKudasai_0-1633883852686.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

    Please update to Source.Email

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

    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
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

    Hello Stalin, 

    Email is error it only has .Mail

    YamiteKudasai_0-1633907250407.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

    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
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

    Hello Stalin,

     

    The items property of the combo box is 

    YamiteKudasai_0-1633913791240.png

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

     @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
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

    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
    Re: [HELP] - Patch Combo box with Multi Choice Column SPList

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 624 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 384 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 246

Last 30 days Overall leaderboard