Can I generate a .jil (.txt) file in workflow script?

qwertyflop
Giga Guru

I need to create a .jil file in a script. The file needs to contain several static values, as well as dynamic values that come from variables on a catalog item. Once created, I need to attach the file to an email to send to a fulfilment group. How can I accomplish this in ServiceNow? Is it possible?

The file needs to be in this simple format...

field: value
field: value
1 ACCEPTED SOLUTION

Hi,

Ok.

Please refer to this documentation on how to accomplish that: https://developer.servicenow.com/dev.do#!/reference/api/rome/server/no-namespace/c_GlideSysAttachmen...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hello,

Please clarify your question as you mention .jil and then say .txt.

Is it a .txt file?

Please mark reply as Helpful, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen, it is a .jil file that has been requested, but from what I understand a .jil is essentially the same as .txt. I think that either would be acceptable and the recipient of the file could just change the extension from .txt to .jil if it is not an option in ServiceNow.

Hi,

Ok.

Please refer to this documentation on how to accomplish that: https://developer.servicenow.com/dev.do#!/reference/api/rome/server/no-namespace/c_GlideSysAttachmen...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!