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.
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!
Solved! Go to Solution.
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.
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.
Thank you Tom. This has resolved the issue. Appreciate the help!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
31 | |
27 | |
27 | |
21 | |
10 |