Forum Discussion

David_Bond's avatar
David_Bond
Icon for Professor rankProfessor
2 days ago

API v3: Alert ServiceNow field

Sarah_Terry​ 

The V4 API can view/modify the ServiceNow link.  Please add this to APIv3 (or permit system integration access to APIv4)?

   {
     "alertExternalTicketUrl" : {
          "servicenowIncidentLinks" : {
            "INC0010101" : "https://acme.service-now.com/now/nav/ui/classic/params/target/incident.do%3Fsys_id%3D1234211bda7ad090a6c7feaac8915678"
          }
     }
}

 

 

2 Replies

  • I used to pull this information by adding the following to the query string:

    customColumns=%23%23EXTERNALTICKETID%23%23

    which would give you an external "customColumns" object in the returned payload with the fields you request, then you could parse ##EXTENRALTICKETID## by splitting by the colon char and strip the leading space.

    "customColumns": {
        "##EXTERNALTICKETID##": "SCC ServiceNow Integration : INC5132740"
      }


    I've just had a look to see if you could do the same with alertExternalTicketURL but it seems to be in the default output, so maybe the change you asked for is already in place?  (bits removed for brevity!)

    {
      "id": "DS8824603",
      "ruleId": 30,
      "alertExternalTicketUrl": {
        "servicenowIncidentLinks": {
          "INC5132740": "https://xxxxxxx.service-now.com/now/nav/ui/classic/params/target/incident.do%3Fsys_id%3Db05f563a1b962a10438ced79b04bcb81"
        }
      },
      "tenant": "undefined",
      "alertValue": "1.0",
      "sdted": false,
      "SDT": null,
    }

     

    • David_Bond's avatar
      David_Bond
      Icon for Professor rankProfessor

      Dave!  So good to hear from you!  DM me - would love to catch up...