You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Fetch Thread using Javascript API

Received Response
37
Views
1
Comments
edited Sep 22, 2017 2:25PM in UI Extensibility 1 comment

Content

Hello Kudos, 

I am trying to fetch Thread using Javascript. The Javascript API document doesn't have much information to fetch Thread content. I was able to fetch thread in String(XML) but not able to fetch the content from the XML. Can someone please help me to get the value from XML.

<?xml version="1.0" encoding="utf-16"?>
<Threads>
<Thread EntryType="2" Author="John Agent" EnteredDate="11/10/2012 8:05:31 PM EnteredDateLT="11/10/2012 12:05:31 PM" Seq="3">Response to customer</Thread>
</Threads>

How to Fetch the Value " Response to customer" only from XML file.

Thanks in Advance.

Regards,

Narendra

Version

May 2016

Code Snippet

             var i = window.external.Incident;
var threadID = i.Threads; 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!