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 Apps
Answered

Unique id

(0) ShareShare
ReportReport
Posted on by 10

Hello, 

I have two forms in Power Apps connected to two tables in SQL. For the first form I have only one registration, from the second form there are 4 registrations. I want to create a unique id for each record. After completing the first form, I wanna see all the records from the second form with the same id as the first form.

e.g. I have a car number in the first form, in the second form there are a series of technical problems with the car. In the first form it creates an id for car, but in the second form it creates an id for each record for the same car. I want the id for the record in the first form to be the same for all the records in the second form. 

 

Categories:
  • Verified answer
    QuentinDURIEZ Profile Picture
    577 Moderator on at

    Hi,

    You can use Form.LastSubmit to get the last item that was submitted by a form, so you can retrieve your last car id and use it in your second form

     [FORM].LastSubmit.[CAR ID]


    Regards,

  • Ana_Maria Profile Picture
    10 on at

    Yes, it works, but when I create a new record, the ID does not always appear in the first form so the last ID cannot be taken in the second form. The ID in the first form is the primary key in an SQL table. If the ID does not appear in the first form, in the second form there will be no registration.

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard