cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Aurélien
Helper I
Helper I

Export pièces jointes

Bonjour,

 

J'ai déjà créé un sujet concernant ce sujet:

 

"https://powerusers.microsoft.com/t5/General-Discussion/Exporter-pi%C3%A9ce-jointe/td-p/249972"

 

Mais j'aimerais automatisé le processus à chaque enregistrement ou modification de donnée.

 

Merci par avance, cordialement.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

FR - Le Flow contient l'action "Ajouter à la variable de chaîne". Il faudrait plutôt utiliser "Définir une variable".

EN - The Flow action is "Append to string variable". Using "Set variable" should meet your requirements.

View solution in original post

15 REPLIES 15
v-yamao-msft
Community Support
Community Support

Hi @Aurélien ,

 

Could you share more details on your scenario?

 

How do you want to export attachments?

 

Do you want to trigger the flow whenever an item is created or modified?

 

If you just want to export attachments of specific item, please check the following screenshot.

 

It the following scenario, whenever an item is created or modified, the attachments added in the item would be created in a OneDrive for Business folder.

 

Please check it for a reference  and take a try with it.

1.PNG

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Bonjour, 

 

Voici mon Flow.

Modifier votre flux  Microsoft Flow - Google Chrome.jpgJ'aimerais automatiser ceci afin que le fichier ce mette à jour pour chaque enregitrement, ou modification d'enregistrement depuis une application power apps.

 

Bonne réception, cordialement.

Hi @Aurélien ,

 

I am not sure with your language. Could you post in English?

 

I guess that you want to get the attachments link and then save them into an Excel table.

 

Please remove the variables from your flow, and save the AbsoluteUri of the attachment to the table directly.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello,

 

For simplicity, ideally I would like to get the link in the same sharepoint list ("Observation_Photo")

PecOnline - Observation_Photo - Tous les éléments - Google Chrome.jpg

This is what the "powerapps" application looks like

 

PecOnline -National - PowerApps - Google Chrome.jpg

 
Thank you for your involvement

Hi @Aurélien ,

 

If you would like to run the flow every time an item is created or modified, please use the trigger When an item is created or modified.

 

To get the link to the attachments that saved in the list, please use the action Get attachments, then get the dynamic content AbsoluteUri and save it in the following actions.

 

An image for your reference.

1.PNG

 

Best regards,

Mabel

 

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello,

 

Thank you for your answer, but how to store the URL directly in the list on the associated line?

As in the picture below (in the "URL" column)

 

PecOnline - Observation_Photo - Tous les éléments - Google Chrome.jpg

Thank you so much !

Hi @Aurélien,

 

Thanks for updating.

 

If you want to insert the AbsoluteUri in the Attachment column, I am afraid that it is not possible currently.

 

Please try to add a Hyperlink column, then save the AbsoluteUri to this column.

 

In the following test, I have added a column named as Attach of type Hyperlink, then the AbsoluteUri could be saved into this column.

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello,

 

Yesterday, I found the answer.

here is the solution that I used:

Modifier votre flux  Microsoft Flow - Google Chrome.jpg

Here is a little more precision :

Modifier votre flux  Microsoft Flow - Google Chrome_2.jpg

 

Modifier votre flux  Microsoft Flow - Google Chrome_3.jpg

Thank you  for you help !

 

Bonjour,

 

Votre Flow va se lancer plusieurs fois à la suite:

1) lorsque l'élément sera créé ou modifié via PowerApps

2) lorsque le Flow va mettre à jour la colonne URL, cela met à jour un élément de la liste donc ça lance le Flow.

3) s'il y a plusieurs pièces jointes, il y aura autant de Flows qui se lancent en parallèle

 

Ce n'est donc pas efficace et comme le coût de Flow peut varier si le nombre de lancement est grand, il y a un risque de surcoût. Pour résoudre ce genre de cas, j'utilise un Flow qui se lance toutes les 5 minutes et qui se lancent sur tous les documents répondant aux critères recherchés (valeur d'une colonne, document modifié récemment,...). Il y a peut-être d'autres solutions.

----

Hi,

Your Flow will run twice or more. Updating the URL column will update a list item. That will trigger the Flow again. And if there are multiple attachments, multiple runs will start.

There is a risk that the number of runs allowed on your tenant would exceed what you are paying for. To workaround a similar case, I replace the trigger with a recurrence (e.g. every 5 minutes) with an apply it to each relevant items (e.g. modified recently). Maybe there are other solutions.

Hi @Franck_Garcia ,

 

Trigger “When an item is created or modified” will trigger the flow whenever a modification is applied to the list.

 

And if the attachments are not added at the same time, the flow will be triggered multiple times.

 

You may consider using “When an item is created” if it meets your scenario.

 

A workaround to reduce the runs would be using Recurrence trigger as you’ve already tried.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello,

 

After a few tests, I happen to have a problem.PecOnline - Observation_Photo - Tous les éléments - Google Chrome_2.jpgTo summarize, the "Flow" incriminates my links

 

Row1 = Attachement 1 = URL_Value 1

Row2 = Attachement 2 = URL_Value 1 + URL_Value 2

Row3 = Attachement 3 = URL_Value 1 + URL_Value 2 + URL_Value 3

 

And I want:

Row1 = Attachement(s) 1 = URL_Value 1

Row2 = Attachement(s) 2 = URL_Value 2

Row3 = Attachement(s) 3 = URL_Value 3

 

 

Would someone have a solution?

 

TY.

 

 

FR - Le Flow contient l'action "Ajouter à la variable de chaîne". Il faudrait plutôt utiliser "Définir une variable".

EN - The Flow action is "Append to string variable". Using "Set variable" should meet your requirements.

View solution in original post

Bonjour Franck,

 

Cela fonctionne mais il je n'arrive pas a récupérer les url quand ils y a plusieurs piéce jointes sur la ligne.

Le flow me donne 1 url maximum.

 

Cdlt

 

Comment va être géré le fait d'avoir plusieurs URLs dans le formulaire et dans la liste Sharepoint: 1 saut de ligne dans la colonne URL ? 1 enregistrement par attachement ?

Exemple:Classeur2 - Excel.jpg

Si j'ai 2 piéce jointe sur une ligne, je veux que le flow m'indique les liens decette ligne dans la colonne URL_Value. Chaque URL doit être séparés par " ; ".

 

Merci par avance

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,417)