---
sourceDocument: Brazil Telecommunications Service Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/telecom-service-ops

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Telecommunications Service Operations Management

ft:clusterId :

    - tsom

bundleId :

    - tsom

workflow :

    - Customer and Industry


---

# Fortinet extension points reference

# Fortinet extension points reference {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 6 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Fortinet Extension Points Reference

The Service Graph Connector for Fortinet provides nine scripted extension points that enable you to customize specific behaviors of the connector without altering the shipped application.
Each extension point defines a contract with a set of functions at different stages of the connector's data-collection pipeline.
The connector uses default implementations but automatically picks up any active custom implementations on the next scheduled run.
This flexibility allows you to tailor data collection, enrichment, and processing to your organization's unique requirements.
Show full answer Show less  

## Available Extension Points and Their Purpose

* **ActionRequestBody:** Customize FortiManager API request payloads, such as modifying query parameters or targeting different URL patterns.
* **FortinetCollectionPlan:** Control which FortiManager API calls are made and how responses are processed, including adding new collection steps.
* **FortinetFieldMappings:** Map additional raw API fields to CI attributes without custom scripting, ensuring core identity fields remain unchanged.
* **FortinetCustomAttributes:** Compute custom additional attributes via scripting for devices, organizations, and network entities when mapping alone is insufficient.
* **FortinetParserHooks:** Insert custom enrichment logic during the data extraction process, supporting complex transformations and new CI types.
* **FortinetCustomizedFirmwareVersion:** Modify how device firmware version strings are constructed from raw FortiManager fields.
* **FortinetCustomizedContractParsing:** Customize parsing of license contract data to extract meaningful license expiration attributes.
* **FortinetCustomizedAdomFilter:** Filter which ADOMs (Administrative Domains) are collected based on custom business logic; disabled by default.
* **FortinetCustomizedLifeCycleStageStatus:** Set Life Cycle Stage Status values differently per CI class during CI creation or update, outside of data collection.

## How Custom Implementations Are Selected

The connector evaluates active implementations for each extension point in ascending order based on a defined **Order** value, using the first implementation that provides the required function. Default implementations have an Order of 100; giving custom implementations a lower Order (e.g., 20) ensures they are prioritized. If custom implementations are missing required functions or fail, the connector falls back to default behavior.

## Key Considerations for ServiceNow Customers

* Customizing request payloads and collection plans allows you to extend or refine the data fetched from FortiManager to better fit your CMDB needs.
* Field mappings and custom attributes let you expose and compute additional device and network metadata without disrupting core identifiers critical for CI reconciliation.
* Parser hooks enable advanced enrichment workflows and support for new CI types, enhancing data quality and relevance.
* Adom filtering must be tested carefully as it can exclude entire ADOMs from collection and fails closed if errors occur.
* Life Cycle Stage customization runs independently after import, allowing you to set lifecycle statuses that reflect your asset management policies.
* Follow documented steps to create and activate custom implementations for these extension points to avoid disrupting the connector's operation.

## Practical Outcome

By leveraging these extension points, you can finely tailor the Fortinet connector's data collection, enrichment, and lifecycle handling to align with your organization's operational and compliance requirements. This flexibility ensures richer, more accurate CMDB data and better integration between Fortinet devices and your ServiceNow environment without modifying the core connector code.  
The Service Graph Connector for Fortinet exposes nine scripted extension points that let you customize specific parts of the connector's behavior without modifying the shipped application. Use this reference to find which extension point
controls the behavior you want to change.
Each extension point defines a contract --- a set of functions --- at a specific point in the connector's data-collection pipeline. The connector ships a default implementation for every extension point and picks up any active
custom implementation automatically on its next scheduled run. For the steps to create a custom implementation, see [Customize scripted extension points](https://servicenow-prod.fluidtopics.net/0OwxGqKIXOCv8Ei1bZPasg "Customize specific parts of the Fortinet connector's behavior by implementing scripted extension points.").
{#fortinet-extension-points-reference__table_extension_points_overview__entry__3}

| Extension point | Lets you customize | Enabled by default |
|-|-|-|
| `ActionRequestBody` | FortiManager request payloads | Yes |
| `FortinetCollectionPlan` | Which APIs are called, and how responses are processed | Yes |
| `FortinetFieldMappings` | Extra CI attributes populated from raw API fields | Yes |
| `FortinetCustomAttributes` | Extra `additional_attributes` computed in script, on devices, organizations, network sites, network service instances, and ports | Yes |
| `FortinetParserHooks` | Custom enrichment logic during data extraction | Yes |
| `FortinetCustomizedFirmwareVersion` | How a device's firmware version string is built | Yes |
| `FortinetCustomizedContractParsing` | How license contract data is parsed | Yes |
| `FortinetCustomizedAdomFilter` | Which ADOMs are collected at all | No |
| `FortinetCustomizedLifeCycleStageStatus` | The Life Cycle Stage Status value set on new CIs, per CI class | Yes |
[Table 1. Available extension points]

{#fortinet-extension-points-reference__table_extension_points_overview}

## How the platform selects an implementation {#fortinet-extension-points-reference__section_selection}

At each extension seam, the connector retrieves every *active* implementation registered for that extension point, sorted by the extension instance's Order field in ascending order. The first
implementation, in that order, that provides the required function is used.

Every default implementation shipped with the connector registers its extension instance with an Order of 100. Give your custom implementation a lower Order value (for example,
20) so it's evaluated first. If no active implementation is found, or a custom implementation throws an error, the connector's default behavior applies instead.

## Request payloads (ActionRequestBody) {#fortinet-extension-points-reference__section_action_request_body}

The connector talks to FortiManager over a single shared JSON-RPC endpoint. This extension point
lets you customize the request body sent for any of the connector's four API calls (get ADOMs, get device contracts, get devices per ADOM, get interfaces per device). For example, you can add or remove fields, change query
parameters, or point at a different FortiManager URL pattern.

Default implementation: `ActionRequestBodyFortinetDefault`, matched to the `fortinet_alias` connection alias.  
Note:  
The resolver matches by exact connection alias name. Your implementation's `getConnectionAlias()` function must exactly match the `name` field on the `sys_alias` record configured on the instance. If nothing matches, the connector has no request bodies and every FortiManager call fails.

## Collection steps (FortinetCollectionPlan) {#fortinet-extension-points-reference__section_collection_plan}

Lets you add a FortiManager API call to the collection run --- for example, a firmware-upgrade-status endpoint that doesn't exist in the out-of-box connector. You can also control the dependency order of collection steps and
how each response is turned into stored data.

Default implementation: `FortinetCollectionPlan`, which declares the `contracts`, `adoms`, and `devices` steps.  
Note:  
Your implementation must return all three existing steps plus any new one you add. Omitting `contracts`, `adoms`, or `devices` removes that built-in collection entirely; the connector doesn't merge your implementation with the default plan.

## CI attributes (FortinetFieldMappings) {#fortinet-extension-points-reference__section_field_mappings}

Lets you expose additional fields from the FortiManager response as CI attributes on devices, ports, organizations, network sites, and network service instances, without writing custom enrichment logic.

Default implementation: `FortinetFieldMappings`.  
Note:  
Add fields only to the `additional_attributes` list. Don't change core identity fields such as `key`, `name`, `serial_number`, `ip_address`, `class`, or `company` --- doing so can break how the connector recognizes the same CI across runs.

## Additional attributes (FortinetCustomAttributes) {#fortinet-extension-points-reference__section_custom_attributes}

Lets you compute extra `additional_attributes` in script for devices, organizations, network sites, network service instances, and ports, for logic too involved to express as a
`FortinetFieldMappings` entry. Your custom attributes are merged with the attributes the connector already computed for that entity, and win on any key conflict.

Default implementation: `FortinetDefaultCustomAttributes`, which returns no additional attributes.  
Note:  
All five methods --- `device`, `organization`, `network_site`, `network_service_instance`, and `port` --- are required. If your implementation is missing any of them, the connector skips it entirely and logs a warning naming the missing methods. Return an empty object, `{}`, from a method you don't need to customize.

## Enrichment hooks (FortinetParserHooks) {#fortinet-extension-points-reference__section_parser_hooks}

Provides hooks into the extraction pipeline that run as each raw API item is turned into a CI or import-set payload. Use these hooks for customizations that a field mapping alone can't express, such as pulling in data
collected earlier in the same run. Combined with a custom collection plan step, you can use this extension point to support an entirely new CI type.

Default implementation: `FortinetParserHooks`, which fetches each device's ports and license data before mapping, and creates network sites and service instances after.  
{#fortinet-extension-points-reference__table_parser_hooks_required__entry__2}

| Handler | Runs |
|-|-|
| `unwrapResponse` | Once per fetched API response, before any item is mapped. Normalizes the response into the array to iterate over. |
| `beforeExtract` | Once per raw item, before field mapping runs. The default implementation uses this to attach a device's ports and license data. |
| `afterExtract` | Once per item, after field mapping runs. The default implementation uses this to create network sites and service instances. |
| `postProcess` | Once per response, with the full array of items already mapped for that type. |
| `shouldStore` | Once per mapped item. Return `false` to exclude that item from the shared store entirely. |
[Table 2. Required handlers]

{#fortinet-extension-points-reference__table_parser_hooks_required}  
Note:  
All five required handlers must be present in your implementation, or the connector rejects it entirely, logs an error naming the missing handlers, and falls back to the default implementation. Start your implementation from a copy of the default's device-handling logic rather than writing it from scratch --- dropping that logic silently removes port attachment and site or service-instance creation for every device.

Three further handlers are optional, and only needed if a custom collection plan step introduces a new entity type. `getEntityTypes` registers the new type's key in the shared store. `getWriteKeyMap` controls the top-level key it's written under. `getDerivedWriteTypes` marks it as written automatically after collection finishes, for a type built entirely in
`beforeExtract`/`afterExtract` rather than fetched from its own API call.

## Firmware version string (FortinetCustomizedFirmwareVersion) {#fortinet-extension-points-reference__section_firmware_version}

Lets you change how the firmware version string stored on a device CI is built, for customers who display firmware versions differently than FortiManager's raw `os_ver`, `mr`, and
`patch` fields.

Default implementation: `FortinetDefaultFirmwareVersion`, which joins the three fields with periods (for example, <kbd class="ph userinput">7.4.11</kbd>).

## License contract parsing (FortinetCustomizedContractParsing) {#fortinet-extension-points-reference__section_contract_parsing}

Lets you change how a license contract item string is turned into a named license-expiration attribute. FortiManager returns license contract data as an opaque string (for example,
<kbd class="ph userinput">COMP-1-20-20290503:0:1:1:0</kbd>); customers with a different license format need a different parser.

Default implementation: `FortinetDefaultContractParsing`, which extracts the expiration date and service code from the standard Fortinet format.

For the steps to customize this extension point, see [Customize scripted extension points](https://servicenow-prod.fluidtopics.net/0OwxGqKIXOCv8Ei1bZPasg "Customize specific parts of the Fortinet connector's behavior by implementing scripted extension points.").

## ADOM filtering (FortinetCustomizedAdomFilter) {#fortinet-extension-points-reference__section_adom_filter}

Lets you exclude entire ADOMs from collection based on business criteria beyond the standard IP, name, device model, or organization filters. For example, you can collect only ADOMs flagged for a specific service.

Default implementation: `FortinetDefaultAdomFilter`. This implementation is included but disabled by default; every ADOM is collected.  
Note:  
This extension point fails closed, not open. If no implementation is active, all ADOMs pass through. But once an implementation is active and it throws an error, the connector collects zero ADOMs rather than falling back to collecting everything. Test any custom filter carefully before activating it.

## Life Cycle Stage Status (FortinetCustomizedLifeCycleStageStatus) {#fortinet-extension-points-reference__section_lifecycle_stage_status}

Lets you set a CI's Life Cycle Stage Status value differently per CI class --- for example, a router might default to <kbd class="ph userinput">In Use</kbd> while a decommissioned-looking interface should read
<kbd class="ph userinput">In Maintenance</kbd>.

Default implementation: returns <kbd class="ph userinput">In Use</kbd> for every CI class.  
Note:  
Unlike the other seven extension points, this one doesn't run during data collection. A business rule on `cmdb_ci` calls it when a CI record is created or updated, after the import set has already been transformed into a CI.
**Related concepts**   

* [Configure a Fortinet SD-WAN Service Graph Connector](https://servicenow-prod.fluidtopics.net/OciLlBSkYiFMvwjIVg3Dbw "Configuring the Fortinet SD-WAN Service Graph Connector (SGC) enables you to import physical inventory data from FortiManager into the Configuration Management Database (CMDB) of your ServiceNow instance.")  
**Related tasks**   

* [Customize scripted extension points](https://servicenow-prod.fluidtopics.net/0OwxGqKIXOCv8Ei1bZPasg "Customize specific parts of the Fortinet connector's behavior by implementing scripted extension points.")

