The Now Platform® Washington DC release is live. Watch now!
01-10-2019 05:33 AM
When using 'Script Output' bot response within Virtual Agent designer it references a SN_CS API, suggesting there is more information available on how to use the script output for multi-part outputs. However, I was unable to locate any references to this and no documentation is available.
I am primarily trying to understand how to use the script output to send a multi-part message that includes HTML. The example provided in the comments shows how to create one with plain text only.
01-10-2019 08:23 AM
Hello Eric,
Even i have the same query i am waiting from a long time if servicenow can update the missing info on the docs website, Lets hope it can be done soon , As of now i was not able to find any info on the API used here. Would wait equally with you if any one on the community have the solution for the same
Thanks,
Siva
01-22-2019 11:44 AM
I never got a reply to this but I was able to figure out how to script the different available outputs.
Example code below:
var multiOutMsg = new sn_cs.MultiPartOutMsg();
multiOutMsg.setNavigationLabel('Click for More');
multiOutMsg.addImagePart('https://community.servicenow.com/3726056fdb72af409540e15b8a961977.iix');
multiOutMsg.addHtmlPart('<p>test</p>');
multiOutMsg.addLinkPart('This is the link header', 'Displayed Text', 'https://www.google.com');
multiOutMsg.addPlainTextPart('test');
return multiOutMsg;