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 / Using UpdateIf functio...
Power Apps
Unanswered

Using UpdateIf function to update the value for a field normally set by dropdown

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am trying to use the UpdateIf function to update a column that is normally set by the selecting of a value from a dropdown.

 

Here is what I am trying:

 

UpdateIf('Report Request List', ID = TemplateGalleryList1.Selected.ID, {Status = "Signed Off"})

 

I get the error: The type Text is invalid for column 'Status'; Record expected.

 

UpdateIfError.png

 

What does this mean please?

 

I suspect it's due to the type of column, because when I try the following with an integer column, it does not error:

 

UpdateIf('Report Request List', ID = TemplateGalleryList1.Selected.ID, {StatusCode = 5})

 

Any help would be most gratefully received.

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Are trying to update the value of a SharePoint column that is of type Choice? If this is the case, this post can help you with how to properly set the value of the column when trying to update it:https://powerusers.microsoft.com/t5/PowerApps-Forum/Solved-patching-to-SharePoint-choice-and-lookup-...

     

    Regards,

    Mona

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    No, this did not fix it. I now get an error saying that the requested operation is invalid:

     

    UpdateIfError2.png

  • smolahloe Profile Picture
    7 on at

    Hi,

     

    I know it's a bit late but the answer is located here

     

    http://sharepointcookies.com/2019/11/power-apps-working-with-patch-and-sharepoint/

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard