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
  • Tyler, Yes, Looks like the issue was with from date, I removed from date & used envelopeid instead & it returned the correct response. In the rule "getDateToCheckForNewDocuSignUpdates()", I used following expression:
    text(
    /* make sure it's in utc */
    gmt(
    datetime(
    year(
    now()
    ),
    month(
    now()
    ),
    day(
    now()
    ),
    hour(
    now()
    ),
    minute(
    now() - 1439
    )
    ))
    /*needs to be ISO 8601 format */,
    "yyyy-MM-ddTHH:mm:ss") & ".000Z"

    The output of rule was:
    2016-11-03T21:22:00.000Z
Reply
  • Tyler, Yes, Looks like the issue was with from date, I removed from date & used envelopeid instead & it returned the correct response. In the rule "getDateToCheckForNewDocuSignUpdates()", I used following expression:
    text(
    /* make sure it's in utc */
    gmt(
    datetime(
    year(
    now()
    ),
    month(
    now()
    ),
    day(
    now()
    ),
    hour(
    now()
    ),
    minute(
    now() - 1439
    )
    ))
    /*needs to be ISO 8601 format */,
    "yyyy-MM-ddTHH:mm:ss") & ".000Z"

    The output of rule was:
    2016-11-03T21:22:00.000Z
Children
No Data