Upload PDF document to external system through an API

Hi, We have a requirement to send document to external system through a POST API call… Could someone help with the configuration of it in case of a pdf file.

Hello Neelimaj,

Thank you for reaching out! To fulfill your requirement of sending a file to an external system through a POST API call, we recommend utilizing the HTTPConnector component within CloverDX. The HTTPConnector component allows you to interact with RESTful APIs easily. Regardless of the file type/suffix, here’s how you can configure it:

  1. HTTPConnector Component Setup:
    • Add an HTTPConnector component to your CloverDX graph.
    • Configure the “Request method” to POST.
  2. Input File Configuration:
    • For sending the PDF file, you can either hard-code the file path directly into the “Input File URL” property of the HTTPConnector component if the file path is static.
      OR
    • If you need dynamic file path mapping, you can take advantage of Input Mapping. You can map the filepath dynamically in CTL using the $out.0.inputFileUrl denotation.

Thanks for your response, I am able to send document to external system through api by following these steps and the documentation link: https://doc.cloverdx.com/latest/designer/httpconnector.html#id_httpconnector_multipart_entities