Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Inbound Email reply issue in target table

Anjaneyulu1
Giga Contributor

Hii All,

I Have an issue regarding Inbound Email Reply in target table.

It is not showing Incident Number in target. 

find_real_file.png

here is my inbound email action

find_real_file.png

1 ACCEPTED SOLUTION

Hi @Anjaneyulu Nalamothu 

 

As per your requirement, I made some changes.

Because of Watermark, your target table is not coming.

 

Updated email script:

var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('group', current.assignment_group);
gr.query();
while (gr.next()) {
  var gm = gr.user.user_name.toString();
  var baseLink = gs.getProperty('instance_name') + '@servicenowdevelopers.com';
  var app = '<a href="mailto:' + baseLink + '?subject=re: ' + gm + ' - assigned&body='+email.getWatermark()+' This Incident is Assigned to - ' + gm + '">Assigned</a><br><br>';
//email.getWatermark()
  template.print(gm + ' - ' + app);
}

 

If my response is helpful, then Please mark as Correct Answer/Helpful.

Please check and let us know.

Thanks 🙂

Thanks,
Shakeel Shaik 🙂

View solution in original post

10 REPLIES 10

Hii smudge,

wait i will check it.