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 / Unable to update the s...
Power Apps
Unanswered

Unable to update the status column from in-progress to approved state .

(0) ShareShare
ReportReport
Posted on by 26

I am a novice in developing the apps and learning this baby steps by help of vast helpful video and blogs .Thanks to all power trainer . 

Here is my Question-  

Requirement: I have a SP list where I am fetching set of details using power automate . In that status field column is there with 'status = In-progress' and I want to show that as an application where other person (the approver)  can open the form details  and on clicking approve button status field should change to Approved . 

 

How can I achieve that . I am sure somewhere I am doing wrong in the 'patch function' and even tried 'update if' function. 

I am getting below error code  . Attached the screenshot. @Dhruvin @RezaDorrani  request t

Error screen.jpg
Categories:
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Powerquery ,

     

    Would you please paste the whole code here so that I can Help you on this ? 

  • Powerquery Profile Picture
    26 on at

    @PriyankaGeethik , Thanks for the response.

    here is the code 

    Updateif(Form name , {Status ='Submitted',{Status=Approved}}

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    @Powerquery 

     

    I assume you want to change the status of the column on click of button.

    UpdateIf(FormName,ID,{Status:"Approved"})

     

    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.

  • Powerquery Profile Picture
    26 on at

    PG_WorXz10 

    yes on clicking the button I want to change the status to Approved or Reject . how can I get the ID as you mentioned in  the code ?

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Powerquery ,

     

    Please use Parent.Default in place of ID.

     

    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.

  • Powerquery Profile Picture
    26 on at

    Hi @PriyankaGeethik

    I have tried using the default also getting the attached error , Fyi, I am creating this app using SP list-->Integrate -->Power app-->Create app optionThe function updateif has some invaild argumentsThe function updateif has some invaild arguments Request to any power user who can help me out here 

  • Powerquery Profile Picture
    26 on at

     Any solution for above  @PriyankaGeethik ?

     

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @Powerquery ,

     

    Is your list name form ?

  • v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @Powerquery ,

    Seems your Status column is a Text column, if yes, I would suggest you to use Patch function to do this update, so try this formula:
    (you need to replace with your listname and Gallery name)

    Patch(listname,BrowseGallery1.Selected,{Status:"Approved"})

    Best regards,

    Allen

  • Powerquery Profile Picture
    26 on at

    @PriyankaGeethik Yes  list name is Forms

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard