Hii i am new to Appian,
I am trying to implement an Appian Web API (POST method) which would be exposed to 3rd party external system.
This API would capture some data points along with document as part of single POST API request body. (Document can be pdf,doc,img) and insert same in Appian DB and document folder.
Currently I am able to put values in DB and using a separate implementation store document in file storage successfully.
But while storing document unable to get document id on storage success which could be further mapped as reference point in DB.
-- How can i get document id in workflow and store same in DB?
Major documentation talks about this implementation from forms perspective but i couldn't find details to achieve same over Appian REST web API. What is the best practice for implementation and Please share any relevant documentation or sample code reference.
Discussion posts and replies are publicly visible
hello, you can save the result in the data / outputs in a document type variable
Also it is necessary to set up the integration result to be converted to todocument
Hello, As u mentioned above i have tried setting up the integration and In the request body I have given todocument() function. but getting an error . can u please help
I would say the target URL is incomplete. After .../webapi should be more.
hey now i have changed the URL now getting error in response body.
AFAIK passing a document inside a JSON structure to an Appian web API is not supported.
Is there any work around to pass document inside appian web api from external system.so as to store in document folder.
The document must be directly in the body. You can have any number of headers or query parameters to transfer meta data.
Check the example I posted.