Announcing the Global SNUG Board of Directors. Learn more here
Integrate ServiceNow with modern systems quickly
Traditionally, integrations are complex and expensive to maintain. Integration Hub reduces complexity, allowing you to integrate ServiceNow with API-based systems faster. Advantages of using Integration Hub over scripted API approaches and iPaaS vendors include:
Capabilities that scale with your business
Integration Hub is packaged by solutions and flow templates, spokes, and custom integration capabilities. Let’s focus on the approach:
ServiceNow’s Out-of-the-Box spokes contain actions and sub-flows aligned with the most
common API functions for the third-party system. These Spokes are developed, maintained, and
certified for new releases by ServiceNow, significantly reducing integration complexity and total
most of ownership. Public facing Packaging information can be found here:
Integration Hub Overview document on Legal Schedules
Spokes
A spoke is a logical grouping of related actions, subflows, and supporting application files to enable communication with a specific application or system. For example, the Slack Spoke includes actions to post messages, incidents, problems, change details, and more, to a Slack channel.
A spoke is essentially a scoped application, the same as when you use our legacy features to build an integration. The difference is that, the spoke contains actions, sub-flows and flow templates – along with any supporting application files. Whereas using our legacy integration capabilties (Outbound REST, Scripted REST, RESTMessagev2, etc.) has far more complexity, no built-in functionality to track usage, and multiple points of engagement with no easy way to create multiple workflow opportunities for the same integration. A spoke can be accessed directly from Flow Designer to be used in multiple workflows. A flow may contain actions or subflows from multiple spokes depending on use-case.
There are currently 180+ Integration Hub spokes available.
What if a ServiceNow spoke doesn’t contain the functionality needed?
When an existing spoke doesn’t contain actions or sub-flows that align with the API functions needed for the integration, you can use the spoke as a guideline to extend, design and build a custom spoke, clone existing actions to add additonal functionality or create new actions within the scope of the existing spoke.
Note: A MID Server is required to communicate with or move data between a ServiceNow instance and external applications, data sources, and services in your network behind a firewall.
ServiceNow does not allow direct customization of Out-of-the-Box spoke actions – we offer the spokes to address core API functionality for the third-party system and if the spoke does not offer that functionality, you can reference the actions and sub-flows to build a custom spoke and/or clone or develop new spoke actions within the scope of the spoke.
You can create a custom spoke to pair with an existing spoke or if a spoke for your system doesn’t exist – create a standalone custom spoke. ServiceNow recommends creating a new Update Set within the scope of the spoke you are utilizing and cloning or creating new actions – this allows for rapid development and simple maintenance by allowing the reuse of connections and you can find it alongside other actions in the same spoke when browsing the action picker in Flow Designer. When extending or cloning baseline functionality from a spoke – create a new process to review and test changes made with new versions of the spoke you are extending or cloning from. This will ensure you always have the most recent feature releases in your custom spokes and actions.
Note: When creating or cloning actions within the scope of an existing spoke, you may want to name the new action something that reflects the new behaviour to alleviate any confusion when selecting an action in the Flow Designer action picker.
Integration Hub spokes make integrations reusable by multiple workflows in an enterprise, because you can access spoke actions and sub-flows from Flow Designer in the Action menu. Using Flow Designer to run integrations also alleviates the need to develop business rules and other scripts that fire on insert/update to the database, and replacing scripts with flows makes upgrades easier.
Check out the REST in IntegrationHub training to dive into extending, building and understanding custom spokes and actions with Integration Hub.
Spoke Generator
Customers and Developers are always looking for effective ways to create new Spokes that connect the Now Platform to external systems. Traditionally, they’ve had to rely on creating scripted approaches to quickly create new integrations, without using Integration Hub capabilities like Action Designer.
Spoke Generator takes out the manual steps, reducing risk and enabling you to generate Spokes with advanced features without generating code – greatly reducing the implementation time and offering Spokes at a lower cost.
Spoke Generator offers a guided experience for building Spokes – using OpenAPI 2.0 and OpenAPI 3.0 specifications to quickly build integrations with external applications and systems that support OpenAPI.
What is OpenAPI?
In summary, OpenAPI specification is an open standard for describing your APIs, that enables transfer of knowledge from API provider to API consumer.
Connection Attributes
Define connection-specific variables that you can use in Integration Hub integration steps when building Spokes. When using an integration step, you must establish a connection with an external system. It is a ServiceNow Best Practice to use a Connection and Credential alias
instead of defining the connection inline. An alias enables you to update the connection details once without having to reconfigure the connection for each action.
MID Server Connection Aliases
Action designers can set MID Server selection attributes using a connection record associated with an alias and associate the alias with an integration step. When the flow runs, the system uses the attributes to determine which MID Server runs the step.
Design integration steps using the following guidelines:
Transactions
An Integration Hub Transaction is defined as any outbound call originating from Integration Hub, FlowDesigner, Remote Tables and/or Orchestration. This includes any operation, action, orchestration from Integration Hub, Remote Tables or Orchestration resulting in an outbound call.
Note: Legacy web services features such as RESTMessageV2 do not consume Integration Hub transactions outside of Flow Designer.
Custom Spoke Development Standards & Best Practices
Application Scoping
Connection and Credential Alias
Inbound Webhook Authentication / Callbacks
Creating Actions
Naming Actions
Categorizing Actions
Designing Steps
REST Steps
*Note: Resource Path in the REST Step is encoded.
JDBC Steps
To handle larger datasets, use the Data Stream action, which also supports the JDBC step. This can handle millions of records/gigabytes of data.
When consuming these actions, for large datasets, Import Sets should be used, and Integration Hub Import provides an easy and simple user interface to use. Data Sources have an Integration Hub Data Stream source option that lets you choose an Integration Hub data stream as the source of data for the import set.
While you can consume data stream actions in flow, this is not recommended for very large datasets.
Performance of JDBC Data Stream via MID Server was enhanced significantly in the San Diego release. Providing a ~20% performance increase on how quickly result sets are shipped from the MID Server back to the instance.
Error Handling
Script Includes
Action Steps
To learn additional information about Flow Designer Best Practices: https://sn.works/CoE/BPFlow
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.