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 / Flow to copy elements ...
Power Automate
Answered

Flow to copy elements from one list to another with the attached files in SharePoint

(0) ShareShare
ReportReport
Posted on by 8

Hi,

We are trying to create a list from an existing list in another site in our SharePoint. Everything seems to work fine until we have to move the attached files too, to do this I created a flow, but it's showing me an error and I don't know how to solve it.

 

TonRigat_0-1674811828596.png

This is the flow that i'm working on.

 

And the error:

TonRigat_1-1674813410337.png

Thanks

 

Categories:
I have the same question (0)
  • Verified answer
    wskinnermctc Profile Picture
    6,519 Moderator on at

    It looks like the Item Id is not being filled in correctly. In the Items() part of the expression it is being filled with "A02" which is not an item number. Within Items() should be the list ID for the item so like items(1) would be the first item created in the list and items(10) would be the tenth item created in the list.

     

    wskinnermctc_0-1674833230512.png

     

    I don't know how or why that expression is being filled like that, but I think you need to check the outputs of the values for "Id" or "ID" or "ItemId" and see if that is causing the error.

     

    I know file properties aren't always labeled like we expect for example if you run the power automate step Get File Metadata for a file in a document library the results will show "ItemId" as the item number from the list and the "Id" will be a encoded path to the document.

     

    So check what values are being used as an Id or maybe use the Peek Code option for the step and see if that helps show where the value is coming from.

  • grantjenkins Profile Picture
    11,063 Moderator on at

    For Get content from attachments you should be using the Identifier field from Get attachments, and for Add attachments you should be using the Identifier field from Create item. At the moment, you're using ID for both of them which is causing the issue.


    ----------------------------------------------------------------------
    If I've answered your question, please mark the post as Solved.
    If you like my response, please consider giving it a Thumbs Up.

  • TonRigat Profile Picture
    8 on at

    It kind of worked, with some other errors, but I got out of the loop.

    I was trying to use an item I created inside the same list, because the ID it would not follow the order I intended, but it seems that this does not matter and works properly. Changing it to the ID was the solution.

    I have some error now in the second loop where it has to attach the files, I'll try to solve it my self for now.

    Thank you very much

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard