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

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (54,604)