cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Patron
Post Patron

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

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
Highlighted
Dual Super User II
Dual Super User II

@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

Highlighted

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

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

Thank you very much for your help again!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (11,508)