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

email send help

Hello,

 

I have an app which has a screen with Html text to concat a table from data tables within the app and this all works fine.

 

There is a button configure to email the table and display in the body of the email using the string below- There is an intermittent issue where upon pressing the button to send an email it will display the default Html text 'Show your HTML text here' even though there is no reference to this text in the html code. If I press the button again it sends the tables and display fine.

 

I have tried removing the screen and adding again to no avail. Is there a way I can add the output of the table as an attachment rather than the body without using flows or has anyone got any suggestion as to what the issue could be?

 

Office365Outlook.SendEmailV2("email address,"My Car Stock",HtmlText1.HtmlText)

 

Any help would be much appreciated.

 

12 REPLIES 12

@WarrenBelz Once again thank you for all your help.

 

@v-yutliu-msft  Thank you for the further explanation  - All makes sense now and the collection is the way forward. 

@WarrenBelz Below is my code for the document I want to send via email. I am having trouble collecting this data using "ClearCollect(" and Sending the data as an attachment to an email. Any help would be great

 

 

"<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
    "<tr style='background-color:#efefef'>
        <th>StartDate</th>
	<th>FirstName</th>
        <th>LastName</th>
        <th>Community</th>
	<th>Position</th>
	<th>Supervisor</th>
	<th>Microsoft</th>
	<th>DropBox</th>
	<th>Concur</th>
	<th>Upkeep</th>
	<th>Eldermark</th>
	<th>EMAR</th>
	<th>SM</th>
	<th>MM</th>
	<th>Phone</th>
	<th>Laptop</th>
	
    </tr>" &
    Concat(Data,
    "<tr>
        <td>" & Date & " </td>
        <td>" & FirstName & " </td>
        <td>" & LastName & " </td>
	<td>" & Community & " </td>
	<td>" & Position & " </td>
	<td>" & Supervisor & " </td>
	<td>" & Microsoft & " </td>
	<td>" & DropBox & " </td>
	<td>" & Concur & " </td>	
	<td>" & Upkeep & " </td>
	<td>" & Eldermark & " </td>
	<td>" & EMAR & " </td>
	<td>" & SM & " </td>
	<td>" & MM & " </td>
	<td>" & Phone & " </td>
	<td>" & Laptop & " </td>
    </tr>") &
    "</table>"

 

 

 

 

@Durell_T ,

You can send that as the body of the email, but an attachment is a whole different subject and would involve creating a PDF and a Flow. Also this thread is closed, so please post it as a new one if you want to head down this track.

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (26,493)