Hierarchical SOAP Message

reference australia Updated Sep 10, 2026 1 min read r_HierarchicalSOAPMessage.md
Raw file servicenow.com

When the SOAP message is constructed from the hierarchical web service described by the WSDL and invoked, it will create the incident, u_custom_comments, and u_comment_items records.

Endpoint URL

https://instance.service-now.com/incident.do?SOAP&hierarchical=true

Request

XML
<soapenv:Envelope    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"     xmlns:inc="http://www.service-now.com/incident">   <soapenv:Header/>   <soapenv:Body>      <inc:insert>         <short_description>test hierarchical</short_description>         <u_custom_comments>            <u_comment>comment 1</u_comment>            <u_comment_type>travel</u_comment_type>            <u_comment_items>               <u_name>name 1</u_name>               <u_value>value 1</u_value>            </u_comment_items>         </u_custom_comments>      </inc:insert>   </soapenv:Body></soapenv:Envelope>

Reponse

XML
<soapenv:Envelope     xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"     xmlns:inc="http://www.service-now.com/incident">   <soapenv:Header/>   <soapenv:Body>      <insertResponse>         <sys_id>8422ebe7c0a8006e7d23848c2dc8ba47</sys_id>         <number>INC0010001</number>      </insertResponse>   </soapenv:Body></soapenv:Envelope>

Parent Topic:Insert related records using SOAP

Search documentation
Search document titles and file paths on the australia branch