CTI processing business rule - create interaction record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2022 02:58 AM
Hi,
Im trying to build a functional requirement for our ServiceDesk. The requirement is that if they receive a call in our call center application a interaction gets created with the 'opened_for' and type field pre-filled. Im achieving this through the cti processing business rule and can get a new interaction to pop up pre filled in the agent workspace just fine its just not save yet. See line 32/33 in the screenshot.
Seems like a minor issue but lets say it isn't. Now the documentation on this says":
"sysparm_cti_rule=name where 'name' is the name of a function to be invoked for CTI processing rather than using the default script. The function must be defined in a sys_script entry marked client callable. If the function needs to insert, update, or delete any GlideRecord(s), it must call a separate non-client callable function to perform the update(s).
https://docs.servicenow.com/bundle/rome-platform-administration/page/integrate/incident/reference/r_ComputerTelephonyIntegration.html
But I cant get it to work, if tried using a single function script include (line 17/18), regular script include (line 23-25) and a function inside the global business rule itself (line 20/21) the global rule just doesn't seem to call the function. Even when it contains a simple gs.log there is nothing showing up in the log. As if the function just isn't being called.
Has anyone done this? What am i missing?
userID is not null and when i test the function in a fix script its working just fine and creates an interaction so nothing wrong there.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 05:14 AM
Please do, I am quite curious. I also tried testing with a few fix scripts, but everything looks ok.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 12:50 AM
Okay. I got that. But say after opening the link using line number 33 and setting few field values what are you trying to validate?
What is the thing which you are trying to achieve here?
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 01:54 AM
I just want the link to open a link to an interaction record that I created from the business rule and im trying to do this using a non client callable script include as per the documentation.
as opposed to it opening a interaction form that hasn't been saved yet. small difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2022 07:52 AM
Hi
I doubt if you can do it on Server side alone. For opening the Interaction record, you will need a client side operation where you can handle the page redirection to a different URL or open a new URL as you want after you have generated the Interaction record.
For opening it on client side, you can use below API which should work for you:
g_navigation.open('Link or URL here which you want to open');
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke