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

Email help

Hello,

 

I'm struggling to get my head around this one and hoping someone can help me.

 

I have an email button which looks like this and works fine

 

Office365Outlook.SendEmailV2("emailaddress","Stock",                                                                                                                                   "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
    "<tr style='background-color:#efefef'>
        <th>Description</th>
        <th>Device</th>
        <th>Current Level</th>
    </tr>" &                                                                                                                                               
Concat(colTonerStock,
    
    "<tr>
            <td>" & Title & " </td>
          <td>" & Device & " </td>
            <td>" & CurrentLevel & " </td>
            </tr>"))

 

I have created a dropdown which is using basic Sharepoint list of usernames and email addresses

 

If I use the following it works fine and sends an email based on the dropdown selection

 

Office365Outlook.SendEmailV2(Dropdown4.Selected.email,"Test","Test")

 

If I add the line into the HTML code I get a red X and can see why this would be a problem

 

Office365Outlook.SendEmailV2(Dropdown4.Selected.email,"test","Test1")                                                                "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
    "<tr style='background-color:#efefef'>
        <th>Description</th>
        <th>Device</th>
        <th>Current Level</th>
    </tr>" &                                                                                                                                               
Concat(colTonerStock,
    
    "<tr>
            <td>" & Title & " </td>
          <td>" & Device & " </td>
            <td>" & CurrentLevel & " </td>
            </tr>"))

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Ajityadav
Frequent Visitor

Hi @dandandsan 
use this formula:- it will work

Office365Outlook.SendEmailV2(Dropdown4.Selected.email,"test","<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
    "<tr style='background-color:#efefef'>
        <th>Description</th>
        <th>Device</th>
        <th>Current Level</th>
    </tr>" &                                                                                                                                               
Concat(colTonerStock,
    
    "<tr>
            <td>" & Title & " </td>
          <td>" & Device & " </td>
            <td>" & CurrentLevel & " </td>
            </tr>"))

If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

5 REPLIES 5
RezaDorrani
Dual Super User II
Dual Super User II

@dandandsan 

try this

 

Office365Outlook.SendEmailV2(Dropdown4.Selected.email,"test","Test1",                                                               "<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
    "<tr style='background-color:#efefef'>
        <th>Description</th>
        <th>Device</th>
        <th>Current Level</th>
    </tr>" &                                                                                                                                               
Concat(colTonerStock,
    
    "<tr>
            <td>" & Title & " </td>
          <td>" & Device & " </td>
            <td>" & CurrentLevel & " </td>
            </tr>")))

 --------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Hi @dandandsan 

 

At the end of the first line, there is a ")" that is making issues with the function, as @RezaDorrani you will have to remove it and input a "," instead.

 

Best Regards,

--

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions help users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

If this post helps you give a :thumbs_up: and if it solved your issue consider Accept it as the solution
Ajityadav
Frequent Visitor

Hi @dandandsan 
use this formula:- it will work

Office365Outlook.SendEmailV2(Dropdown4.Selected.email,"test","<table width='100%' border='1' cellpadding='5' style='border:1px solid black; border-collapse:collapse'>" &
    "<tr style='background-color:#efefef'>
        <th>Description</th>
        <th>Device</th>
        <th>Current Level</th>
    </tr>" &                                                                                                                                               
Concat(colTonerStock,
    
    "<tr>
            <td>" & Title & " </td>
          <td>" & Device & " </td>
            <td>" & CurrentLevel & " </td>
            </tr>"))

If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

View solution in original post

alrez
Community Support
Community Support

Hi,

 

Looks like there have been quite a few good replies here. If you are still having trouble after these suggestions you can always create a ticket with Microsoft Support to help take a look. I'll include a link below; if you would like to go down that route. In addition remember to mark the answer that helped you the most as the answer.

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you to everyone for your help and advice. Removing the ")" did the trick 🙂

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,405)