Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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.

  • andrewp3283 Profile Picture
    27 on at
    Re: Creating on Sharepoint List item from multiple values in powerapps

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

  • Verified answer
    LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at
    Re: Creating on Sharepoint List item from multiple values in powerapps

    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
     //...
     }
    )

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard