Skip to main content
July 4, 2022
Question

File Upload

  • July 4, 2022
  • 9 replies
  • 0 views

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.

    9 replies

    July 4, 2022

    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

    neilb2444Author
    July 5, 2022

    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

    stefanhelzle0001
    Brainy
    July 5, 2022

    I would say the target URL is incomplete. After .../webapi should be more.