web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / In Progress, Completed...
Power Apps
Answered

In Progress, Completed Functions

(0) ShareShare
ReportReport
Posted on by 146

Hi Everyone

I'm trying to see if it is possible when pressing a button to go to the next page automatically reflects the case as pending on SP List, and it could stay like that until the done button on the next page is selected then can it change the case to complete. I don't know this is possible, any assistance will be greatly appreciated.

Categories:
I have the same question (0)
  • slerch Profile Picture
    59 on at

    Hi Rey,

    Do you have a Status column in your list? If so, Use the Patch function on the Item to change the Status to "Pending" with the "Next Page" Button and "Complete" with the "Done" button.

    -Spencer

  • ReyOrtiz Profile Picture
    146 on at

    Thanks for the quick response, I try the Patch as you mentioned and I came up with this Patch('DataTTS',Defaults('DataTTS'),{IssueStatus:"Pending"}) but is not adding pending to SP list, Im new in PwA so I don't know if I did the formula correctly. 

  • slerch Profile Picture
    59 on at

    If the Record doesn't already exist on your List, you need to do a Collect to create the item before you can Patch it. You can set the IssueStatus to "Pending" when you create the Item like:

    Collect('DataTTS,{IssueStatus:"Pending"})

    To grab that record I would set that Item I just collected to a variable like:

    Set(currentCase,Last(Collect('DataTTS,{IssueStatus:"Pending"})))

  • ReyOrtiz Profile Picture
    146 on at

    I apply your suggestion and it does add the pending and complete but it's not doing it on the same case, is creating a  blank case for each. so I get 3 lines one for the case, one for pending no date, and one complete no data (The other one is the Patch i was testing something)

  • ReyOrtiz Profile Picture
    146 on at

    Hi, I'm still having trouble getting the buttons to mark the case either Pending or complete, I'm creating a request type form so when it moves to the second page I want the next button to submit the form (which I already have) but to be on pending mode, so when it goes to the next page and the questionnaire is completed and they press done it changes from pending to complete. Can this be done?  thank you for the help

  • Verified answer
    ReyOrtiz Profile Picture
    146 on at

    I was able to figure out the issue I ended using LastSubmit and it worked perfectly.

    Patch('DataTTS',Form2.LastSubmit,{IssueStatus: "Completed"}) And Patch('DataTTS',Form2.LastSubmit,{IssueStatus: "Pending"})

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard