Patch Function in Power Apps : SharePoint Number Column

Patch Function in Power Apps : SharePoint Number Column

Patch Function in Power Apps : SharePoint Number Column

Let me show you, how to update a column of the type Number in SharePoint list using Patch Function in Power Apps.

Don’t forget?: our app should be connected to the data source, which is in this case our SharePoint List (Haidar-Soft_Demo_List).

We want to change The Number in this list to become 10.


Patch( ‘Haidar-Soft_Demo_List’, LookUp( ‘Haidar-Soft_Demo_List’, ID = 2 ), {Views:10} )        
Aucun texte alternatif pour cette image


1) A Text Input Value Inside Patch Function

Below you’ll find the code to patch text input value to a SharePoint Number column using Patch Function in Power Apps. Here we use Vale function to convert the Object type to Number type.


Patch( ‘Haidar-Soft_Demo_List’, LookUp( ‘Haidar-Soft_Demo_List’, ID = 2 ), {Views:Value(TextInput3.Text)} )        


This picture down explains how to use that Patch Function code inside Canvas App.

Aucun texte alternatif pour cette image


2) A Dropdown Specific Value Inside Patch Function

Below you’ll find the code to patch a Dropdown specific value to a SharePoint number column.

This picture down explains how to use that Patch Function code inside Canvas App.

Aucun texte alternatif pour cette image


3) A Slider Specific Value Inside Patch Function

Below you’ll find the code to patch a Slider specific value to a SharePoint number column.


Patch( ‘Haidar-Soft_Demo_List’, LookUp( ‘Haidar-Soft_Demo_List’, ID = 2 ), {Views:Slider1.Value} )        

This picture down explains how to use that Patch Function code inside Canvas App.

Aucun texte alternatif pour cette image


Great, it seems that the SharePoint List has been updated.

Aucun texte alternatif pour cette image


You can also see How to patch the other SharePoint columns?here.

要查看或添加评论,请登录

Mohamed-Lamin Taleb的更多文章

  • Azure Networking(5) : Network security Groups

    Azure Networking(5) : Network security Groups

    We cannot talk about Azure network security group without mentioning Network security group, so in this article I will…

  • Azure Networking (4) : VPNGateway (Vnet-to-Vnet)

    Azure Networking (4) : VPNGateway (Vnet-to-Vnet)

    In this fourth articles about Azure networking, I would like to share with how to establish connection between two…

  • How To Build Your Own ChatGPT API With Express_js

    How To Build Your Own ChatGPT API With Express_js

    As AI is going so popular, I felt the need to explain how someone could build his own ChatGPT API using one of the…

  • Azure Networking(3) : Peering

    Azure Networking(3) : Peering

    Peering is the best way to open a connection between two virtual networks, so the virtual machines inside those virtual…

  • Azure Networking (2) : Private Endpoints

    Azure Networking (2) : Private Endpoints

    Private endpoints are somehow extremely Important when it comes to the privacy of the cloud and its security parameter,…

  • Azure Networking (1): Azure Private DNS Zones

    Azure Networking (1): Azure Private DNS Zones

    Azure private DNS zone is one of azure services to keep privacy on virtual networks (Vnet) in Azure networking, in this…

  • How To Call Power Automate From Canvas App

    How To Call Power Automate From Canvas App

    Here in this article, we’ll see how to call Power Automate From Canvas App using PowerApps(V2) Action in Power Automate…

  • How To Install WordPress: Step-by-Step Guide

    How To Install WordPress: Step-by-Step Guide

    Used by more than 455 million sites, WordPress is a content management system (CMS) that has existed since 2003. It…

  • How To Get Started With NextJS

    How To Get Started With NextJS

    Nextjs is a Framework for creating pre-rendered React websites by server-side rendering (SSR) or static side generation…

  • How to use GPS in PowerApps.

    How to use GPS in PowerApps.

    Maps can be used to show contextual information to your users, reason for witch allowing you to represent location data…

    1 条评论

社区洞察

其他会员也浏览了