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 / Update if of a dropdown
Power Apps
Answered

Update if of a dropdown

(0) ShareShare
ReportReport
Posted on by 834

hi all,

have a dropdown with few values, lets say 1, 2 and 3

 

trying to create a button that would set value 3... like: 

UpdateIf(BI, (ID=ThisItem.ID), {Status: '3'})

it tells me:  "expecting a records".... any idea how to format this formula?

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Sifu 

    Consider the following change to your formula:

     

    UpdateIf(BI, ID=ThisItem.ID, {Status: "3"})

     

    This assumes that your Status is a text column.

    You can also simplify your formula to use the current dropdown value:

     

    UpdateIf(BI, ID=ThisItem.ID, {Status: Self.Value})

     

     

    I hope this is helpful for you.

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Sifu 

     

    Can you share more details about the property that you are using this expression on? Is the dropdown control under a gallery or form? If you can share more details, we might be able to help you better.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Sifu Profile Picture
    834 on at

    @RandyHayes unfortunately still not it.... see pic below

    Sifu_0-1600107968828.png

     

    @yashag2255 i try again... its a sharepoint list that i customized with powerapps... one column is a combobox and i want to use one button to change it to a certain value ... this should save time of the user so he does not have to click the drop down choose right option and maybe even save... simply one click "Done"... (this option is also among the possible options within the combo...)

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Sifu 

    If your Status column is not text (which I mentioned my assumption was for that formula), then you have other provisions to add.

    Your formula should look like this to account for that:

    UpdateIf(BI, ID=ThisItem.ID, 
     {Status: "3",
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
     }
    )

     

     

  • Sifu Profile Picture
    834 on at

    @RandyHayes do i require to adjust something or add some connector,? currently it still doesnt like something... (updateif has invalid arguments....

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Sifu 

    Sorry, I missed a little detail on that.  Your formula should be this:

     

    UpdateIf(BI, ID=ThisItem.ID, 
     {Status:
     {Value: "3",
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference"
     }
     }
    )

     

    That should work for you. 

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard