Creating a custom trigger for flows

sudo-phil
Kilo Contributor

Hi, I was wondering if it is possible to create a custom trigger for a flow as the defaults are not able to perform the actions I need?find_real_file.png

1 ACCEPTED SOLUTION

Hi Sudo,

For posting a message from Slack to ServiceNow, I think you are you would need to write a Scripted REST API that will trigger the flow (Server-side). A Scripted REST API allows you to create a REST endpoint and then run some server-side code. 

Scripted REST API: https://docs.servicenow.com/bundle/newyork-application-development/page/integrate/custom-web-service...

API access to Flow Designer: https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/flow-designer/concept...

Note: However, we do have an OOTB Slack spoke from ServiceNow to Slack: https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/integrationhub/referen...

- Pradeep Sharma

 

View solution in original post

7 REPLIES 7

Hi Pardeep 

I am trying to trigger it via an inbound Slack message from a specific slack channel related to an incident, so that I can capture the message and append it to the work notes list. Does that help explain it?

Hi Sudo,

For posting a message from Slack to ServiceNow, I think you are you would need to write a Scripted REST API that will trigger the flow (Server-side). A Scripted REST API allows you to create a REST endpoint and then run some server-side code. 

Scripted REST API: https://docs.servicenow.com/bundle/newyork-application-development/page/integrate/custom-web-service...

API access to Flow Designer: https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/administer/flow-designer/concept...

Note: However, we do have an OOTB Slack spoke from ServiceNow to Slack: https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/integrationhub/referen...

- Pradeep Sharma

 

Runjay Patel
Giga Sage

Watch this video for Slack integration steps by step configuration. Post message on slack channel via flow designer.

https://www.youtube.com/watch?v=YEGLJLubCCY&t=1s&ab_channel=ServiceNowHelpdesk

 

Please mark reply as Helpful/Correct, if applicable. Thanks!!