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

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

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard