Skip to content

Latest commit

 

History

History
30 lines (14 loc) · 2.21 KB

Convert Data xml-json and send email.md

File metadata and controls

30 lines (14 loc) · 2.21 KB

Convert Data xml-json and send email

This example shows how easy it is, to convert the data from one format to other format. We can pass any xml data in the rest api call and get that converted to json format. Test test

Testing again test test

Prerequisite

Have some XML data handy to convert to Json

Setup

  1. Go ahead and get started creating a blank workflow. If you need a refresher on how to get to this point, this guide can be a great introduction. Your starting point should resemble CreateWorkFlow

  2. In the search dialog lookup "xml to json" service and select "XML to JSON" service, drag and drop it into the flow canvas. XML to JSON Connect the arrows automatically from start to the XML to JSON service icon. This inserts the 'XML to JSON' step in the flow. Hardcode the XML data which need to be converted to JSON.

  3. Under XML to JSON service mapping map the input body to XML Data Mapping

  4. We can configure send email if the converted data need to be sent over email to the respected audience. In the search dialog lookup "send an email" service and select "Send an Email" service, drag and drop it into the flow canvas. SendEmail

5.Under Send an Email configuere the to address, cc, subject and map the body to Json data. SendEmailMapping

6.Your complete flow should looks like this.CompleteFlow

  1. Now test the flow by clicking on Test button. We can view the result in Action tab.Testing