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 Apps / Is it possible to mail...
Power Apps
Answered

Is it possible to mail using powerapp

(0) ShareShare
ReportReport
Posted on by

Hi just wanted to know that is it possible to mail via gallery app, Like when I click on arrow icon in gallery it should auto mail the file 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    Watch the video from Shane Young

    https://youtu.be/bF7WkqtxKB0

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    on at

    Hi @eka24  yes I had watched this video but .Send function isn't working whereas .Display works im trying to send mail using outlook business

  • eka24 Profile Picture
    20,923 on at

    Can you show the formula that is not working

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    on at

    Hi @eka24  I have watched again the video but it isnt solving my purpose attaching below the image, I want to mail specific files when clicked on the highlighted button in the image

     

    I have this formula but it is for image attachment i want to send excel files

    Office365.SendEmail(
     (User().Email & ";**My E-mail**," )&ccemailbox.Text&"",
     "Order - " & Gallery1.Selected.'Site Name',
     HtmlText3.HtmlText,
     {
     IsHtml: true,
     Attachments: ForAll(
     ImageGallery.AllItems,
     {
     Name: FileNameColumn, // FileNameColumn is from your Image SP List
     ContentBytes: Image1.Image, // Image1 is the Image control in the ImageGallery
     '@odata.type': ""
     }
     )
     }
    );
  • v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Could you please share a bit more about your Gallery? Does it connect to a SP Library?

    Do you want to auto-mail the file in your Gallery when you press the ">" icon?

    Further, could you please show more details about the file that you mentioned? Is it a Image or other doc file (e.g. PDF, Excel, Word, ...)?

     

    If your Gallery is connected to a SP Library, and you want to auto-mail the file in your Gallery when you press the ">" icon,  afraid that there is no way to achieve your needs in Power Apps canvas app itself.

     

    As an alternative solution, I think the combination of Power Apps and Power Automate flow could achieve your needs. You could consider fire a Power Automate flow when you press the ">" icon in your Gallery, then use the Power Automate flow to send email.

    You could pass the File Identifier of the selected file in your Gallery from your canvas app to your flow, then within your flow, add a "Get file content" action of SharePoint Connector to get the file content based on the passed File Identifier.

     

    Please take a try with the following workaround:

    Flow's configuration as below:

    2.JPG

     

    3.JPG

     

    App's configuration as below:

    4.JPG

    Within your canvas app, you need to create a connection to your above flow from your canvas app firstly. The set the OnSelect property of the ">" icon inside your Gallery to following:

    'Your Flow Name'.Run(ThisItem.Identifier)

    After that, when you press the ">" icon in your Gallery, it would fire the flow to send an Outlook email along with corresponding file as attachment.

     

    More details about firing a flow from a canvas app, please check the following video resource:

    https://www.youtube.com/watch?v=1wl9AtxWdkg

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-xida-msft  im unable to add file identifier from flow can you guide me how it is to be added?

  • v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    The "File Identifier" action I mentioned in above flow is actually a "Compose" action as below:

    5.JPG

    I just rename the "Compose" action as "File Identifier", on your side, you could consider rename the "Compose" action as "File Identifier". Then please try the flow configuration again, check if the issue is solved.

     

    Within the "File Identifier" action ("Compose" action), type "Ask in PowerApps" dynamic content of PowerApps trigger.

     

    Best regards, 

  • Community Power Platform Member Profile Picture
    on at
     
     

    Hi @v-xida-msft  it gives me an error saying item not found

  • v-xida-msft Profile Picture
    on at

    Hi @Anonymous ,

    Based on the screenshot that you mentioned, I think you have some misunderstanding with my flow's configuration.

     

    You just need to define single one parameter within your flow, which receive the value passed from your canvas app. But within your screenshot, I find that you have defined three parameters in your flow.

     

    Please consider re-create your flow based on the flow's configuration I provided above carefully. More details about defining parameters in your flow, please check the following GIF screenshot:

    Test.gif

     

    Of course, if you want to define parameter for the "To" field in your "Send an email (V2)" action, you could use the "Ask in PowerApps" dynamic content to define the parameter you want to pass from your canvas app.

     

    Please also check if the video resource I listed in previous reply could help in your scenario.

     

    Best regards,

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-xida-msft  Yes i recreated it but now it gives me an error saying item not found

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard