How to send a report link in scheduled email execution report

GANESH23
Tera Contributor

Hi Folks,

 

need to send a report link in scheduled report execution report.

can someone please help me on this.

we are sending a report to user on sla breached. in scheduled message need to include report link too.

 

Thanks,

1 ACCEPTED SOLUTION

In that case, you can create a mail script named: linkforreport as below.

(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,
          /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,
          /* Optional GlideRecord */ event) {
		  var instance_url = gs.getProperty('glide.servlet.uri');
template.print("<a title='Click here for report' href='"+ instance_url + "remaining URL here in quotes"' target=_blank>Click here for report</a>");
})(current, template, email, email_action, event);

 

Call the mail scrip in the message in format

${mail_script:linkforreport}

View solution in original post

5 REPLIES 5

Hi Jaslpal,

 

Its working now.

Thank you so much