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

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

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (17,505)