cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Champion
Community Champion

Useful Features of PowerApps (12) - Email & Concat

Hi

 

I wish to share my complete Email + Concatenare + Collection + ClearCollect + SaveData / LoadData, esp. Concat functions & HTML5 (partial support).

 

Email & Concat functions are not clearly described in LEARN.

 

Hence, with numerous trial, information from forums (Project Siena and PowerApps, with respect),  attach a sample apps screenshot: This apps is written for my Son for Online Shopping from his clients.

 

Key Function:

- Use Concat to collect Records (from Gallery -> Collection) and organized with HTML

- Use & to create proper spacing, <br> for line break, <b>, <u>,..for fonts formating, Html5 (table, ul, ol and many other formating table,.. though not all are supported, such as border).

- Show the actual results in Email.

 

Hopefully, more improvment can be made on this and also hope that it helps those wish to use proper Concat for sending email (regardless of the number of records inside the gallery/collection as it will append into email automatically).

 

Happy reading and beautiful Sunday.

 

mail.jpg

hpkeong
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Regular Visitor

Re: Useful Features of PowerApps (12) - Email & Concat

Hey this is great hpkeong, thanks! My variation on the submit checkmark was: Concatenate("This is a hidden HTML field:","<br><br>","<b>DataCardValue10</b>",DataCardValue10.Text).  On my first test I'm getting the HTML markup appearing in my email body, but it's not a big deal I've probably just got some syntax wrong.  The good news is I'm automatically getting a concatenation of the plain text I put in plus the values from other fields in the PowerApp, in a way that's very transparent to the end user in the PowerApp.  

 

All the best,

Bruce  

 

P.S. Lots of room for improvement on this from the PowerApps / Flow team(s), but at least I can keep putting one foot in front of the other!

View solution in original post

7 REPLIES 7
Highlighted
Regular Visitor

Re: Useful Features of PowerApps (12) - Email & Concat

Hey this is great hpkeong, thanks! My variation on the submit checkmark was: Concatenate("This is a hidden HTML field:","<br><br>","<b>DataCardValue10</b>",DataCardValue10.Text).  On my first test I'm getting the HTML markup appearing in my email body, but it's not a big deal I've probably just got some syntax wrong.  The good news is I'm automatically getting a concatenation of the plain text I put in plus the values from other fields in the PowerApp, in a way that's very transparent to the end user in the PowerApp.  

 

All the best,

Bruce  

 

P.S. Lots of room for improvement on this from the PowerApps / Flow team(s), but at least I can keep putting one foot in front of the other!

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Useful Features of PowerApps (12) - Email & Concat

Access to Nested Galleries.

 

<table> & Concat(Gallery1.Allitems,"<tr><td>" & Head1 & "</td></tr></table>

 

creates a HTML table with one row for each item in Galley1 with a column containing the text of card Head1.

 

I need to nest a gallery in each row of Gallery1 (like your example).

 

My problem is what is the syntax to access the nested gallery. For example:  To build a nested table from Gallery2 SubTitle card.

 

<table> & Concat(Gallery1.Allitems,"<tr><td>" & Head1 & "</td> <td> <table>" &  Concat(Gallery2.AllItems, "<tr><td> " & SubTitle & "</td></tr> )  &" </table> </td></tr></table>

 

It seem that there must be an array of Gallery2's somewhere.   One possible syntax would be something like:

 

Concat(ThisItem.Gallery2.AllItems,)....

 

or

 

Concat(Gallery2(ThisItem).AllItems,...)

 

Any ideas?

 

Thanks

Highlighted
Kudo Collector
Kudo Collector

Re: Useful Features of PowerApps (12) - Email & Concat

hi the link is gone, can you please give us the link again to your library of functions


@hpkeong wrote:

Hi

 

I wish to share my complete Email + Concatenare + Collection + ClearCollect + SaveData / LoadData, esp. Concat functions & HTML5 (partial support).

 

Email & Concat functions are not clearly described in LEARN.

 

Hence, with numerous trial, information from forums (Project Siena and PowerApps, with respect),  attach a sample apps screenshot: This apps is written for my Son for Online Shopping from his clients.

 

Key Function:

- Use Concat to collect Records (from Gallery -> Collection) and organized with HTML

- Use & to create proper spacing, <br> for line break, <b>, <u>,..for fonts formating, Html5 (table, ul, ol and many other formating table,.. though not all are supported, such as border).

- Show the actual results in Email.

 

Hopefully, more improvment can be made on this and also hope that it helps those wish to use proper Concat for sending email (regardless of the number of records inside the gallery/collection as it will append into email automatically).

 

Happy reading and beautiful Sunday.

 

mail.jpg


 

Highlighted
Resolver II
Resolver II

Re: Useful Features of PowerApps (12) - Email & Concat

Hi

 

I dont embed anylink.

If you want, private message me and i will email to you.

 

Thnks

Highlighted
New Member

Re: Useful Features of PowerApps (12) - Email & Concat

Link for me too .. thanks for your help!

Highlighted
Advocate V
Advocate V

Re: Useful Features of PowerApps (12) - Email & Concat

@PK_Hong Hi can you send me the link as well?  Thank you

Highlighted
Resolver II
Resolver II

Re: Useful Features of PowerApps (12) - Email & Concat

Hi @Misa 

 

I am sorry I have removed this apps and no more formula left.
Anyway please refer to the screenshot and retype. It workds.

 

Thanks

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,574)