|
| 1 | +--- |
| 2 | +title: ServiceNow |
| 3 | +description: Créer, lire, mettre à jour, supprimer et importer en masse des |
| 4 | + enregistrements ServiceNow |
| 5 | +--- |
| 6 | + |
| 7 | +import { BlockInfoCard } from "@/components/ui/block-info-card" |
| 8 | + |
| 9 | +<BlockInfoCard |
| 10 | + type="servicenow" |
| 11 | + color="#032D42" |
| 12 | +/> |
| 13 | + |
| 14 | +## Instructions d'utilisation |
| 15 | + |
| 16 | +Intégrez ServiceNow dans votre flux de travail. Permet de créer, lire, mettre à jour et supprimer des enregistrements dans n'importe quelle table ServiceNow (incidents, tâches, utilisateurs, etc.). Prend en charge les opérations d'importation en masse pour la migration de données et l'ETL. |
| 17 | + |
| 18 | +## Outils |
| 19 | + |
| 20 | +### `servicenow_create_record` |
| 21 | + |
| 22 | +Créer un nouvel enregistrement dans une table ServiceNow |
| 23 | + |
| 24 | +#### Entrée |
| 25 | + |
| 26 | +| Paramètre | Type | Requis | Description | |
| 27 | +| --------- | ---- | -------- | ----------- | |
| 28 | +| `instanceUrl` | string | Oui | URL de l'instance ServiceNow \(par exemple, https://instance.service-now.com\) | |
| 29 | +| `credential` | string | Non | ID d'identification OAuth ServiceNow | |
| 30 | +| `tableName` | string | Oui | Nom de la table \(par exemple, incident, task, sys_user\) | |
| 31 | +| `fields` | json | Oui | Champs à définir sur l'enregistrement \(objet JSON\) | |
| 32 | + |
| 33 | +#### Sortie |
| 34 | + |
| 35 | +| Paramètre | Type | Description | |
| 36 | +| --------- | ---- | ----------- | |
| 37 | +| `record` | json | Enregistrement ServiceNow créé avec sys_id et autres champs | |
| 38 | +| `metadata` | json | Métadonnées de l'opération | |
| 39 | + |
| 40 | +### `servicenow_read_record` |
| 41 | + |
| 42 | +Lire des enregistrements d'une table ServiceNow |
| 43 | + |
| 44 | +#### Entrée |
| 45 | + |
| 46 | +| Paramètre | Type | Requis | Description | |
| 47 | +| --------- | ---- | -------- | ----------- | |
| 48 | +| `instanceUrl` | string | Non | URL de l'instance ServiceNow \(détectée automatiquement depuis OAuth si non fournie\) | |
| 49 | +| `credential` | string | Non | ID d'identification OAuth ServiceNow | |
| 50 | +| `tableName` | string | Oui | Nom de la table | |
| 51 | +| `sysId` | string | Non | sys_id spécifique de l'enregistrement | |
| 52 | +| `number` | string | Non | Numéro d'enregistrement \(par exemple, INC0010001\) | |
| 53 | +| `query` | string | Non | Chaîne de requête encodée \(par exemple, "active=true^priority=1"\) | |
| 54 | +| `limit` | number | Non | Nombre maximum d'enregistrements à retourner | |
| 55 | +| `fields` | string | Non | Liste de champs séparés par des virgules à retourner | |
| 56 | + |
| 57 | +#### Sortie |
| 58 | + |
| 59 | +| Paramètre | Type | Description | |
| 60 | +| --------- | ---- | ----------- | |
| 61 | +| `records` | array | Tableau des enregistrements ServiceNow | |
| 62 | +| `metadata` | json | Métadonnées de l'opération | |
| 63 | + |
| 64 | +### `servicenow_update_record` |
| 65 | + |
| 66 | +Mettre à jour un enregistrement existant dans une table ServiceNow |
| 67 | + |
| 68 | +#### Entrée |
| 69 | + |
| 70 | +| Paramètre | Type | Requis | Description | |
| 71 | +| --------- | ---- | -------- | ----------- | |
| 72 | +| `instanceUrl` | string | Non | URL de l'instance ServiceNow (détectée automatiquement depuis OAuth si non fournie) | |
| 73 | +| `credential` | string | Non | ID des identifiants OAuth ServiceNow | |
| 74 | +| `tableName` | string | Oui | Nom de la table | |
| 75 | +| `sysId` | string | Oui | sys_id de l'enregistrement à mettre à jour | |
| 76 | +| `fields` | json | Oui | Champs à mettre à jour (objet JSON) | |
| 77 | + |
| 78 | +#### Sortie |
| 79 | + |
| 80 | +| Paramètre | Type | Description | |
| 81 | +| --------- | ---- | ----------- | |
| 82 | +| `record` | json | Enregistrement ServiceNow mis à jour | |
| 83 | +| `metadata` | json | Métadonnées de l'opération | |
| 84 | + |
| 85 | +### `servicenow_delete_record` |
| 86 | + |
| 87 | +Supprimer un enregistrement d'une table ServiceNow |
| 88 | + |
| 89 | +#### Entrée |
| 90 | + |
| 91 | +| Paramètre | Type | Requis | Description | |
| 92 | +| --------- | ---- | -------- | ----------- | |
| 93 | +| `instanceUrl` | string | Non | URL de l'instance ServiceNow (détectée automatiquement depuis OAuth si non fournie) | |
| 94 | +| `credential` | string | Non | ID des identifiants OAuth ServiceNow | |
| 95 | +| `tableName` | string | Oui | Nom de la table | |
| 96 | +| `sysId` | string | Oui | sys_id de l'enregistrement à supprimer | |
| 97 | + |
| 98 | +#### Sortie |
| 99 | + |
| 100 | +| Paramètre | Type | Description | |
| 101 | +| --------- | ---- | ----------- | |
| 102 | +| `success` | boolean | Indique si la suppression a réussi | |
| 103 | +| `metadata` | json | Métadonnées de l'opération | |
| 104 | + |
| 105 | +## Notes |
| 106 | + |
| 107 | +- Catégorie : `tools` |
| 108 | +- Type : `servicenow` |
0 commit comments