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 / How to collect the GUI...
Power Apps
Unanswered

How to collect the GUID of a record I just created in Dynamics 365?

(0) ShareShare
ReportReport
Posted on by 2

I am using powerapps to submit a form to a table of Recruits in Dynamics 365. The GUID is generated and autoassigned to the record by CRM on submission to the table, my app does not create it. How would I collect the guid of the record I just created in powerapps? I tried Last(Recruits).guid, but that gives the wrong value.

Categories:
  • SvenV Profile Picture
    101 on at

    Hey

     

    What is your field in Dynamics 365 called? guid? Not RecruitId or something?

    Can't you reach it via ThisItem.guid?

     

    Kr

  • Atcrm Profile Picture
    2 on at

    Yes, it is called guid. My app creates a new blank form (the guid field is not set), the user enters in their info (e.g. name, etc), then I SubmitForm and send the data to crm. CRM makes a new record and fills in the guid field in the database. I can't use ThisItem.guid because at the time of submission, guid is blank. 

     

    I need the value of guid on the next screen after the form is submitted, but I'm not sure how to get it then. Hope that clarifies my problem.

  • SvenV Profile Picture
    101 on at

    Ok another suggestion. Add a field to your form, reference it to the guid field from your datasource and you can hide it by chanding the Visible option. If all goes well the guid should just be there after your submitform action. Have you tried that?

  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    If you're using an Edit Form to create the new record, you can use the LastSubmit property of the form, it should have the record that was inserted in the successful form submission, including any server-generated fields. Take a look at the property description in the Edit Form details page for more information.

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

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard