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 / Patch new record and t...
Power Apps
Answered

Patch new record and then return autonumber created in same row as dataset

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

i am currently building a vacation app. My Mission is to patch Data, as soon as it gets patched id like to send a Deep Link to my manager.

 

I am Patching data with multiple datatypes, input comes from user. As soon a new record is created a autonumber will gerenerate a unique id for this dataset. I want to use it for Deeplinking.

 

i am not able to fetch this id in the current record, i am not able to filter the row due data type difference.

 

Can anyone help me in this case?

 

thanks!

 

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

    @Anonymous 

    Patch is a function that patches two or more records together and returns the result of the combined records.

    In the context of using a datasource as the first parameter, patch knows to combine the records to a datasource, but it still returns the resultant record.

    You can snapshot that return record into a variable for later use:

    Set(recordResult,  Patch(yourDataSource, sourceRecord, changeRecord))

    recordResult will have the entire patched record in it.  From there you can reference the column you want that has the autonumber generated.

     

    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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard