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
4 replies
Subscribers
5 subscribers
Views
1934 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
Hi, We are doing Docusign integration for esignatures. We will pass t
senthilar
over 10 years ago
Hi,
We are doing Docusign integration for esignatures. We will pass the document(s) to a java program which will send them to docusign. Since there are lots of information to be passed across (recipients, tabs etc) we created CDT to pass all data together to java program. But document type cannot be part of CDT. So, our CDT has only the document Id along with all the other details (recipients, tabs etc).
The problem now is how to pass documents to java program:
1) We tried adding Base64 strings to CDT - but for big documents, the string is not able to handle.
2) We can just pass on the document Id in the CDT. The java code can then use this id to fetch the document from the knowledge center folder and process it further - how to accomplish this? Is this possible? Which class/method should be used to get the document content using the document id?
We are struck here and not able to make any progress. Kindly throw some light....
OriginalPostID-106163
OriginalPostID-106163
Discussion posts and replies are publicly visible
Parents
0
Eduardo Fuentes
Appian Employee
over 10 years ago
1. Once you have the document ID stored in the CDT field you can simply wrap it in the todocument() function (e.f. todocument(pv!MyCDT.MyDocId) when using it within the model anywhere where it requires a document type.
2. If you still need to retrieve the document through the Java code simply take a look at the JavaDocs of the Appian Public API, specifically to ContentService:
forum.appian.com/.../ContentService.html
forum.appian.com/.../ContentService.html
, java.lang.Integer)
3. There are multiple plug-ins in Forum that you can download and see their source code to get a better idea on how to work with documents in Appian through the API.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 10 years ago
1. Once you have the document ID stored in the CDT field you can simply wrap it in the todocument() function (e.f. todocument(pv!MyCDT.MyDocId) when using it within the model anywhere where it requires a document type.
2. If you still need to retrieve the document through the Java code simply take a look at the JavaDocs of the Appian Public API, specifically to ContentService:
forum.appian.com/.../ContentService.html
forum.appian.com/.../ContentService.html
, java.lang.Integer)
3. There are multiple plug-ins in Forum that you can download and see their source code to get a better idea on how to work with documents in Appian through the API.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data