cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mdannemiller
Level: Powered On

New Item Created in SharePoint, need the ID

I have a situation where I'd like to create an item in a SharePoint list and then associate that with a document in a document library (Since we can't do attachments natively yet).  However, with the way the workflow is, we need to create the item first, then upload the photo.  As such, I would like to create an item, get the ID, and associate the ID to the document library in a lookup column.

 

Is there a way to get the ID of a newly created item in SharePoint?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Oleks
Level: Powered On

Re: New Item Created in SharePoint, need the ID

Hi @mdannemiller,
You can get the ID of the new item after calling the SubmitForm function using the LastSubmit form property.

 

SubmitForm(FormName);
FormName.LastSubmit.ID

 

-Oleks

View solution in original post

1 REPLY 1
Highlighted
Oleks
Level: Powered On

Re: New Item Created in SharePoint, need the ID

Hi @mdannemiller,
You can get the ID of the new item after calling the SubmitForm function using the LastSubmit form property.

 

SubmitForm(FormName);
FormName.LastSubmit.ID

 

-Oleks

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,103)