Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
29 replies
Subscribers
7 subscribers
Views
13075 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
HTTP Query Issue for Docusign
rishub
over 8 years ago
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
0
rishub
over 8 years ago
On Docusign, I am seeing an example: "GET /restapi/v2/accounts/1703061/envelopes?from_date=2016-01-01" I wanted to use envelopeId instead of from_date. so I tweaked my reauest but getting "400 bad request".
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tyler Criste
Appian Employee
over 8 years ago
Could you post the current expression you're using? Note that the headers in the REST base64 plugin are a little different than it a!httpQuery. It looks to me like you need to add the a!httpHeader() function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
Well, I used "HTTP Query Smart Service". Here are the details:
endpoint:="
demo.docusign.net/.../envelopes"
Method: GET
Headers:
name:
value:
scsField:
externalSystemKey:="integratorkey"
fieldkey:"integrator"
usePerUser: False
Parameters:
name:
value:
scsField:
externalSystemKey:
fieldkey:
usePerUser:
BasicAuthentication:
UserName:
externalSystemKey:="rishu_username"
fieldkey:"username"
usePerUser: True
password:
externalSystemKey:="rishu_password"
fieldkey:"password"
usePerUser: True
Preemptive: False
RequestBody: =a!toJson( {envelope_ids: "bbf7779c-7c89-4958-bdc9-7413aa60bb4c", from_to_status:"Changed"})
The response got as error is: Title: HTTP error connecting to
demo.docusign.net/.../envelopes
, Message: HTTP/1.1 401 Unauthorized, Details: No details available
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
In 3rd party credenatials, I added my UserName, password & integratorKey
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
Tyler, any updates?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tyler Criste
Appian Employee
over 8 years ago
@Rishu, I don't think DocuSign supports basic http authentication. See more information here:
https://www.docusign.com/p/APIGuide/Content/Introduction+Changes/Authentication.htm
You need the X-Docusign-Authentication header.
Before using the secure credentials store, could you confirm that you're able to send a request just using a plain text username/password? To do that, could you add the docusign authentication header as an http header?:
a!httpHeader(name: "X-Docusign-Authentication", value: a!toJson({Username:
, Password:
, IntegratorKey:
}))
If that works, then you can try using the scsFields.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
Sure Tyler, Thanks . Let me try real quick.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
Tyler, I updated the header & used the following expression:
=a!httpHeader(name: "X-Docusign-Authentication", value: a!toJson( { Username: "username", Password: "password", IntegratorKey: "499c1d94-e67c-4c0b-b6a0-9bdf622b4303" }))
I kept rest of the expression same & got the same error:
Title: HTTP error connecting to
demo.docusign.net/.../envelopes
, Message: HTTP/1.1 400 Bad Request, Details: No details available
Then I cleared out expression under basic Authentication bur got the same error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tyler Criste
Appian Employee
over 8 years ago
which API are you trying to call?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
I am trying to call Get Envelope Status Changes.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<
>