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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (26,773)