---
sourceDocument: Yokohama Platform Analytics
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/fr-FR/yokohama/now-intelligence

 Release :

    - yokohama

ft:locale :

    - fr-FR

ft:publication_title :

    - Yokohama Platform Analytics

ft:clusterId :

    - par

bundleId :

    - par

workflow :

    - Platform


---

# PADomainUtils : copyJob(Chaîne, paJob, chaîne runAs)

# PADomainUtils : copyJob(Chaîne, paJob, chaîne runAs) {#ariaid-title1}

* Rversion finale: Yokohama
* 
* Mis à jour 30 janv. 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute de lecture

Copie un enregistrement de tâche de Analyse des performances collecte de données planifiée vers un autre domaine.
{#r_PADU-copyJob_String_String__table_gvt_vky_2t__entry__3}

| Nom | Type | Description |
|-|-|-|
| paJob | Chaîne | Sys_id d'un Analyse des performances enregistrement de tâche de collecte de données planifiée \[sysauto_pa\]. |
| exécuter en tant que | Chaîne | Utilisateur dont vous souhaitez copier le domaine de la tâche. |
[Tableau 1. Paramètres]

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

| Type | Description |
|-|-|
| Chaîne | Message d'erreur si une erreur se produit, ou chaîne vide s'il n'y a pas d'erreur. |
[Tableau 2. Renvoie]

{#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');


