Generate API invocation code for an exporter
task australia Updated Sep 10, 2026 1 min read cdm-exporter-gen-api-code.md
Generate sample code of an API invocation for an exporter. The code can invoke the exporter. Select from several commonly used languages.
Before you begin
Important: DevOps Config is now deprecated and no longer supported or available for new activation.
Role required: cdm_exporter_editor or cdm_editor or cdm_admin
Procedure
-
Prepare an exporter for execution as described in Test an exporter and export a snapshot.
Tip: Test the exporter to verify its operation.
-
In the Evaluate menu, select Generate sample API.
The Exporter API invocation sample dialog box opens.
-
Select the language.
The system applies the settings that you specify and displays the resulting API sample in the text box.
-
Select Copy to clipboard.
You can now paste the code into an editor for use in your code.
44 lines · 1.6 KB
---
title: Generate API invocation code for an exporter
description: Generate sample code of an API invocation for an exporter. The code can invoke the exporter. Select from several commonly used languages.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/it-service-management/devops-family/cdm-exporter-gen-api-code.html
release: australia
product: DevOps \(Family\)
classification: devops-family
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Export a snapshot, Using DevOps Config, DevOps Config, IT Service Management]
---
# Generate API invocation code for an exporter
Generate sample code of an API invocation for an exporter. The code can invoke the exporter. Select from several commonly used languages.
## Before you begin
**Important:** DevOps Config is now deprecated and no longer supported or available for new activation.
Role required: cdm\_exporter\_editor or cdm\_editor or cdm\_admin
## Procedure
1. Prepare an exporter for execution as described in [Test an exporter and export a snapshot](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-service-management/devops-family/cdm-exporter-update-n-test.md).
**Tip:** Test the exporter to verify its operation.
2. In the **Evaluate** menu, select **Generate sample API**.
The Exporter API invocation sample dialog box opens.
3. Select the language.
The system applies the settings that you specify and displays the resulting API sample in the text box.
4. Select **Copy to clipboard**.
You can now paste the code into an editor for use in your code.
| title | Generate API invocation code for an exporter |
| description | Generate sample code of an API invocation for an exporter. The code can invoke the exporter. Select from several commonly used languages. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/it-service-management/devops-family/cdm-exporter-gen-api-code.html |
| release | australia |
| product | DevOps \(Family\) |
| classification | devops-family |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Export a snapshotUsing DevOps ConfigDevOps ConfigIT Service Management |