cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mdannemiller
Frequent Visitor

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
Oleks
Advocate I
Advocate I

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
Oleks
Advocate I
Advocate I

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

Users online (1,258)