cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
johnwrightPOL
Level: Powered On

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

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.

2 REPLIES 2
Community Support Team
Community Support Team

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

Hi @johnwrightPOL,

 

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 Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
johnwrightPOL
Level: Powered On

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

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

 

UpdateIfError2.png

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 283 members 3,927 guests
Please welcome our newest community members: