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 Automate / Poweapps: checkbox and...
Power Automate
Unanswered

Poweapps: checkbox and save value in excel list

(0) ShareShare
ReportReport
Posted on by 93

Hi all, i have three checkbox and i want to save value in excel table once i check one of the them. thanks.

Screenshot .jpg

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Lacoste ,

     

    Could you please show me the settings of the canvas app? What is the gallery's Items property?

     

    Could you please show me the excel table?

     

    I addition ,this is Power Automate Forum, I suggest you navigate to Get Help with Power Apps - Power Platform Community (microsoft.com) for help.

     

    Best Regards,

    Bof

  • Lacoste Profile Picture
    93 on at

    Hi @v-bofeng-msft,

    Thanks for your feedback, as i said CHOICE2 is the name of the column in my sharepoint list and testliste2 is my sharepoint list name and Gallery1 is the name of Gallery 

    -the name checkboxValue ,i defined it in each checkbox. 

    the code i provided works well but it only save on value, 

    The issue is that, i m saving all the values to a single variable so as soon as i tick a new box the old one will overwrite and i do not know how to overcome that issue!

    I want to read all rows of the gallery and patch the information in each row. Thanks.

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Lacoste ,

     

    Thanks for your feedback, as i said CHOICE2 is the name of the column in my sharepoint list and testliste2 is my sharepoint list name and Gallery1 is the name of Gallery 

    Although you explained what these parameters are, I don't see what properties of what controls they are placed in. Maybe you mentioned them in other posts you've posted, but if that's the case, I recommend you don't post duplicate posts to help you get better assistance.

    What is Choice2's datatype is it a Choices Column? Does it allow multiple selections?

    -the name checkboxValue ,i defined it in each checkbox. 

    What is CheckboxValue, where did you defined it?

    the code i provided works well but it only save on value, 

    There is no code in this thread.

    The issue is that, i m saving all the values to a single variable so as soon as i tick a new box the old one will overwrite and i do not know how to overcome that issue!

    Could you please show me the code.

     

    In addition , I do not recommend you to read all rows of the gallery and patch the information in each row. You could set set the check box's OnCheck and OnUnCheck property to update the row. For example:

     

    I assume Choice2 is a Choices column who do not allow multiple selections.

    I assume the gallery's items property is testliste2

     

    Set the check boxs' OnCheck property to:

     

    Patch(
     testliste2,
     ThisItem,
     { 
     CHOICE2:{Value:"PC"}
     }
    )

     

     

    Best Regards,

    Bof

     

     

  • Lacoste Profile Picture
    93 on at

    Hi @v-bofeng-msft 

    Thanks a lot again for your feedback,

    i actually want if you checked like for example 4 checkboxes you get the checked values (PC, DESK or PHONE) in sharepoint list and the list should be updated once we click on save button,

    kindly see my code i used but when i checked one checkbox it update the value well but if i checked more than one checkbox it overwrite the value i.e. it only save one value instead of saving the all checked values.


    On the CheckBox1 on select property (same for checkbox2 and 3):

    Set(selectedItem, ThisItem); Set(checkboxValue; "PC")

    On the save button onselect property:

    Patch(testliste2, selectItem, {CHOICE2: checkboxValue})

     

    A2.jpg

    A3.jpg

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Lacoste ,

     

    Please try:

     

    On the CheckBox1 OnCheck property (same for checkbox2 and 3):

     

     

    If(

        !("PC" in checkboxValue)  && selectedItem.ID=ThisItem.ID,

        Set(checkboxValue,checkboxValue &";"&"PC"),

        electedItem.ID <> ThisItem.ID,

        Set(checkboxValue, "PC")

    );

    Set(selectedItem, ThisItem);

     

    On the CheckBox1 OnUnCheck property (same for checkbox2 and 3):

     

    If(

        "PC" in checkboxValue  && selectedItem.ID=ThisItem.ID,

        Set(checkboxValue,Concat(Filter(Split(checkboxValue,";"),Result <> "PC"),Result,";"))

    );

    Set(selectedItem, ThisItem);

     

    Best Regards,

    Bof

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard