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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,695)