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 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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (5,161)