diff --git a/Twitter_ServiceNow_Incidents/images/01.png b/Twitter_ServiceNow_Incidents/images/01.png new file mode 100644 index 0000000..2c373c3 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/01.png differ diff --git a/Twitter_ServiceNow_Incidents/images/02.png b/Twitter_ServiceNow_Incidents/images/02.png new file mode 100644 index 0000000..1e89025 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/02.png differ diff --git a/Twitter_ServiceNow_Incidents/images/03.png b/Twitter_ServiceNow_Incidents/images/03.png new file mode 100644 index 0000000..dfd814a Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/03.png differ diff --git a/Twitter_ServiceNow_Incidents/images/04.png b/Twitter_ServiceNow_Incidents/images/04.png new file mode 100644 index 0000000..0e4b234 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/04.png differ diff --git a/Twitter_ServiceNow_Incidents/images/05.png b/Twitter_ServiceNow_Incidents/images/05.png new file mode 100644 index 0000000..462ac06 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/05.png differ diff --git a/Twitter_ServiceNow_Incidents/images/06.png b/Twitter_ServiceNow_Incidents/images/06.png new file mode 100644 index 0000000..880c078 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/06.png differ diff --git a/Twitter_ServiceNow_Incidents/images/07.png b/Twitter_ServiceNow_Incidents/images/07.png new file mode 100644 index 0000000..59345ba Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/07.png differ diff --git a/Twitter_ServiceNow_Incidents/images/08.png b/Twitter_ServiceNow_Incidents/images/08.png new file mode 100644 index 0000000..56b2ddf Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/08.png differ diff --git a/Twitter_ServiceNow_Incidents/images/09.png b/Twitter_ServiceNow_Incidents/images/09.png new file mode 100644 index 0000000..5157da4 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/09.png differ diff --git a/Twitter_ServiceNow_Incidents/images/10.png b/Twitter_ServiceNow_Incidents/images/10.png new file mode 100644 index 0000000..08ce1bf Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/10.png differ diff --git a/Twitter_ServiceNow_Incidents/images/11.png b/Twitter_ServiceNow_Incidents/images/11.png new file mode 100644 index 0000000..62dbb09 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/11.png differ diff --git a/Twitter_ServiceNow_Incidents/images/12.png b/Twitter_ServiceNow_Incidents/images/12.png new file mode 100644 index 0000000..45d5ce8 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/12.png differ diff --git a/Twitter_ServiceNow_Incidents/images/13.png b/Twitter_ServiceNow_Incidents/images/13.png new file mode 100644 index 0000000..6aea9c1 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/13.png differ diff --git a/Twitter_ServiceNow_Incidents/images/14.png b/Twitter_ServiceNow_Incidents/images/14.png new file mode 100644 index 0000000..58637c1 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/14.png differ diff --git a/Twitter_ServiceNow_Incidents/images/15.png b/Twitter_ServiceNow_Incidents/images/15.png new file mode 100644 index 0000000..e462ecc Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/15.png differ diff --git a/Twitter_ServiceNow_Incidents/images/16.png b/Twitter_ServiceNow_Incidents/images/16.png new file mode 100644 index 0000000..ed9936f Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/16.png differ diff --git a/Twitter_ServiceNow_Incidents/images/17.png b/Twitter_ServiceNow_Incidents/images/17.png new file mode 100644 index 0000000..ea4d2f7 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/17.png differ diff --git a/Twitter_ServiceNow_Incidents/images/18.png b/Twitter_ServiceNow_Incidents/images/18.png new file mode 100644 index 0000000..665487e Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/18.png differ diff --git a/Twitter_ServiceNow_Incidents/images/19.png b/Twitter_ServiceNow_Incidents/images/19.png new file mode 100644 index 0000000..2cdde88 Binary files /dev/null and b/Twitter_ServiceNow_Incidents/images/19.png differ diff --git a/Twitter_ServiceNow_Incidents/readme.md b/Twitter_ServiceNow_Incidents/readme.md new file mode 100644 index 0000000..68b9005 --- /dev/null +++ b/Twitter_ServiceNow_Incidents/readme.md @@ -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)