cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jblackcitrin
New Member

SharePoint Item ID doesn't work in next step

I am trying to pass the Item ID of the most recent file in a SharePoint folder through the "Get file metadata" action to then use as a string in the subject of an email.

 

I first used "Get items" and ordered descending by date created and kept only the 1st item.

 

jblackcitrin_2-1662923647000.png

 

When I pass this through "Get file metadata" it fails, saying it can't find the file.

 

jblackcitrin_0-1662923562288.png

jblackcitrin_4-1662923968804.png

 

jblackcitrin_3-1662923918655.png

 

Any ideas how to fix this? Do I need to include the subfolder in the Site Address field of "Get file metadata"? Right now it's just the top level of the site address on SharePoint.

 

Thanks very much in advance!

1 REPLY 1
Rhiassuring
Super User
Super User

Hi there, 

 

File Identifier isn't the ID, but the full path of the file. You should have that from your "Get Items" - you should see it like this: 

 

Rhiassuring_0-1662935109884.png

 

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,170)