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
13065 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
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?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohammedz
Certified Senior Developer
over 8 years ago
@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
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
Mohammedz, I am using Appian 7.11 & we don't have httpget function in that
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
Also, i tried to use httpquery expression function, not smart service
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkateshs329
over 8 years ago
@rishub: As of my knowledge
Can you add preemptive:true to httpquery function
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 8 years ago
@rishub As per your above mention code snippet, if the Headers, method and Credential Information's are provided correctly, then in such case i recommend you try executing the same URL from Web Browser along with ?envelope_ids: Your_Value, and please check whether it's returning the Proper response or not, if No that means there is some mismatch of request data. So in such case i recommend you to check about following
=> find out what your code is actually sending to API, and
=> find out what the API is expecting you to send
I hope this will help you to debug the above problem statement..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
@Venkateshs329, No updating preemptive to true did not help. It gives same error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
@Aloks176 I have tried that url in browser but in that case, it gives error that it did not find the integrator key or it is missing. Even I tried to use the integrator key at various places in URL but still, it gave same error. upto version info that is v2, link works fine but as soon as I add account to it, it starts giiving error
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 8 years ago
@rishub If You are exposing this API then i recommend you to check, what have you configured into it to identify the exact cause of this, specially Integrator Key. because it shows PARTNER_AUTHENTICATION_FAILED
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
@Aloks176, I used the same configuration for base64 Rest Plugin to send sdcoument through Docusgn & it did work there. So I am not sure where I am getting it wrong.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>