Send data to the Employee Health Screening log

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • Send data from a third-party system to the Employee Health Screening application log table. You can use this table to create reports and monitor health trends.

    Vorbereitungen

    Role required: sn_imt_core.api_logging_user

    Prozedur

    1. Send a POST request to the Table API on your instance.
      For more information, see Table API.
      1. Construct the endpoint using the Log Import [sn_imt_core_log_import] table.
        https://<your-instance>.servicenow.com/api/now/table/sn_imt_core_log_import
      2. Set fields in the Log table by defining these request body parameters.
        Field Description
        Source Internal name to identify the third-party system making the log entry.
        Level User status, log level, or any other meaningful string. For example, you can enter Allowed or Denied to indicate whether the individual is cleared for entry.
        Message Description of the health screening. For example, Temp too high.
        User Employee or visitor email from the Health and Safety User [sn_imt_core_health_and_safety_user] table.
        Additional Info Data to provide any additional information. For example, {'temperature':'101', 'location':'San Diego'}.
      This example cURL request sends a record to the Log Import table.
      curl "http://<your-instance>.servicenow.com/api/now/table/sn_imt_core_log_import" \
      --request POST \
      --header "Accept:application/json" \
      --header "Content-Type:application/json" \
      --data "{\"u_source\":\"BadgesRUs\",\"u_message\":\"Temp too high\",\"u_user\":\"abel.tutor@servicenow.com\",\"u_level\":\"Denied\"}" \
      --user 'username':'password'
      The system automatically inserts the record into the Log [sn_imt_core_log] table.
    2. Navigate to the Log [sn_imt_core_log] table to check that the data imported correctly.

    Nächste Maßnahme

    Generate reports on the data you imported to the Log [sn_imt_core_log] table using Reporting.