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
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?

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

Highlighted
Englishweb
Level 8

Re: Send DataTable as email attachment from Powerapps

Thank you very much for your help again!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,962)