cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
iiintro
Helper III
Helper III

When I submit a form, how can I get the ID and copy paste it to another form?

Hello Team

 

When I submit a form, how can I get the ID and copy paste it to another form?

 

Is there any way to achieve this automaticly?

 

By the way, if I want create a special ID by combine date+ID, how can I achieve this?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
CNT
Super User
Super User

@iiintro 

If you are submitting the record using SubmitForm(), you can directly use the expression below as:

yourForm.LastSubmit.ID

Or else, you can use the expression as:

Last(Sort(yourSharePointList,ID,Ascending)).ID

 

Hope this Helps!

 

Please remember to give a 👍 and accept the solution as it will help others in the future.

View solution in original post

1 REPLY 1
CNT
Super User
Super User

@iiintro 

If you are submitting the record using SubmitForm(), you can directly use the expression below as:

yourForm.LastSubmit.ID

Or else, you can use the expression as:

Last(Sort(yourSharePointList,ID,Ascending)).ID

 

Hope this Helps!

 

Please remember to give a 👍 and accept the solution as it will help others in the future.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,345)