Skip to main content
Community site session details

Community site session details

Session Id : yLONInMcLIuIZMLFciPbT5
Power Apps - Building Power Apps
Unanswered

Copy Document Number from one libary to another in PowerApps

Like (0) ShareShare
ReportReport
Posted on 22 Jun 2020 14:44:41 by 136

Hello,

 

Im trying to copy a document number from one SharePoint library to another Destination Library only if the Document Number does not already exist.  I have the flow set up to copy the file.  Just need to syntax to check to see if the Document Number already exists in the Destination library.

 

So, if I enter a Document Number (Comm-op-xyz).  Click the button to copy the file only if (Comm-op-xyz) is not already in the Destination library.

 

Thanks,

 

Isaac

Categories:
  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 24 Jun 2020 at 23:04:56
    Re: Copy Document Number from one libary to another in PowerApps

    Hi @ilanos ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    149,102 Most Valuable Professional on 22 Jun 2020 at 20:34:59
    Re: Copy Document Number from one libary to another in PowerApps

    Hi @ilanos ,

    I assume you have the Document Number in the metadata of both Libraries? I will use MyDocNo in the below - change to your field name. I have also assumed you are running this from a form or gallery (hence the ThisItem reference)

    If(
     IsBlank(
     LookUp(
     LibraryName2,
     MyDocNo=ThisItem.MyDocNo,
     MyDocNo
     ),
     do the copy code here,
     Notify("Already exists",Error)
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete