I have a webservice integration configured that returns a PDF response (application/pdf). How can I convert this into an Appian document?
Discussion posts and replies are publicly visible
Check out integration objects (https://docs.appian.com/suite/help/19.1/Integration_Object.html) and the auto-detect option for content type (https://docs.appian.com/suite/help/19.1/Integration_Content_Types.html#document-(auto-detect))
This option suggested by Carlos Santander would work for sending, but not receiving a document.
Consider retrieving the document as base64. There are a few shared components in the AppMarket that you might use to then convert this back into a doc.
You might try to use the HTTP File Download smart service.
Misread the question. Thanks for clarifying, Robert Shankin.
You could try this plugin:
community.appian.com/.../download-document-from-url
This is working except I need to use a bearer token authentication. How can I configure this? (Use case is to download a doc from DocuSign)
Great news. After a quick look at the docuSign API it looks like the token should be included in the header. But this is just guessing as I have no actual experience with docuSign.
Yes, including it in the header does work but I'm not sure how to configure it to get that token dynamically. I have a connected system and integration setup which works to handle the authentication and get the token, but I can't use the integration for the HTTP file download SS. For testing purposes I had been checking the integration to get the token and then just manually using it in the smart service.
Hi wendys8
You can follow instructions in the below link and you will be able to get the bearer token thru rest calls
https://developers.docusign.com/esign-rest-api/code-examples/config-and-auth#2-configure-client-and-request-authorization-code
Once you get the token you can pass it as part of header in your HTTP File download and you will be able to get the file from docusign