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
+1
person also asked this
people also asked this
Replies
37 replies
Subscribers
7 subscribers
Views
37148 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
integration of Appian workflow with DocuSign
rishub
over 8 years ago
Hi All,
We want to integrate Appian workflow with Docu Sign. Is there any plugin exists for that? Our Use case is that we want to email the document to client for sign & they can just sign digitally in email & it can send us signed document back to the workflow & workflow will continue after that.
OriginalPostID-243579
Discussion posts and replies are publicly visible
0
rishub
over 8 years ago
Thanks Tyler, It did fix the issue related to expression but I guess removing[] another issue. When I ran the process, It got completed but got following error on output:
{ "errorCode": "INVALID_REQUEST_BODY", "message": "The request body is missing or improperly formatted. Cannot deserialize the current JSON object (e.g. {\\"name\\":\\"value\\"}) into type 'API_REST.Models.v2.document[]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly.\\r\
To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.\\r\
Path 'documents.documentId', line 1, position 98."}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tyler Criste
Appian Employee
over 8 years ago
Could you paste your latest expression :-)?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
=a!toJson({status: "sent",emailSubject: "Request a signature via email example",documents:{documentId: "1",name: "Test_sign_PDF_Template.pdf",documentBase64: "#31754#"},recipients: {signers: {name: "Rishu Bansal",email: "r.rishubansal@gmail.com",recipientId: "1",tabs: {signHereTabs: {xPosition: "25",yPosition: "50",documentId: "1",pageNumber: "3"}}}}})
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tyler Criste
Appian Employee
over 8 years ago
Could you try this? I just wrapped the documents and signers fields in brackets to make them an Appian list.
a!toJson(
{
status: "sent",
emailSubject: "Request a signature via email example",
documents: {
{
documentId: "1",
name: "Test_sign_PDF_Template.pdf",
documentBase64: "#31754#"
}
},
recipients: {
{
signers: {
{
name: "Rishu Bansal",
email: "r.rishubansal@gmail.com",
recipientId: "1",
tabs: {
signHereTabs: {
xPosition: "25",
yPosition: "50",
documentId: "1",
pageNumber: "3"
}
}
}
}
}
}
}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
Sure
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tyler Criste
Appian Employee
over 8 years ago
Actually, try this one. Did the same with signers and tabs:
a!toJson(
{
status: "sent",
emailSubject: "Request a signature via email example",
documents: {
{
documentId: "1",
name: "Test_sign_PDF_Template.pdf",
documentBase64: "#31754#"
}
},
recipients: {
{
signers: {
{
name: "Rishu Bansal",
email: "r.rishubansal@gmail.com",
recipientId: "1",
tabs: {
{
signHereTabs: {
{
xPosition: "25",
yPosition: "50",
documentId: "1",
pageNumber: "3"
}
}
}
}
}
}
}
}
}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
Sorry, Still getting error:
{ "errorCode": "INVALID_REQUEST_BODY", "message": "The request body is missing or improperly formatted. Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'API_REST.Models.v2.recipients' because the type requires a JSON object (e.g. {\\"name\\":\\"value\\"}) to deserialize correctly.\\r\
To fix this error either change the JSON to a JSON object (e.g. {\\"name\\":\\"value\\"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.\\r\
Path 'recipients', line 1, position 1718938."}
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
Sorry, still above mentioned issue
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tyler Criste
Appian Employee
over 8 years ago
Hmm, okay I'm not sure why that's not working. If you can't figure that out, another thing to try would be using a CDT. On my project we had a CDT for envelope, which had a nested CDT of recipients, which had a nested CDT of signers, etc. So you could try creating a CDT matching the structure and then just to toJson on your CDT.
Otherwise, not sure what that error means.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 8 years ago
okay, Thank you so much for all your help Tyler.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<
>