In many cases, you'll want to use the data from your systems in your messages. If your system can provide XML or JSON formatted data, but you cannot use our api to send the data to SendPro, the Extract Data FlowStep may help. Using this FlowStep, SendPro will identify and read XML or JSON data that is in your html message. You can place the data inside an html comment, or as legible text in your html message. The flowstep will extract the data and will allow it to be used in templates and other flowsteps.
Settings
- Data type: Choose which data type you want to use.
Advanced
- Search parts with content-type: Should you look at body text or an attachment?
- Search parts with filename: When there are multiple attachments which file should be used?
- Remove extracted part: When you select this, SendPro removes the XML or JSon we found from your email. This makes sure the client will not receive a confusing message full of data.
- CSS selector for finding data in HTML: You can define what needs to be looked at to retrieve from your template based on CSS.
- XML is encoded as text in HTML document: You can use this function if your XML is not recognizable as XML, but as text. SendPro can read the code and use this data.
- Ignore errors: If you want to continue the flow, even with errors, check this box.
- Set condition for his FlowStep: Do you want to set a condition? Then a new input field will appear. This allows you to set a condition so that a FlowStep is only executed when it meets a special condition. You write a condition in the Freemarker language (https://freemarker.apache.org/).
- Comments: Here you can optionally add a comment, so that your colleagues can see why this Flowstep is being performed.