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 / Attachment from email ...
Power Automate
Unanswered

Attachment from email and name of attachment

(0) ShareShare
ReportReport
Posted on by

Hello everyone, i have workflow where when email arrives to O365 group email it creates a file in sharepoint, i then want to create a new item in a different sharepoint list, for this i need to be able to get the attachment name.

 

I cant get the attachment name into a variable, was hoping to use the variable to then update the item in sharepoint. 

 

added a screenshot showing that i can get the Attachment name into the 'Compose' but not in a variable (using the 'List the attachements of a post' trigger)

 

perhaps there is a different way of getting the attachment name?

 

thanks in advance 

 

 

 

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    While it is recommended that you should avoid variable and use Compose instead, is there a technical error that stops you from using a variable? You won't be able to initialize a variable at that stage, but should definitely be able to set it. Are you able to share the error message?

     

     

  • vandam2 Profile Picture
    on at

    hello and thank you for your help,   i can get the name with compose, but when i try to use the compose in another action it doesnt show up in the dynamic content

     

    i would love to be able to use the compose to update sharepoint item but it doenst show on the list to connect 

     

     

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    The choices presented within the dynamic selector are exclusively those that exist within the context of your flow.

    As the compose action is situated within the "apply to each" loop, it won't be accessible if you attempt to retrieve the compose output from outside the loop. I think this makes a good case of using a variable.

     

     

  • vandam2 Profile Picture
    on at

    sounds good, but i cant figure out a way to get the attachment name initiated as a variable, when i try to initialize a variable, i dont see the Attachment name in the list of dynamic content either .

     

     

     

    saveasattachment.png

  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Add Initialize Variable action on top of your flow

    Use Set Variable inside your loop

     

  • vandam2 Profile Picture
    on at

    wow, that worked, i was working on that all afternoon, thank you so much for your help... 

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard