how to compare the x-ms-exchange-parent-message-id of the original email and References of the forwa

rajamusani
Tera Contributor

how to compare the x-ms-exchange-parent-message-id of the original email and References of the forward or reply email.

 

I want to do some script manipulation based on the "parent message id" and "References" tags of email header in service now to restrict the creation of new ticket.

 

please guide me if any body faced across this situation.

 

var headersparent = gr1.headers.toString();
var start = headersparent.indexOf("x-ms-exchange-parent-message-id");
var subvalue = headersparent.substring(start+32, start+108);


 var headersreference = gr1.headers.toString();
 var startref = headersreference.indexOf("References");
var subvalueref = headersreference.substring(startref + 11, startref + 88);
 
sample code which i am trying to achieve please help me.
1 REPLY 1

Shivalika
Mega Sage

Hello @rajamusani 

 

Can you share some screenshots for clarity ?

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY