We have Manage Engine Service Desk 9.0 build 9009. Using the RestAPI, we are able to successfully create incidents and populate various fields in the service desk ticket. There are two custom fields that were created, but we are unable to set the fields on the XML post. The names of the two fields are
Client Name
Billable to Client
These fields have spaces in them and we don't know what XML element name to set in order to populate them on a post to ADD_REQUEST. We changed the name of Client Name to Client_Name and it worked fine.
Below is the post XML we use, prior to encoding. Obviously, the spaces in the two fields is causing the problem.
<Operation>
<Details>
<requesttemplate>New Report Request</requesttemplate>
<requester>A Name</requester>
<subject>**TEST** REST API Testing[ttid: 1127,217]</subject>
<description>Some Description</description>
<priority>Medium</priority>
<client name>Client Name</client name>
<billable to client>Yes</billable to client>
<group>Reporting Services</group>
<category>Reporting Services</category>
<subcategory>Report Distribution</subcategory>
<item>Addition</item>
<status>Open</status>
<division>Division Name</division>
<site>Site Name</site>
<department>Department</department>
<service>email</service>
</Details>
</Operation>
When we do a GET_REQUEST, the XML returned shows the name with a space.
<parameter>
<name>
client name
</name>
<value>Client Name is Entered Here
</value>
</parameter>
<parameter>
<name>
billable to client
</name>
<value>
No
</value>
</parameter>
How can we post a new incident and populate the custom fields? How do we refer to them in the XML post?