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 / Creating on Sharepoint...
Power Apps
Answered

Creating on Sharepoint List item from multiple values in powerapps

(0) ShareShare
ReportReport
Posted on by 27

I have multiple checkboxes with my application and the user can select which activity they require, what I need to do is then store those selection of either Yes or No on one record on the sharepoint list for example:

 

Selections:

Activity1

Activity2

Activity3

 

If Activity 1 and 3 are selected then the list item should be

Activity1 = YES

Activity2 = NO

Activity3 = YES

 

I cannot figure out the process for doing this, have been looking at some kind of collection and then sending that to the SP List but cant get all the values into one collection.

Categories:
I have the same question (0)
  • Verified answer
    LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

    What is the data type of the column in the SharePoint list?

    You can create a Record variable like this:

    Set(
     gblRecordActivities,
     {
     Activity1: Checkbox1.Value,
     Activity2: Checkbox2.Value,
     Activity3: Checkbox3.Value
     // and so on
     }
    )

     

    Roverandom_0-1663204101476.png

     

     

    To Patch in SharePoint (assuming the column is text):

    Patch(
     SPList,
     Defaults(SPList),
     {
     Column1: gblRecordActivities.Activity1,
     Column2: gblRecordActivities.Activity2
     //...
     }
    )

     

  • andrewp3283 Profile Picture
    27 on at

    Excellent thanks for that - I was stuck in a loop and could not see another option to get around it 🙂

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard