Capture lync chat to a field in an ITSM tool RRS feed

  • General discussion

  • Hi, I have a requirement to invoke Lync chat from a tool 'ServiceNow, an ITSM tool' and capture the chat conversation to a field in ServiceNow. Im able to invoke the chat using the below code. Now, I have to capture the chat converstation and store it in a field in ServiceNow. Can anyone give some inputs in capturing the conversation plz. Thanks in advance.

    <xmp><?xml version="1.0" encoding="utf-8" ?> <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null"> <g:evaluate var="jvar_guid" expression="gs.generateGUID(this);"/> <j:set var="jvar_n" value="show_lync_${jvar_guid}:${ref}"/> <g:reference_decoration id="${jvar_n}" field="${ref}" onclick="invokeChat('${ref}');" title="Invoke Chat" image="lync.jpgx"/> <script> function invokeChat(reference) { var s = reference.split('.'); var tableName = s[0]; var referenceField = s[1]; var v = g_form.getValue(referenceField); var email; var gr = new GlideRecord('sys_user'); if (gr.get(v)) { email =; } var url = 'sip:'+email; var w = getTopWindow();; } </script></j:jelly></xmp>


    Monday, November 24, 2014 10:47 AM

All replies