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 / run patch and then hav...
Power Apps
Answered

run patch and then have textbox show that last id

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a screen, not a form.  textbox1, button to execute the patch.

 

 

I need a textbox1 to show the last id created specifically to a user. 

The user field is called  User1.  That value is from txtUser.Text on the screen.

 

 

The Patch code: I'm running this patch code.

Patch('[dbo].[t_redbook_pricing_escalation_master]',Defaults('[dbo].[t_redbook_pricing_escalation_master]'),
{
QS_RACFID: txt_QS_RACFID.Text,
STATUS: "Pending Leader Review",
ESCALATION_CREATED_BY: txt_qs_fullname.Text,
DATE_ESCALATION_CREATED: Now()

}
)
;

 

Thanks

Dave

 

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Please consider changing your Formula to the following:

    Set(PatchResult, 
     Patch('[dbo].[t_redbook_pricing_escalation_master]',
     Defaults('[dbo].[t_redbook_pricing_escalation_master]'),
     {
     QS_RACFID: txt_QS_RACFID.Text,
     STATUS: "Pending Leader Review",
     ESCALATION_CREATED_BY: txt_qs_fullname.Text,
     DATE_ESCALATION_CREATED: Now()
     }
     )
    )

     

    Set the Label Text property to : PatchResult.ID

     

    I hope this is helpful 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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 337 Most Valuable Professional

#2
11manish Profile Picture

11manish 173

#3
Valantis Profile Picture

Valantis 86

Last 30 days Overall leaderboard