web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Get ID from 'Copy File...
Power Automate
Answered

Get ID from 'Copy File' Step

(0) ShareShare
ReportReport
Posted on by 65

I'm building a Flow that will create and update a file in my library when a list item is modified.

 

I can successfully set up this flow to create a document with all of the metadata that doesn't follow the library template. In this process I use the 'create file' and 'update file properties' steps.

 

I can also successfully set up this flow to create a document that is formatted to the template and named correctly, but has no metadata. In this process I've placed a template in my library and am using the 'copy file' to create a copy that is named based on the list item that is being updated.

 

Right now I'm trying to utilize the second process (copy file) and add in the 'update file properties' step. However, after the 'create file' step, I'm given dynamic content choices with an item id of the new file. After the 'copy file' step, the only dynamic content that populates is the file size.

 

I feel like I'm SO close to figuring this out, I just can't get there.

 

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    v-yuazh-msft Profile Picture
    on at

    Hi @ nhalvorson,

     

    Could you please share a screenshot of the configuration of your flow?

     

    The “item id” dynamic content of the “Copy file” action of sharepoint connector is not supported in Microsoft Flow currently.

    If you would like this feature to be added in Microsoft Flow, please submit an idea to Flow Ideas Forum:

    https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

     

    Is your document without metadata?

    If your document without metadata, maybe you couldn’t use the “copy file” action to achieve your needs.

    If your document have metadata,I have made a test on my side, If you want use the “item id” of a copy file, you could add a “Get file metadata” action under the “copy file” action, then you could use the “item id” dynamic content of the “Get file metadata” action to update the file properties.

     

    Regards,
    Alice Zhang

  • nhalvorson Profile Picture
    65 on at

    Thank you. I figured this out last week, but didn't update. I ended up using the 'Get file metadata using path' to grab the item id needed for the 'Update file properties' step.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard