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 Apps / Attaching Multiple Ima...
Power Apps
Answered

Attaching Multiple Images from a Sharepoint to an email in powerapps

(0) ShareShare
ReportReport
Posted on by 10

I have an app that is capturing an image, saving it to a SharePoint and then sending an email with that image. The issue I'm running into is the way I have it set up. Currently my apps flow is like this Take picture -> title picture ->click button -> "Save Picture" flow creates the picture and saves it and then reports back the file path to the power app using "Respond to PowerApps". Then my "Send Email" flow uses "Get file content using path" using that path to then attach it to the email. Because of this it only attaches the last saved image. How can I change this so I can attach however many images to the email as are saved? 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @jstryk ,

     

    Could you tell me:

    Do you have a collection? Are there many photo paths in this collection?

    Do you want to trigger a flow through a button, and send photos as attachments through these paths?

     

    If my assumptions are correct, I did a test for you:

    1\ This is my test collection

    v-xiaochen-msft_6-1611222584470.png

     

    2\ Build my flow ’Test 17’

    v-xiaochen-msft_7-1611222584472.png

     

    v-xiaochen-msft_8-1611222584477.png

     

     

     

    Test variable value: ask in powerapps
    Schema: {
    
     "type": "array",
    
     "items": {
    
     "type": "object",
    
     "properties": {
    
     "Value": {
    
     "type": "string"
    
     }
    
     },
    
     "required": [
    
     "Value"
    
     ]
    
     }
    
    }

     

     

     

    v-xiaochen-msft_9-1611222584482.png

     

     

     

    Test2 Value: {"Name":@{concat(rand(1,10000),'.jpg')},
    
    "ContentBytes":@{outputs('Get_file_content_using_path')?['body']}
    
    }

     

     

    v-xiaochen-msft_10-1611222584503.png

     

    3\ Add a button control and set its onselect property to:

    TEST17.Run(JSON(Test))

     

    4\ The result is as follows:

    v-xiaochen-msft_11-1611222584547.png

     

     

    Best Regards,

    Wearsky

    If my post helps, then please consider Accept it as the solution to help others. Thanks.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard