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 Automate / Ajouter les pièces joi...
Power Automate
Unanswered

Ajouter les pièces jointes d'une liste Share Point dans un e-mail avec Power Automate

(0) ShareShare
ReportReport
Posted on by 14

Bonjour,
J'ai créé une application Power Apps permettant de remplir un formulaire dans lequel est ajoutée une pièce jointe. Ce formulaire s'enregistre dans une liste Share Point. J'ai ensuite créé un flux Power Automate qui permet d'envoyer un e-mail à une personne lorsqu'un élément est créé ou modifié dans cette liste. J'aimerais justement que dans le corps de cet e-mail soit présente la pièce jointe. Mais dans les contenus proposés depuis la liste Share Point je ne trouve que le contenu "contient des pièces jointes" (booléen) et non la pièce jointe en elle-même. 
Sauriez-vous comment faire ?

Merci d'avance 

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Greening,

     

    If I understand you correctly your aim is to retrieve the content of a list attachment and use that to send it in an email. You could use the Get attachments and Get attachment content actions for this.

     

    Below is an example

    In this example one e-mail will be sent for each attachment of the list item. If you expect to have multiple attachments per list item you might want to join it into a single e-mail. That requires a different setup.

     

    emailperattachment.png

  • Sundeep_Malik Profile Picture
    6,484 on at

    Hey @Greening 

     

    Je ne connais pas beaucoup le français. J'ai donc utilisé Google Traduction. Il existe une action appelée obtenir des pièces jointes. Vous devrez d'abord l'utiliser, puis l'envoyer par e-mail.

     

    Sundeep_Malik_0-1679560994122.png

    I hope this helps 🙂

     

    @Expiscornovus  Thanks for correcting hahaha

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Sundeep_Malik,


    That is French, not Spanish 😉

  • Greening Profile Picture
    14 on at

    Merci à tous pour votre aide. Si je fais cela, avec plusieurs pièces jointes dans ma liste SharePoint, j'obtiens l'envoi de plusieurs mails séparés avec dedans une seule pièce joints. Y a-t-il une méthode pour avoir un seul mail avec toutes les pièces jointes dedans ? 

    Merci d'avance !

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Greening,

     

    If you want to be able to sent multiple attachments in a single email you can use an array variable and store the name and content bytes in there.

     

    You can move the Send an email (v2) action outside the apply to each loop and use that array variable in the (after you switch the input of that Attachments field to entire array).

     

    Below is an example

     

    The append to array variable value:

     

    {
     "Name": "@{items('Apply_to_each')?['DisplayName']}",
     "ContentBytes": @{body('Get_attachment_content')}
    }

     

     

    appendtoarray_attachments.png

  • Greening Profile Picture
    14 on at

    Merci encore pour votre aide. 
    Cependant je n'arrive pas à mettre le tableau contenant les pièces jointes dans l'encadré 'Pièces Jointes' dans le mail (voir photo). Il n'est pas trouvable ni dans le contenu dynamique ni dans les expressions. Sur la photo j'ai simplement tapé le nom de ma variable pour essayer.

    Merci d'avance !

    Greening_0-1679674650350.png

     

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Greening,

     

    Just to double check. You have added the Initialize variable and append to array variable actions to your flow as well, correct?

     

    Below is a gif how the switch to entire array input and select the array variable should work. (Click on the gif to see it in higher resolution)

     

    switchtoentirearrayinput.gif

     

    If it still doesn't show up can also add the variable as an expression (as a workaround)

    variables('AttachmentsArray')

     

    addasexpression.png

     

  • Greening Profile Picture
    14 on at

    Oui, j'ai bien introduit la variable et fait toutes les étapes que vous m'avez indiquées. Cependant, moi sur ma version de Power Automate je n'ai pas le bouton sur le droite du champ pièces jointes que vous avez pour ajouter une variable ou un tableau. Comme montré sur la capture d'écran précédente, vous verrez que le bouton n'y est pas. Ensuite j'ai essayé d'écrire l'expression de la variable comme indiqué, mais cela ne fonctionne pas. (voir photos) (voir aussi le message d'erreur qui s'affiche).

    Si vous avez une idée de pourquoi cela ne fonctionne pas...

    Merci !

    Greening_0-1679680663697.pngGreening_1-1679680675701.png

     

  • Greening Profile Picture
    14 on at

    Bonjour ! 
    Je reviens vers vous car après plusieurs tentatives, la partie du code 'Ajouter une pièce jointe' ne fonctionnait pas selon l'historique des exécutions. J'ai changé le code pour faire des tests, et maintenant ce message s'affiche : 

    Greening_0-1680702582394.png

    pourriez-vous m'aider svp ? 

    pour revenir sur précédemment, j'avais fait exactement ce que @Expiscornovus m'avait dit de faire.

    Merci encore d'avance !!

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Greening,

     

    HTTP 429 is a too many requests in a short period type of response. It is very likely if you try it a bit later (after 24 seconds, like suggested in the error 😁) you shouldn't run into that rate limit anymore. 

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard