---
sourceDocument: Analytics der Xanadu-Plattform
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/xanadu/now-intelligence

 Release :

    - xanadu

ft:locale :

    - de-DE

ft:publication_title :

    - Analytics der Xanadu-Plattform

ft:clusterId :

    - par

bundleId :

    - par

workflow :

    - Platform


---

# PADomainUtils -- copyJob(String paJob, String runAs)

# PADomainUtils -- copyJob(String paJob, String runAs) {#ariaid-title1}

* Freigeben Version: Xanadu
* 
* Aktualisiert 1. August 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 Minute Lesedauer

Kopiert einen Performance Analytics-Datensatz einer regelmäßigen Datenerfassungsaufgabe in eine andere Domäne.
{#r_PADU-copyJob_String_String__table_gvt_vky_2t__entry__3}

| Name | Typ | Beschreibung |
|-|-|-|
| paJob | Zeichenfolge | Die sys_id eines Performance Analytics-Datensatzes einer regelmäßigen Datenerfassungsaufgabe \[sysauto_pa\]. |
| runAs | Zeichenfolge | Der Benutzer, in dessen Domäne die Aufgabe kopiert werden soll. |
[Tabelle : 1. Parameter]

{#r_PADU-copyJob_String_String__table_gvt_vky_2t} {#r_PADU-copyJob_String_String__table_hvt_vky_2t__entry__2}

| Typ | Beschreibung |
|-|-|
| Zeichenfolge | Eine Fehlermeldung, wenn ein Fehler auftritt, oder eine leere Zeichenfolge, wenn kein Fehler vorliegt. |
[Tabelle : 2. Ergebnisse]

{#r_PADU-copyJob_String_String__table_hvt_vky_2t}  

    // 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');


