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 / Updating a single line...
Power Apps
Unanswered

Updating a single line of text of a sharepoint list item

(0) ShareShare
ReportReport
Posted on by 1

Hi everyone!

I'm stuck with this topic for several days, and searched for every possible answer on google, yet I couldn't find a solution that works for me. I would be very grateful for your help. 

I have a sharepoint list named Workers (containing data of workers at a certain company).
In that list I have a column named Status.

I created a powerapps form, having some single line text, choice fields etc. to create data for the workers. Note that, if I create a new worker, you cannot change the Status, and it doesn't have any value by default.  If you click on any of the workers in the list, you can see the viewform (the data), now, if you click on modify, you get an editform, where you have 2 buttons; "Activate" and "Reject"
If you click on Activate, the ediform closes, and sets the worker status to "active", or, if you click on Reject, the same happens with status: "rejected".

Button1, Button2 : "Activate" and "Reject" button names
Status_Datacard1 : name of the status datacard

DatacardValue8 : name of my status datacards single line text input field

At least that is what I want my powerapps to do. I tried several options, for example; patching the OnSelect function each of the buttons, or UpdateContext the value of the single line text, or setting variable on the text field and Onselect of the buttons changing the variable to "active" or "reject". I cannot change the wanted value of my sharepoint list.
I've seen videos people doing this easily with a gallery, I think maybe sharepoint integration made this very hard for me.

Categories:
  • Masino Profile Picture
    321 on at

    try to work with collection and then patch the result to your list, or at least that's what i did when i had  actually the exact problem! The only difference was that with the status accepted/rejected i used a checkbox.

     

    OnCheck:

    Patch(
    Sharepointlist;
    ThisItem;
    {Admin: true}
    );;
    Refresh(Sharepointlist);;
    ClearCollect(
    collectionList;
    Sharepointlist
    );;

    On the uncheck propriety the only difference is that Admin: false

     


    Hope this helps.

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard