cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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

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?

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

Thank you very much for your help again!

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (73,259)