cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Send e-mail with filtered content

Hi guys,

 

I have an app that I input data from a form to a sharepoint list and create a Gallery with it.

 

The app has 2 filters, one of date and one of status. I'd like to create button that sends an e-mail with the content of the filtered data only.

 

Is it possible? I've been trying to use the "Gallery1" within the HTML code of the e-mail but with no success. Is there a better way to do it?

 

Thanks in advance!

 

Best Regards,

Gabriel

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Anonymous :

Do you want to send emails based on the content in the gallery?

I've made a test for your reference:

 

Office365Outlook.SendEmail(
    "XXX@XXXXXX.com",
    "Subject",
    Concat(
        YourGallery.AllItems,
        "<Div>" & 
        "<p>" & Column1& "</p>" & 
        "<p>" & Column2& "</p>" & 
        "<p>" & Column3& "</p>" & 
        "</Div>" & "<hr>"
    ),
    {IsHtml: true}
)

 

1.JPG2.JPG

Best Regards,

Bof

 

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @Anonymous :

Do you want to send emails based on the content in the gallery?

I've made a test for your reference:

 

Office365Outlook.SendEmail(
    "XXX@XXXXXX.com",
    "Subject",
    Concat(
        YourGallery.AllItems,
        "<Div>" & 
        "<p>" & Column1& "</p>" & 
        "<p>" & Column2& "</p>" & 
        "<p>" & Column3& "</p>" & 
        "</Div>" & "<hr>"
    ),
    {IsHtml: true}
)

 

1.JPG2.JPG

Best Regards,

Bof

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,866)