App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#Applicationintegration
#App Connect
#AppConnect
#Integration
#Automation
 View Only
  • 1.  HTTP connection not working with ServiceNow

    Posted 04/14/21 05:47 AM
    Edited by Karen Broughton-Mabbitt 04/14/21 08:30 AM
    Hello,

    I am developing an event driven flow. As a part of this flow, I would like to connect to a ServiceNow (SNOW) instance and retrieve some information. I am aware that there are templates available and I can use them to connect to SNOW. However, I would like to use HTTP connection instead because some of the details I need from SNOW are not available in the canned functionality. 

    I first tested that I can use REST interface outside of App Connect. So I used a Rest Client with the headers Accept, Content-Type and X-UserToken. This works fine. However, when I run the HTTP connection within my App Connect flow, it fails with error that it is not authorized. What am I doing wrong?

    ------------------------------
    Ravi Kulkarni
    ------------------------------


  • 2.  RE: HTTP connection not working with ServiceNow

    Posted 04/15/21 05:22 PM
    Difficult to guess without seeing your flow code.
    When you call SNOW within App Connect, do you work with the same http headers?
    Which edition of App Connect do you work with?
    Does it work with curl?

    ------------------------------
    Matthias Jungbauer
    ------------------------------



  • 3.  RE: HTTP connection not working with ServiceNow

    Posted 04/15/21 11:07 PM

    Here are the parameters:

    Method: GET

    https://dev69653.service-now.com/api/now/table/incident?sysparm_limit=5
    Accept: Application/Json
    Content-Type: Application/Json
    Authorization: Basic YWRtaW46YTZqT1Zmc1XXXXX 

    I am able to query it using YARC rest client as well as curl.



    ------------------------------
    Ravi Kulkarni
    ------------------------------