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

How to get the names of Sub-Categories using JavaScript API

Received Response
edited Sep 1, 2015 4:56PM in UI Extensibility 3 comments


Hi All,

I've been trying to get the names of selected categories upto the last level and populate those names in the Subject field in Incident workspace.

Pasted the code block below which I tried  but this is returning only the first level of Categories.

The XML data output for the above GetNameValues is including only the first level Categories like shown below


<?xml version="1.0" encoding="utf-16"?>
<Items Type="Category">
<Item Id="29" Name="Test 1" ParentId="-1" />  --> this is parent Category
<Item Id="31" Name="Test 2" ParentId="-1" />  --> this is parent Category
<Item Id="34" Name="Test 3" ParentId="-1" />  --> this is parent Category

Howdy, Stranger!

Log In

To view full details, sign in.


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