Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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
 
  • CU13022108-0 Profile Picture
    18 on at
    Move a document to one library to another
    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
  • Suggested answer
    Michael E. Gernaey Profile Picture
    41,020 Super User 2025 Season 1 on at
    Move a document to one library to another
    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.
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard