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 / SharePoint List ID Val...
Power Apps
Unanswered

SharePoint List ID Value Name

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

In a SharePoint list, there are several fields that are available automatically before you start creating your own columns, one of these is the ID field which has a unique value every time a new entry is entered. I'm trying to patch some updates to my sharepoint list which is located via the ID column so i'm entering the below code (i've shortened the actual code for ease) but it's telling me that "The type of this argument "ID" does not match the expected type 'Number' . Found type "Text". Can you advise what this should be changed to please so that I can update the sharepoint items and not create new entries? 

 

Patch(QualityPortal, Defaults(QualityPortal), 
{
ID: 'ID_DataCard'.Text,
Title: 'ValueDateTimeNow-1'.Text
});

 

Many thanks in advance

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Your formula indicates that you are Patching into the ID column which is already autonumber as you have indicated. If that is so, then remove the ID part from the code as it will automatically be generated,

     

    If your ID is your own created field and not autonumber, try:

    Try converting the textbox to number:

    Patch(QualityPortal, Defaults(QualityPortal),
    {ID: Value(YourTextboxName.Text),
    Title: 'ValueDateTimeNow-1'.Text
    });

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • WarrenBelz Profile Picture
    155,283 Most Valuable Professional on at

    Hi @Dave-ITMan ,

    To update exiting records

    Patch(
     QualityPortal,
     {ID: Value('ID_DataCard'.Text)},
     {Title: 'ValueDateTimeNow-1'.Text}
    );

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard