This workflow automates the process of reading emails from an IMAP inbox, extracting XML attachments, and forwarding the data to a sales order API endpoint. It streamlines data handling and integration tasks, making it ideal for businesses that receive order details via email and need to automate their order processing system.
The workflow begins with the “IMAP Email” node, which connects to an email server and reads incoming messages, allowing for attachments to be downloaded even with unauthorized certificates. The “Move Binary Data” node then isolates the email attachment, which is expected to be XML data, and prepares it for further processing.
Next, the “XML” node parses the XML data, ignoring attributes for simplicity and treating the root element explicitly. The parsed data is then set into a variable using the “Set” node.
Finally, the “HTTP Request” node sends the extracted XML data as a POST request to a local API endpoint (`http://localhost:5679/api/sales-order`), where it can be processed as a new sales order record.
This workflow is particularly useful for automating order intake from email, reducing manual data entry, and integrating email-based order collection directly into an order management system or ERP.
Reviews
There are no reviews yet.