HTTP Query Issue for Docusign

Hi All,

I am trying to use HTTP Query to get the status of document but I am getting following error:



[success:false,result:,error:[code:[category:0,namespace:1,detail:0],title:HTTP error connecting to demo.docusign.net/.../accounts 401 Unauthorized,detail:No details available]]


I am using the following expression:

a!httpQuery(
url: "demo.docusign.net/.../accounts",
method: "GET",
headers: a!httpHeader("name", a!scsField("httpvalue", "value", false)),
queryParameters: a!httpQueryParameter("IntegratorKey", a!scsField("integratorkey", "integrator", false)),
basicAuthenticationCredentials: a!httpAuthenticationBasic(a!scsField("Rishu_Username", "Username", false()),
a!scsField("Rishu_Password", "Password", false()),true())
)

Can anyone guide where I am getting it wrong?

Thanks
Rishu

OriginalPostID-243720

  Discussion posts and replies are publicly visible

Parents
  • @rishub
    Before trying with smart service try using httpget function through expression rule
    Means,
    httpget(
    endpoint:
    header names : {},
    header values : {},
    param names : pass your array parameter,
    param value : pass ur rule inputs,
    user:
    password:
    )

    Try out this way. Pass the value and names in param section leave header as blank.
    Test the expression rule to check the Integration. If works we can configure it in ss
Reply
  • @rishub
    Before trying with smart service try using httpget function through expression rule
    Means,
    httpget(
    endpoint:
    header names : {},
    header values : {},
    param names : pass your array parameter,
    param value : pass ur rule inputs,
    user:
    password:
    )

    Try out this way. Pass the value and names in param section leave header as blank.
    Test the expression rule to check the Integration. If works we can configure it in ss
Children
No Data