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 / Patch Function not wor...
Power Apps
Unanswered

Patch Function not working

(0) ShareShare
ReportReport
Posted on by 4

Hello Team,

I am trying to patch a value to sharepoint but each when I am patching the value, In the sharepoint it is showing item is edited but the value is not updating actually there.

Anyone can help me out?

Here's the code:

Patch(
'Medicine List',
Gallery2.Selected,
{
StockOut: Value(qty.Text)
};
);

1.png
2.png
Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    Hello, @rizwin_ahamed, what is you SP column DataType? Also, are you sure that Value(qty.Text) has a value? Test it on a Label.

     


    If my reply helped you, please give a 👍 If it solved your issue, please give a 👍 & accept it as the Solution to help other community members find it more.

    Visit my Blog: ahmedsalih.blog

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

    Microsoft Business Application MVP

  • rizwin_ahamed Profile Picture
    4 on at

    Hello @AhmedSalih ,

    Sharepoint column data type is a number. And the same case is working for while patching another record to SharePoint by the same method but not for this. How to try it with a label?

  • AhmedSalih Profile Picture
    6,680 Moderator on at

    @rizwin_ahamed , Add a label to the screen and have its Text property set to: Value(qty.Text)

  • rizwin_ahamed Profile Picture
    4 on at

    Hello @AhmedSalih ,

    I have tried with text label as you mentioned, it didn't worked😔. I am attaching screenshot here for your reference. And the same code is working while patching another record to another sharepoint. I have added its pics in attachment section. Kindly check and let me know.


    b.pnga.png

    b.png
    a.png
  • AhmedSalih Profile Picture
    6,680 Moderator on at

    @rizwin_ahamed, The purpose of the label is to test if you have a value in place. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard