Customize pattern operations
- UpdatedApr 3, 2025
- 3 minutes to read
- Vancouver
- Service Mapping
As part of creating or modifying a discovery pattern, modify existing custom operations that come as part of the base system or add new ones.
Before you begin
Role required: pd_admin
Practical knowledge of Java scripting is required.
About this task
For standard pattern operations, you can define only input parameters. However, there are custom operations for which you can define the business logic and the mechanism of the operation itself in addition to input parameters. For example, you can make a parameter mandatory or define which input parameters to use.
- Cloud REST Call
- Extracts information from configuration items of the PaaS (Platform-as-a-Service) type, such as Microsoft Azure or Amazon Web Services. This Java-based custom operation is part of the base system.
- HTTP Get Call
- Extracts information from configuration items (CIs), which use the HTTP protocol. This custom operation is part of the base system.
- Cloud REST Query
- Extracts information from configuration items of the PaaS (Platform-as-a-Service) type, such as Microsoft Azure or Amazon Web Services. This Java-script based custom operation is available only after downloading patterns version 1.0.24 or later from ServiceNow Store. Use this operation instead of the Cloud REST Call operation.
In addition to these custom operations, you can create your own operations to serve the needs of your discovery process. Custom operations created by you appear in the list of operations along with operations, which are part of the base system.
Procedure