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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating on Sharepoint...
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard