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 multiselect fiel...
Power Apps
Answered

Patch multiselect field- pls Help

(0) ShareShare
ReportReport
Posted on by 171

Hello all,

 

I have am edit form to create some tasks as shown bellow:

 

Poma1_0-1650834856060.png

My task field is a multi select choice column in sharepoint. I create a collection (colTasks) out of the form and then display the collection in a gallery:

 

Poma1_1-1650835033060.png

 

Poma1_2-1650835088625.png

Then I try to patch the items in the gallery into SharePoint but the problem is that I only patch the first item in the gallery (Task 2) and not Task 3.

 

ForAll(
colTasks,
Patch(
Meeting,
Defaults(Meeting),
{
Title: Now(),

Task: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Value: Gallery_Tasks_NextWeek.Selected.Label5
}
}
)
)

 

here is the image of sharePoint:

Poma1_3-1650835452463.png

 

Can someone pls help me.

 

Regards

Angela

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,447 Most Valuable Professional on at

    Hi @Poma1 ,

    I am not entirely sure I have read your structure properly here, particularly where you are using the Concat without a delimiter, however the below may be what you are trying to do.

    Patch(
     Meeting,
     ForAll(
     colTasks,
     {
     Title: Now(),
     Task: 
     ForAll(
     Gallery_Tasks_NextWeek.Selected.Task As aTask,
     {Value:aTask.Value}
     )
     }
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Mana Profile Picture
    171 on at

    Hello @WarrenBelz

     

    Thank you so much for your fast responce but I still get an error as showen below:

     

    Poma1_0-1650867441365.png

    Invalid argument type(table). Expecting a record value instead.

    The function "ForAll" has some invalid arguments.

    The function "Patch" has some invalid arguments.

  • Verified answer
    WarrenBelz Profile Picture
    154,447 Most Valuable Professional on at

    Hi @Poma1 ,

    Firstly you do not need the "odata" reference any more, however that is not what I posted (you have colTaskName in there rather than Task). I am assuming here that the Task field is in the Selected record in the gallery.

  • WarrenBelz Profile Picture
    154,447 Most Valuable Professional on at

    Hi @Poma1 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Mana Profile Picture
    171 on at

    Hello @WarrenBelz 

     

    Below is the solution that worked for me:

     

    Poma1_0-1651402448712.png

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard