Skip to content

Commit 0fc4047

Browse files
authored
Merge pull request #7 from maam1/master
Salesforce Leads to Slack Channel
2 parents 9895818 + c2c67d9 commit 0fc4047

26 files changed

+72
-0
lines changed
91 KB
Loading
23.6 KB
Binary file not shown.
82.8 KB
Loading

ConvertData xml-json/SendEmail.png

96 KB
Loading
92.5 KB
Loading

ConvertData xml-json/Testing.PNG

105 KB
Loading

ConvertData xml-json/XMLToJSON.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
72.9 KB
Loading
38.9 KB
Loading

ConvertData xml-json/readme.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Convert Data xml-json and send email
2+
3+
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.
4+
5+
## Prerequisite
6+
Have some XML data handy to convert to Json
7+
8+
9+
## Setup
10+
11+
1. Go ahead and get started creating a blank workflow. If you need a refresher on how to get to this point, this [guide](https://docs.webmethods.io/workflow-building-blocks/creating-first-workflow) can be a great introduction. Your starting point should resemble ![CreateWorkFlow](https://github.com/maam1/webmethodsio-examples/blob/master/ConvertData%20xml-json/CompleteFlow.PNG)
12+
13+
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](https://github.com/maam1/webmethodsio-examples/blob/master/ConvertData%20xml-json/XMLToJSONService.PNG) 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.
14+
15+
3. Under XML to JSON service mapping map the input body to XML Data ![Mapping](https://github.com/maam1/webmethodsio-examples/blob/master/ConvertData%20xml-json/XMLToJSONMapping.png)
16+
17+
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](https://github.com/maam1/webmethodsio-examples/blob/master/ConvertData%20xml-json/SendEmail.png)
18+
19+
5.Under Send an Email configuere the to address, cc, subject and map the body to Json data. ![SendEmailMapping](https://github.com/maam1/webmethodsio-examples/blob/master/ConvertData%20xml-json/SendEmailMapping.png)
20+
21+
6.Your complete flow should looks like this.![CompleteFlow](https://github.com/maam1/webmethodsio-examples/blob/master/ConvertData%20xml-json/CompleteFlow.PNG)
22+
23+
6. Now test the flow by clicking on Test button. We can view the result in Action tab.![Testing](https://github.com/maam1/webmethodsio-examples/blob/master/ConvertData%20xml-json/Testing.PNG)
24+
25+
26+
27+

0 commit comments

Comments
 (0)