.msg file is not opening in service now

alvatindra
Giga Contributor

Hi all,

I have created an incident record through inbound action with attached .msg file, when the   itil people try to open the attachment it is not opening,because in that system not having Outlook or any related application.

So how can i open the .msg file.please give suggestion to acheive this.

Is there any possibility through business rule on attachment table to change the file type to open the file.

Thank you,

7 REPLIES 7

larstange
Mega Sage

ServiceNow will not be able to convert the file.


It might be able to fine some sort of online conversion service or maybe something which can be installed as an internal service enable you to convert the file when it is attached in servicenow.


anurag92
Kilo Sage

I created a custom table called custom attachment. This BR reads the attachment data and stores in a field called Mail message.



(function executeRule(current, previous /*null when async*/) {




  // Add your code here


  StringUtil = GlideStringUtil;


var sa = new GlideSysAttachment();



var bytesContent = sa.getBytes('incident', current.table_sys_id);


var strData = Packages.java.lang.String(bytesContent);


  gs.log("Full Data is"+strData);


 


  var gr = new GlideRecord("u_custom_attachment");


  gr.initialize();


  gr.u_mail_message=strData;


      gr.insert();


})(current, previous);




After the field is populated with mail body, you can download this record as pdf.


Kim Sullivan
Tera Guru

Was your .msg attachment being downloaded as .do?