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
  • I updated the expression to the following:

    a!httpQuery(
    url: "demo.docusign.net/.../envelopes",
    method: "GET",
    headers: a!scsField("integratorkey", "integrator", false()),
    queryParameters: {envelope_ids: "bbf7779c-7c89-4958-bdc9-7413aa60bb4c"},
    basicAuthenticationCredentials: a!httpAuthenticationBasic(a!scsField("rishu_username", "username", true()),
    a!scsField("rishu_password", "password", true()),false())
    )


    Now with the updated expression, I am getting error:

    [success:false,result:,error:[code:[category:0,namespace:1,detail:0],title:HTTP error connecting to demo.docusign.net/.../envelopes 400 Bad Request,detail:No details available]]
    Can anyone guide where I am getting it wrong Please?
Reply
  • I updated the expression to the following:

    a!httpQuery(
    url: "demo.docusign.net/.../envelopes",
    method: "GET",
    headers: a!scsField("integratorkey", "integrator", false()),
    queryParameters: {envelope_ids: "bbf7779c-7c89-4958-bdc9-7413aa60bb4c"},
    basicAuthenticationCredentials: a!httpAuthenticationBasic(a!scsField("rishu_username", "username", true()),
    a!scsField("rishu_password", "password", true()),false())
    )


    Now with the updated expression, I am getting error:

    [success:false,result:,error:[code:[category:0,namespace:1,detail:0],title:HTTP error connecting to demo.docusign.net/.../envelopes 400 Bad Request,detail:No details available]]
    Can anyone guide where I am getting it wrong Please?
Children
No Data