update

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • Updates an existing record in the targeted table in the URL, identified by the mandatory sys_id field.

    Input fields

    All fields from the targeted table, excluding system fields, which will be used for updating the existing record. The sys_id field is used to locate the existing record.

    Output fields

    Returns the sys_id of the record that was updated.

    Sample SOAP messages

    Sample SOAP request

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:inc="http://www.service-now.com/incident">
       <soapenv:Header/>
       <soapenv:Body>
          <inc:update>
             <sys_id>46e18c0fa9fe19810066a0083f76bd56</sys_id>
             <short_description>this is updated</short_description>
          </inc:update>
       </soapenv:Body>
    </soapenv:Envelope>

    Sample SOAP response

    <soapenv:Envelope xmlns:inc="http://www.service-now.com/incident" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header/>
       <soapenv:Body>
          <updateResponse>
             <sys_id>46e18c0fa9fe19810066a0083f76bd56</sys_id>
          </updateResponse>
       </soapenv:Body>
    </soapenv:Envelope>

    Language-specific sample messages

    For language-specific update samples, refer to the following topics:

    Perl SOAP::Lite

    Java Apache Axis2

    Microsoft .NET

    Python