cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Charles-v-D
Level: Powered On

quickest way to obtain the ID of a written sharepoint item

Hi All,

 

In my flow I use "create item" to write a line item in a SharePoint list. A couple of actions later I need to delete the same item. Therfore I like to obtain the unique ID of the item I have just written to store in a variable.. which I can then later use to set ODATA query in "get items" actions to obtain the item and delete it.....

 

So question is: How to obtain the ID of a created item?

 

Regards

Charles

 

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: quickest way to obtain the ID of a written sharepoint item

Actually, the ID of the Created ITEM will be returned by the Create an Item action.

You can then either store that in a variable or use it directly in a later action to delete the item.

 

You won't really need to store it in a variable and you can also use it in a Get Item action instead of using an Odata filter in Get Items.  But none of that is really necessary as you can see from the example FLOW below.

screenshot.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: quickest way to obtain the ID of a written sharepoint item

Actually, the ID of the Created ITEM will be returned by the Create an Item action.

You can then either store that in a variable or use it directly in a later action to delete the item.

 

You won't really need to store it in a variable and you can also use it in a Get Item action instead of using an Odata filter in Get Items.  But none of that is really necessary as you can see from the example FLOW below.

screenshot.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate 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!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (6,824)