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 / Obtain a new record id...
Power Apps
Unanswered

Obtain a new record id and patching

(0) ShareShare
ReportReport
Posted on by 115

Hey Guys, was wondering how I can get the record ID when creating a new record within the edit form and where is the best place to get this from. I have created a canvas app using a sharepint list. When clicking on New Record and completing the required fields, I want to user to assign it to a list of email addresses. This should split the record into how many selections the users makes in the assigned to field (combo box) coming from a collection. I have created a data card from the assigned to field which is a text field. I have created a button within to patch the new record to the assigned to emails. It looks like this

 

iKettle_1-1665596550243.png

 

My idea is to allow the user creating the record to assigned it to one or more users within the combo box and then clicks the Assign Now button which will patch the details to create however many assigned to users is selected with the same details. I would need

1) How I should formula the patch function to achieve this?

2) How I can within the newly create records from the patch, include the initial record ID, however since this is a new record and it does not have an ID yet, how could I achieve this? Maybe OnSuccess I could patch the record, but I would need to get the ID of the parent record to include in the assigned to records and I would need the formula I can use within the OnSuccess?

 

I would appreciate any guidance and formula's to achieve this or maybe there is an easier way, which I am not thinking about. 

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

    @iKettle 

    If you are doing the assignment within your form, then there is no need to patch the record alternatively, it can all be submitted with the form itself.

     

    What I am confused on in your statement is: "the newly create records from the patch, include the initial record ID"

    If it is a newly created record, it will not have an initial ID...what are you trying to say here?

     

  • iKettle Profile Picture
    115 on at

    Thanks @RandyHayes , I have a combo box with a list of user name that a user can assign a work item to, it could be one or multiple. How is it possible to create separate records with the work item tracker sharepoint list, so that the assigned users are able to update their record independantly? and how would I link up the parent record to the assigned records created in Sharepoint?

     

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