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 Apps / Move a document to one...
Power Apps
Suggested Answer

Move a document to one library to another

(1) ShareShare
ReportReport
Posted on by 18
Hello everyone,
 
I have a Sharepoint library that is related to a Sharepoint list through the ID and the IDCompany column. What I want is to be able to move the information from the list to another and also the file to another library but that both remain connected through the IDCompany.
 
On the left side I have my Sharepoint List and on the rigth I have my Library
 
 
To move the information from the Sharepoint List I use this flow 
 
But I stil don't know how I can obtain the new ID after moving the information and use it on my library
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,974 Moderator on at
    Hi,
     
    Firstly thank you so much for actually having a picture and a clear explanation, like no sarcasm at all.
     
    So the issue is, the ID is a SharePoint column and you CANNOT write into it.
     
    So in the list your want to write too, you need to add a custom column and call it like OldID and then put the ID value you brought without Get Items from the original list there.
     
    Then after you do the Create Item
    You can immediately grab the new ID created from that Action, which is now the one you want to put in your 2nd Document library.
     
    So as you loop through the Old List items, you need to create their item in the new place first, and then use the generated ID from that Action to write your files or whatever to the document library column
     
    But again, you cannot write to the ID column you will need to use a custom column to store it.
     
    If this answered your question please mark it as such.
     
  • CU13022108-0 Profile Picture
    18 on at
    Hello,
     
    Thank you for your answer, it helped me get the ID but now my problem is that with the flow I move several documents and each one has to have a different OldID. However, when moving them to the other library, they all pass with the same ID

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard