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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Copy SharePoint File B...
Power Automate
Answered

Copy SharePoint File By ItemID/ID

(0) ShareShare
ReportReport
Posted on by 7

Hello,

I have a flow that creates a document and was wondering if it was possible to copy this generated document by file ID? The Copy file funtion does not allow me to select the desired folder and ItemId, which is what I assume is the issue. I'm checking to see if it's possible to copy the automatically generated file to another folder/site using it's ItemId.

I have the following configuration for copying the file by Item ID:

Note that the Item ID is located in a folder https://xxxxx.sharepoint.com/FolderName. The Copy file function does not allow me to manually enter this path unfortunately.

eSant96_0-1605032785711.png

But when testing the flow I get an error (due to the path not existing/cannot find the file by ItemID):

 

"status": 400,
"message": "Failed to verify the existence of source object at 'https://xxxxxxx.sharepoint.com/37' due to error 'The system cannot find the file specified. (Exception from HRESULT: 0x80070002)'.\r\nclientRequestId: 8db0293c-5bd1-47e3-a229-225fc702cd6d\r\nserviceRequestId: 8db0293c-5bd1-47e3-a229-225fc702cd6d"

 

The path should be https://xxx.sharepoint.com/foldername/37 but I am unable to select/enter this in the copy function.

Any thoughts?

 

THanks!

Categories:
I have the same question (0)
  • Verified answer
    tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @eSant96 ,

    do you have dynamic content 'Identifier' available? I think that's the one you need to use as that one is unique on the whole site and 'ItemId' is unique only in a specific library. And as you can see in the action itself, it doesn't ask you for a specific library, it asks only for Site and File to Copy = it needs the unique 'Identifier' of the file.

  • eSant96 Profile Picture
    7 on at

    Thank you Tom. This has resolved the issue. Appreciate the help!

  • askondo Profile Picture
    Microsoft Employee on at

    @tom_riha Thank you for always activating the forum.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard