-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from shikha-agarwal-m/patch-1
Patch 1
- Loading branch information
Showing
20 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
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.
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.
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.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
Twitter Tweets to ServiceNow Incidents: | ||
|
||
|
||
This flow identifies hashtags addressed to a certain twitter account and directs tweets with certain hashtag to ServiceNow, to create incidents and other tweets to GoogleSheet to log for future reference. | ||
|
||
1) Start with an empty flow: | ||
|
||
![](images/01.png) | ||
|
||
|
||
2) Double Click on the ‘Start’ icon to see the list of triggers. Search for Twitter. | ||
|
||
![](images/02.png) | ||
|
||
3) Create a new trigger definition. Trigger the flow when there is a tweet mentioning you with the list of hashtags in the hashtag field. | ||
|
||
![](images/03.png) | ||
![](images/04.png) ![](images/08.png) | ||
![](images/05.png) | ||
|
||
|
||
3) Add a switch and a Service Now step to the flow. | ||
|
||
![](images/06.png) | ||
|
||
4) Configure ServiceNow with your ServiceNow Developer Account Details. Select the createIncidents operation. | ||
![](images/07.png) | ||
|
||
5) Configure ServiceNow CreateIncidents mapping | ||
|
||
![](images/08.png) | ||
|
||
|
||
5) Click on the path from Switch to ServiceNow and add the Case1 Definition. In this case, we want to filter the Hashtag array received from Twitter feed and identify if the array has #SwagHelp. If yes, send that feed to serviceNow to create a new Incident. | ||
|
||
![](images/09.png) | ||
|
||
Click on Transform > Add Transform Name > Select Transform Data as Filter (from the Array subsection). | ||
|
||
Drag and drop the ‘Hashtags’ array from Twitter Trigger output (left side) to the Array field on the right side. Use AdvancedFilter to filter the Array object where hashtag[] = ‘SwagHelp’. Click Done on the transform window. | ||
|
||
|
||
|
||
6) On the condition window, the newly created transform variable is available to use. Map the filtered array to filter 1 on right side and check if this array has any elements. If it does, it means we received a #SwagHelp in the feed. | ||
![](images/10.png) | ||
|
||
7) For the Default flow of switch case, map that branch to a Google Sheet workflow step. All other hashtags will cause the twitter feed to be logged into an excel/Google Sheet. This can be later converted into a CSV or JSON for further processing and analysis, if required. | ||
|
||
![](images/11.png) | ||
|
||
|
||
|
||
8) GoogleSheet add row configuration | ||
|
||
![](images/12.png) | ||
|
||
9) The spreadsheet id and sheet name show as dropdowns and you can pick from the available spreadsheets in your google drive. | ||
|
||
![](images/13.png) | ||
|
||
Using Transform capability to get the current datetime in a specific format. | ||
|
||
![](images/14.png) | ||
|
||
Mapping the userid, tweet and currentDateTime (from Transform section). | ||
![](images/15.png) | ||
|
||
Output: | ||
|
||
Twitter Tweet: | ||
|
||
![](images/16.png) | ||
|
||
webMethods.io: | ||
|
||
![](images/17.png) | ||
|
||
Service Now: | ||
|
||
![](images/18.png) | ||
|
||
Google Sheet: | ||
When the tweet doesn’t contain the #SwagHelp tag: | ||
|
||
![](images/19.png) |