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 Automate / Sharepoint - how to mo...
Power Automate
Unanswered

Sharepoint - how to move a file by the value in a column?

(0) ShareShare
ReportReport
Posted on by 26

1st, i'm a very newbie to Power Automate/Flows usage. So i apologize for any errors in the wording...

 

Environment: Sharepoint site with tags (column true/false type, column choice type, etc.).

The need: When a tag is modified, the associated pdf file is moved to another Sharepoint site.

 

If i'm right, because it's a non-Microsoft format file (pdf), Power Automate doesn't know how to move a Sharepoint file with its metadata; instead, we need to copy the file, its content, its metadata and then delete the source file (ex: https://joannecklein.com/2018/01/02/a-modern-transfer-to-another-location-in-office-365/).

 

I was able to copy files + content + metada for all the files in the site.

I was unable to copy the files for a trigger condition (For example, when a column value is set to true).

 

Could you explain to me the best way to successfully create this sort of flow, please?

 

 

 

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,294 Most Valuable Professional on at

    @OlivierCazal 

    Please post a screen shot of your Flow that doesn't work and include a screen shot of trigger condition,  Also post the column types referenced in the trigger condition.

     

  • OlivierCazal Profile Picture
    26 on at

    Hello Scott,  here are the informations you need:

     

    Teams Channel GENERAL [sharepoint site https://(...)/sites/(...)]
    column Traitement (choice = 'OUI' 'non')
    column Avertir (yes/no)
    column Entité (choice = our 8 enterprises)
    column Fournisseur (choice = all of our suppliers)

     

    01. When an accountant submits an invoice pdf file :
    * he/she fills in the both column Entité and Fournisseur
    * when he/she changes the value to yes in the column Avertir, a team message is published to inform the IT manager

     

    02. When the IT manager changes the value to OUI in the column Traitement:
    * a team message is published to inform all our acountants the invoice is in process
    * the selected files are moved to a private channel to certify only the IT manager validates or not the invoices

     

    01. is OK from my part [easy piece of cake, i have no credit 🙂 ]
    02. is where i'm unable to resolve the case

     

    Here are the screenshots (*) for 02.:

     

    (*) sorry for the language, our m365 tenant is in French.

     

     

    Resume:

    Spoiler (Highlight to read)
    OlivierCazal_0-1659078514902.png

    Relative translation:
    When a file is added or modified (properties only)
    Obtain a token @mention user (3 users email id, so 3 tokens)
    Publish the message in a chat or channel
    Obtain the files (properties only)
    Apply to each
    Relative translation:When a file is added or modified (properties only)Obtain a token @mention user (3 users email id, so 3 tokens)Publish the message in a chat or channelObtain the files (properties only)Apply to each

    In details before "Apply to each":

    Spoiler (Highlight to read)

    OlivierCazal_1-1659079006332.png

    site address = source Sharepoint site
    Condition trigger=

    OlivierCazal_2-1659079046870.png

     

    OlivierCazal_3-1659079083670.pngOlivierCazal_4-1659079114353.pngOlivierCazal_5-1659079165270.png

    Site address = source Sharepoint site

    OlivierCazal_6-1659079245908.png
    site address = source Sharepoint siteCondition trigger= Site address = source Sharepoint site

    "Apply to each" details:

    Spoiler (Highlight to read)
    OlivierCazal_7-1659079458654.png


    Relative translation:
    For "Condition", "est égal à " means "equals"
    For "Si Oui" part which means "If Yes":
    Obtain the file metadata
    Obtain the file content
    Create a file
    Update the file's properties
    Delete the file

    With "IF YES" details:

    OlivierCazal_9-1659079648066.png

    Where:
    "Adresse du site" is the source Sharepoint site
    "Identificateur" is the file identifier

    OlivierCazal_10-1659079789323.png

    Where:
    "Adresse du site" is the destination Sharepoint site
    "Nom de fichier (...)" is the file name with extension
    "Corps" is the file content
    "Titre" is title

    OlivierCazal_11-1659079933424.png

    Where "Addresse du site" is the source Sharepoint site

    Relative translation:For "Condition", "est égal à " means "equals"For "Si Oui" part which means "If Yes":Obtain the file metadataObtain the file contentCreate a fileUpdate the file's propertiesDelete the fileWith "IF YES" details:Where:"Adresse du site" is the source Sharepoint site"Identificateur" is the file identifierWhere:"Adresse du site" is the destination Sharepoint site"Nom de fichier (...)" is the file name with extension"Corps" is the file content"Titre" is titleWhere "Addresse du site" is the source Sharepoint site

     

  • OlivierCazal Profile Picture
    26 on at

    Hi everybody, does anyone could help me for this case, please?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard