web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to send Power Apps...
Power Apps
Answered

How to send Power Apps Collection in Email body

(0) ShareShare
ReportReport
Posted on by 315

Hi,

 

I have a collection which has a single column with few records(basically those records are URL's). Now I want to send that collection in email body. in SendEmailV2() function.

 

I tried using HTMLText input to parse the collection using ForAll function, but it didn't work. 


Appreciate your help!

Categories:
  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    Hi @kbilakanti ,

    Try Concat - I do this is several emails, so if you want the code, please let me know.

  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @kbilakanti 

    I would suggest using CONCAT to convert the collection (myUrls) to a text format.  If you put this code in the body argument of SendEmailV2() it will produce a new line for each URL.

     

    Concat(myUrls, Value & "<br>")

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • WarrenBelz Profile Picture
    156,754 Most Valuable Professional on at

    Hi @kbilakanti ,

    The HTML code below will do a five column table with bold headers

    <div>
    	<table border='1' cellspacing='0' cellpadding='0' width = '500'>
    		<tbody>
    			<tr>
    				<td width='100' height='30'><strong>&nbsp;Heading1</strong></td>
    				<td width='100'><strong>&nbsp;YourHeading2</strong></td>
    				<td width='100'><strong>&nbsp;YourHeading3</strong></td>
    				<td width='100'><strong>&nbsp;YourHeading4</strong></td>
    				<td width='100'><strong>&nbsp;YourHeading5</strong></td>
    			</tr>"
    		& Concat(Sort(YourCollection,YourSortField,Ascending),
    			"<tr>
    				<td>&nbsp;" & YourField1 & "</td>
    				<td>&nbsp;" & YourField2 & "</td>
    				<td>&nbsp;" & YourField3 & "</td>
    				<td>&nbsp;" & YourField4 & "</td>
    				<td>&nbsp;" & YourField5 & "</td>
    			</tr>" 
    		)
    		&
    		"
    		</tbody>
    	</table>
    </div>

     

    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up.

  • kbilakanti Profile Picture
    315 on at

    @mdevaney @WarrenBelz Appreciate your inputs. It worked like a charm 🙂

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard