cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Is it possible to mail using powerapp

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 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Is it possible to mail using powerapp

Hi @nobosy ,

Firstly, please make sure the Library Name you specified in your "Get file properties" action is the same as that your Gallery connected to in your canvas app. And the Site Address has been specified to a proper Site Address.

 

In addition, please make sure the corresponding file is actually existed in your SP Library. If the file has been remove from your SP Library, this error would show up.

 

If the issue still exists, please consider re-create your flow, configure it as below (alternative solution):

6.JPG

The flow works successfully as below:

7.JPGPlease add "Get item" action in your flow instead of the "Get file properties" action. Please try it, check if your issue is solved.
 

 

Best regards,

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

View solution in original post

14 REPLIES 14
Highlighted
Super User III
Super User III

Re: Is it possible to mail using powerapp

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.

Highlighted
Helper II
Helper II

Re: Is it possible to mail using powerapp

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

Highlighted
Super User III
Super User III

Re: Is it possible to mail using powerapp

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.

Highlighted
Helper II
Helper II

Re: Is it possible to mail using powerapp

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': ""
                                          }
                                   )
                    }
);
Highlighted
Community Support
Community Support

Re: Is it possible to mail using powerapp

Hi @nobosy ,

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 Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper II
Helper II

Re: Is it possible to mail using powerapp

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

Highlighted
Community Support
Community Support

Re: Is it possible to mail using powerapp

Hi @nobosy ,

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 Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper II
Helper II

Re: Is it possible to mail using powerapp

 
 

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

Highlighted
Community Support
Community Support

Re: Is it possible to mail using powerapp

Hi @nobosy ,

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 Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,959)