PADomainUtils - copyJob\(String paJob, String runAs\)
reference brazil Updated Sep 10, 2026 1 min read r_PADU-copyJob_String_String.md
Copies a Performance Analytics scheduled data collection job record to another domain.
| Name | Type | Description |
|---|---|---|
| paJob | String | Sys_id of a Performance Analytics scheduled data collection job [sysauto_pa] record. |
| runAs | String | User whose domain you want to copy the job to. |
| Type | Description |
|---|---|
| String | Error message if an error occurs, or an empty string if there is no error. |
JavaScript
// No source domain needs to be setvar pa = new SNC.PADomainUtils();// copy the '[PA Incident] Daily Data Collection job'// set the 'run as' of the new record to be the 'acme.itil' user// first argument is the sys_id of the sysauto_pa record// the second is the sys_id of the acme.itil user recordpa.copyJob('82ba2023d7101100b96d45a3ce6103cd','797d14341f1310005a3637b8ec8b7010');Parent Topic:PADomainUtils - Global
40 lines · 1.6 KB
---
title: PADomainUtils - copyJob\(String paJob, String runAs\)
description: Copies a Performance Analytics scheduled data collection job record to another domain.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/now-intelligence/performance-analytics/r\_PADU-copyJob\_String\_String.html
release: brazil
product: Performance Analytics
classification: performance-analytics
topic_type: reference
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [PADomainUtils - Global, Domain separation, Configure advanced features, Performance Analytics \(Indicator data sources\), Platform Analytics]
---
# PADomainUtils - copyJob\(String paJob, String runAs\)
Copies a Performance Analytics scheduled data collection job record to another domain.
|Name|Type|Description|
|----|----|-----------|
|paJob|String|Sys\_id of a Performance Analytics scheduled data collection job \[sysauto\_pa\] record.|
|runAs|String|User whose domain you want to copy the job to.|
|Type|Description|
|----|-----------|
|String|Error message if an error occurs, or an empty string if there is no error.|
```
// No source domain needs to be set
var pa = new SNC.PADomainUtils();
// copy the '[PA Incident] Daily Data Collection job'
// set the 'run as' of the new record to be the 'acme.itil' user
// first argument is the sys_id of the sysauto_pa record
// the second is the sys_id of the acme.itil user record
pa.copyJob('82ba2023d7101100b96d45a3ce6103cd','797d14341f1310005a3637b8ec8b7010');
```
**Parent Topic:**[PADomainUtils - Global](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/now-intelligence/performance-analytics/c_PADomainUtils.md)
| title | PADomainUtils - copyJob\(String paJob, String runAs\) |
| description | Copies a Performance Analytics scheduled data collection job record to another domain. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/now-intelligence/performance-analytics/r\_PADU-copyJob\_String\_String.html |
| release | brazil |
| product | Performance Analytics |
| classification | performance-analytics |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | PADomainUtils - GlobalDomain separationConfigure advanced featuresPerformance Analytics \(Indicator data sources\)Platform Analytics |