on 2021 Jan 26 8:38 AM
Hi everyone,
By using SAP Intelligent RPA features, I would like to send an email that includes an HTML button in the email body. With custom code or SAP Intelligent RPA outlook activity, is there a possibility to do that?
Thank you.
Best Regards,
Bengü ALAN
Request clarification before answering.
Hey Bengu Alan,
Here is the code that might help you to create a button in mail
ctx.outlook.init();
ctx.outlook.mail.create( {
To:'recipientMail@gmail.com', Subject:'Test email with button'
});
var body_text = '<!DOCTYPE html>';
body_text += '<html>';
body_text += ' <head>';
body_text += '<title>HTML button Tag</title>';
body_text += '</head>';
body_text += '<body>';
body_text += '<button>Hello world</button>';
body_text += '</body>';
body_text += '</html>';
try {
ctx.outlook.mail.setBodyHtml(0, body_text);
var res = ctx.outlook.mail.send(0);
} catch (err) {
ctx.log("error : " + err);
}
ctx.outlook.end();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mohammad Thousif,
It looks perfect. Thank you so much again!!!
Best Regards,
Bengu
User | Count |
---|---|
73 | |
30 | |
8 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.