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 / set a column value on ...
Power Apps
Answered

set a column value on sharepoint list to default with a button on power apps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello There, 

Is there any way to set a column value on sharepoint list to default with a button on power apps ? 

the column changes between 1 to 7 and i need a reset button to send the values on the column to 1 !!

 

 

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    Hey! Explain your question better....

    You want to set a default on a SP List?

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I am going to presume that you are already working with this SharePoint list in your power app.   Your question reads like you want to set all the values in that column back to 1 at the same time,  would this be correct?

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    If you want to send the value from PowerApps to SharePoint list column value than its possible but if you want to change default value of the sharepoint list from PowerApps its not possible. 

     

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Nogueira1306 

    I have a column on SPO. What i need is a reset button on my power app that sends the values on the column to 1 whenever i press the button !!

    22.PNG

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I understood that part.   Are you wanting to reset the value for all items in the SharePoint list or for a single item when you press the button?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @JR-BejeweledOne I need it for all items on the column 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @PriyankaGeethik  Yes i want to send the value from power apps to share point list 🙂

  • Verified answer
    JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    You can do it like this:   If your clickCount column is text, please wrap the 1 in quotes "1"

     

    UpdateIf(SharePointList, clickCount <> 1, {clickCount: 1})

       

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Anonymous ,

     

    Please use the below code if it helps. 

     

    on button select: Set(varDefaultValue,true);Set(varValue,1);
    
    On Patch clickCount: if(varDefaultValue,varValue,YourNormalValue);

     

    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.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @PriyankaGeethik @JR-BejeweledOne Thank you guys for your respons 🙂 

     

    🍻Cheers !!

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 Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard