Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added ConvertData xml-json/CompleteFlow.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConvertData xml-json/ConvertXMLToJSON.zip
Binary file not shown.
Binary file added ConvertData xml-json/CreateWorkflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConvertData xml-json/SendEmail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConvertData xml-json/SendEmailMapping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConvertData xml-json/Testing.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions ConvertData xml-json/XMLToJSON.json

Large diffs are not rendered by default.

Binary file added ConvertData xml-json/XMLToJSONMapping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConvertData xml-json/XMLToJSONService.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions ConvertData xml-json/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# 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.

## 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](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)

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.

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)

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)

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)

6.Your complete flow should looks like this.![CompleteFlow](https://github.com/maam1/webmethodsio-examples/blob/master/ConvertData%20xml-json/CompleteFlow.PNG)

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)




1 change: 1 addition & 0 deletions CumulocityAlarmToFreshdeskTicket/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added SalesforceLeads-SlackChannel/AddSlackService.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SalesforceLeads-SlackChannel/AddingLogger.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SalesforceLeads-SlackChannel/CompleteWorkflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SalesforceLeads-SlackChannel/LoggingMapper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions SalesforceLeads-SlackChannel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
### **Broadcast the Salesforce Lead info in Slack Channel.**

This example shows how to integrate Salesforce and Slack in webmethods.io. As soon as the Leads created in Salesforce an message is broadcast ed in slack about the lead information.

### **Prerequisite**
You should have access to the salesforce and slack SaaS application.

### **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 ![this](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/Creating_First_Workflow.png)

2. The trigger is being added by modifying the start button, which is the entry point to the new workflow. Select the gear on top of the start icon to access settings. Once settings is selected in the start icon, a 'trigger' dialog will appear that allows Salesforce trigger to be selected. ![trigger](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/SalesforcePollingTrigger.png)

3. Now login to Salesforce on the same browser so that the webmethods.io automatically creates the connection with salesforce. ![SalesforceLogin](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/SalesforceLogin.png)

4. Then try to create the new connection on the Salesforce new trigger which we added. Automatically the login details are picked up by salesforce and a connection is established to salesforce. If required you can edit the connection name created![PollingTrigger](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/SalesforcePollingTrigger.png)

5. Select done once presented with the final dialog. You should now see the start arrow dialog replaced with a salesforce new lead polling trigger.

6. Now the flow is ready to process, once the salesforce trigger receives the request. In the search dialog lookup "Slack" service and select "Slack" service, drag and drop it into the flow canvas.![SlackService](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/AddSlackService.png)

Once you drag and drop any service, automatically it connects the salesforce trigger to slack service.

7. Mouse over the slack service and select the setting button then a window pop up asking for the action need to be selected and also the connection needs to be established to your slack channel.![SlackConnection](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/SlackConnectionAndAction.png)

You can establish the connection in 2 ways

a) You can login to slack on the same browser and select the default authorization so that webMethods.io generates the keys for you.
b) You can manually enter the keys by selcting the other option.
![SlackAuthentication](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/SlackAuthentication.png)

8. After the connection click next to do the mapping. Map the relevant data required to send to slack channel. Once mapping is done then click on save.![SalesforceLeadToSlackMapping](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/SalesforceLeadToSlackMapping.png)

9. Now add the logger function to see the input and the output document to this service.![AddingLogger](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/AddingLogger.png)

Under logger mapping we have logged both salesforce lead information and also the slack channel information.![LoggingMapper](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/LoggingMapper.png)

10. Now join the flow to end and this completes the complete workflow. This is ready for testing.![CompleteWorkflow](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/CompleteWorkflow.png)

11. Test the work flow by either creating a new lead in the salesforce or by just testing the individual step.![TestingWorkflow](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/TestingWorkflow.png)

12. review the slack channel whether the lead information has been posted.![SlackChannelOutput](https://github.com/maam1/webmethodsio-examples/blob/master/SalesforceLeads-SlackChannel/SlackChannelOutput.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Binary file added SalesforceLeads-SlackChannel/SalesforceLogin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SalesforceLeads-SlackChannel/TestingWorkflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.