06-05-2024 08:58 AM
Greetings
I have a java script that I am using that was created and uploaded on github that allows for a Report Issue button to be placed on Cisco Navigator and allows user to create and submit an incident to ServiceNow.
This script is working a it should but I am looking to enhance this by having the API go out and pull that call log of the last placed call then add that data to the Description field in ServiceNow or as an attachment
Below is the payload being sent to ServiceNow:
06-12-2024 03:47 AM
@cwade23 What issue do you face with the xAPI CallHistory Recents? Are you able to test the script with callHistory() function?
As I understand your query, looks like you want to first fetch details from the xAPI CallHistory Recents and then add the response to the payload that you're sending to ServiceNow.
If that's the correct understanding, although I'm not aware of your code setup but probably you can consider using JavaScript Promise. You can first make the xAPI CallHistory Recents call and once that promise is resolved, you can append its response to the payload that you're sending to report issue to ServiceNow.
Hope this helps!
06-10-2024 06:16 AM
@cwade23 based on your description I am not sure what the ask is here. Do you have any issues with the xAPI CallHistory Recents or are you just looking for coding advice?
06-11-2024 05:08 PM
Well both I think
I need coding advice on if it is possible to retrieve the CallHistory then add it to the description field in ServiceNow
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide