cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Englishweb
Level 8

Send DataTable as email attachment from Powerapps

Hello

I have a DataTable in PowerApps  - is it possible to send the whole table as an email attachment?

Something along the lines of:

Office365.SendEmail("me@me.com", "Email Subject", {Attachments: AllItems.DataTable2}) 

Or do I have to identify each column individually?

 

Thanks in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: Send DataTable as email attachment from Powerapps

Hi @Englishweb 

 

Just use Concat to concatenate through your data collection or data source

 

example: If datasource has a Title column then

 

Office365.SendEmail("emialid", "Email Subject", Concat(datasource,Title & "</br>"),{IsHtml:true})

 

will send list of all the data from the Title column from the datasource

 

Regards,

Reza Dorrani

 

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

4 REPLIES 4
Dual Super User
Dual Super User

Re: Send DataTable as email attachment from Powerapps

@Englishweb 

 

No direct way to do this in PowerApps from a DataTable

Check this post (column by column)

https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Email-a-collection/td-p/31517

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Englishweb
Level 8

Re: Send DataTable as email attachment from Powerapps

Thank,s that could be a solution however I'm having trouble trouble getting all the rows of the DataTable to show in the textbox (not just the selected record)

Any ideas?

Highlighted
Dual Super User
Dual Super User

Re: Send DataTable as email attachment from Powerapps

Hi @Englishweb 

 

Just use Concat to concatenate through your data collection or data source

 

example: If datasource has a Title column then

 

Office365.SendEmail("emialid", "Email Subject", Concat(datasource,Title & "</br>"),{IsHtml:true})

 

will send list of all the data from the Title column from the datasource

 

Regards,

Reza Dorrani

 

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

Englishweb
Level 8

Re: Send DataTable as email attachment from Powerapps

Thank you very much for your help again!

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,718)