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 / Columns in UpdateIf() ...
Power Apps
Unanswered

Columns in UpdateIf() doesn't work without ' '

(0) ShareShare
ReportReport
Posted on by 12

Hi guys, I'm having a problem with my UpdateIf() it's not sending the data to my SharePoint List and it changes all the rows too, also, I wish to know what defines the column inside the UpdateIf() to have the  ' '  , gonna send a generic code just for you guys see what I'm saying. Also, a have a few Columns that are from choice type

 

Heres is the code -> 

UpdateIf('SharePointList',ID=Form.LastSubmit.ID,

{
Column:{Id: 1, Value:If(Icon_Name.Icon = Icon.Send,DropDown.Selected.Value,First(Filter('SharePointList',ID = id)).Column.Value,

'Column_2': DropDown2.Selected.Value
}


)

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,397 Most Valuable Professional on at

    Hi @Pedro_Henrique ,

    If you are only updating one record, Patch is a better option - also Choice columns do not need an ID. Try this (I am not sure where you are getting id from for the reference)

    Patch(
     'SharePointList',
     {
     ID: Form.LastSubmit.ID,
     Column:
     {
     Value:
     If(
     Icon_Name.Icon = Icon.Send,
     DropDown.Selected.Value,
     LookUp(
     'SharePointList',
     ID = id
     ).Column.Value
     )
     }, 
     'Column_2': DropDown2.Selected.Value
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Pedro_Henrique Profile Picture
    12 on at

    Good morning sir, I'll try your solution. Just for answer your doubt, the id it's a variable that was set inside the .OnSelect property from a few Buttons that are inside a Gallery, this variable is set the same way inside every button

     

    Sintax: Set(id,ThisItem.ID)

     

    And about the other doubt, do you sir have an explanation for some columns inside the UpdateIf() use or not use the '' ? Thanks for the answer in advance 🙂

  • WarrenBelz Profile Picture
    156,397 Most Valuable Professional on at

    Hi @Pedro_Henrique ,

     I have never needed to use '   '  around field or data source names unless they contained spaces or special characters, however using them will work in all cases.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard