Retrieve journal entries using direct web services

  • Release version: Yokohama
  • Updated January 30, 2025
  • 1 minute to read
  • To get the contents of a journal field, make a second soap request against the sys_journal_field table to pull the appropriate journal records back for the record in question.

    The URL for the WSDL would be in the following format.

    https://instance-name.service-now.com/sys_journal_field.do?WSDL
    

    To retrieve the journal entries, you will first need to query the incident for its sys_id value, and then supply it as the element_id value in a getRecords call. To specify records only for the comments field, specify the value comments for the element field. For example, a SOAP request would look like the following:

    <soapenv:Envelope xmlns:soapenv= "http://schemas.xmlsoap.org/soap/envelope/" xmlns:sys= "http://www.service-now.com/sys_journal_field" ><soapenv:Header /><soapenv:Body><sys:getRecords><element>comments</element><element_id>9d385017c611228701d22104cc95c371</element_id></sys:getRecords></soapenv:Body></soapenv:Envelope>