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:
- HTTPConnector Component Setup:
- Add an HTTPConnector component to your CloverDX graph.
- Configure the “Request method” to POST.
- 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.
- 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.
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