- Vue d'ensemble (Overview)
- Excel
- Notes de publication
- À propos du package d'activités Excel
- Compatibilité du Projet
- Codage de caractères pris en charge
- Paramètres du projet
- Ajouter ou mettre à jour le libellé de confidentialité Excel (Add or Update Excel Sensitivity Label)
- Ajouter la plage (Append Range)
- Auto Fill
- Plage d’ajustement automatique
- Change Pivot Data Source
- Clear Sheet/Range/Table
- Copy/Paste Range
- Create Pivot Table
- Supprimer la colonne (Delete Column)
- Delete Rows
- Supprimer la feuille
- Duplicate Sheet
- Export to CSV
- Fill Range
- Filtrer (Filter)
- Filter Pivot Table
- Find First/Last Data Row
- Valeur Rechercher/Remplacer
- For Each Excel Row
- For Each Excel Sheet
- Formater en tant que table
- Format Cells
- Get Cell Color
- Obtenir un graphique Excel
- Obtenir le libellé de confidentialité Excel (Get Excel Sensitivity Label)
- Get Selected Range
- Insérer la colonne (Insert Column)
- Insert Chart
- Insert Rows
- Insert Sheet
- Appeler VBA (Invoke VBA)
- Recherche
- Match function
- Protect Sheet
- Lire la formule de cellule (Read Cell Formula)
- Read Cell Value
- Lire la plage (Read Range)
- Actualiser les données de connexion Excel
- Refresh Pivot Table
- Supprimer les doublons
- Rename Sheet
- Run Spreadsheet Macro
- Save Excel File
- Save Excel File As
- Save Excel File As PDF
- Sélectionner la plage (Select Range)
- Sort Range
- Text to Columns
- Unprotect Sheet
- Mettre à jour un graphique Excel
- Utiliser le fichier Excel
- VLookup
- Écrire la cellule (Write Cell)
- Écrire un fichier CSV (Write CSV)
- Écrire un objet DataTable dans Excel
- Étendue d'application Excel (Excel Application Scope)
- Ajouter au fichier CSV (Append To CSV)
- Lire un fichier CSV (Read CSV)
- Écrire un fichier CSV (Write CSV)
- Supprimer la colonne (Delete Column)
- Filtrer la table (Filter Table)
- Obtenir la plage de tables (Get Table Range)
- Insérer la colonne (Insert Column)
- Trier la table (Sort Table)
- Ajouter la plage (Append Range)
- Fermer le classeur (Close Workbook)
- Get Cell Color
- Lire la cellule (Read Cell)
- Lire la formule de cellule (Read Cell Formula)
- Lire la colonne (Read Column)
- Lire la plage (Read Range)
- Lire la ligne (Read Row)
- Sélectionner la plage (Select Range)
- Définir la couleur de plage (Set Range Color)
- Écrire la cellule (Write Cell)
- Écrire la plage (Write Range)
- Enregistrer le classeur (Save Workbook)
- Create Table
- Get Workbook Sheet
- Get Workbook Sheets
- Refresh Pivot Table
- Create Pivot Table
- Get Selected Range
- Copy Sheet
- Delete Range
- Auto Fill Range
- Copy Paste Range
- Exécuter la macro (Execute Macro)
- Insert/Delete Columns
- Insert/Delete Rows
- Appeler VBA (Invoke VBA)
- LookUp Range
- Remove Duplicates Range
- Excel Process Scope
- Gérer les fichiers CSV
- Filtrer les fichiers CSV
- Vérifier les fichiers CSV
- Fonctiones de table
- Gérer plusieurs fichiers Excel
- Interpréter les résultats Excel
- Gérer les tableaux croisés dynamiques
- Gérer la sélection de la plage
- Lire à partir de fichiers Excel
- Gérer les bases de données dans Excel
- Comparer des fichiers CSV
- Comparer des valeurs numériques
- Trier les données dans les fichiers Excel
- Filtrer et supprimer des lignes dans les fichiers Excel
- Manipuler les sélections de plage
- Vérifier les données du classeur Excel
- Lire, écrire et ajouter des données dans Excel
- Google Workspace
- Notes de publication
- À propos du package d'activités Google Workspace
- Compatibilité du projet
- Demande HTTP (HTTP Request)
- Copier le fichier (Copy File)
- Get File List
- Créer un dossier (Create Folder)
- Delete File/Folder
- Télécharger le fichier
- For Each File/Folder
- Get File/Folder
- Déplacer le fichier (Move File)
- Share File/Folder
- Upload Files
- Apply File Labels
- Remove File Labels
- Obtenir les libellés de fichier (Get File Labels)
- Effacer les champs de libellé du fichier (Clear File Label Fields)
- Obtenir les libellés du Drive (Get Drive Labels)
- Archiver un e-mail
- Supprimer un e-mail
- Download Email
- Download Email Attachments
- Get Email List
- Pour chaque e-mail
- Transférer un e-mail
- Get Email By Id
- Get Newest Email
- Marquer un e-mail comme lu/non-lu
- Move Email
- Répondre à un e-mail
- Envoyer un e-mail
- Appliquer des libellés Gmail (Apply Gmail Labels)
- Supprimer les libellés Gmail (Remove Gmail Labels)
- Activer les réponses automatiques (Turn On Automatic Replies)
- Désactiver les réponses automatiques (Turn Off Automatic Replies)
- Add Sheet
- Create Spreadsheet
- Pour chaque feuille dans Feuille de calcul (Spreadsheet)
- Pour chaque ligne de la feuille de calcul
- Rename Sheet
- Supprimer la feuille
- Lire la cellule (Read Cell)
- Écrire la cellule (Write Cell)
- Lire la plage (Read Range)
- Écrire la plage (Write Range)
- Delete Range
- Ligne d'écriture (Write Row)
- Write Column
- Delete Rows
- Supprimer la colonne (Delete Column)
- Événement de calendrier créé
- Événement de calendrier reçu
- Événement du calendrier (Calendar Event) mis à jour
- Réponse à l'événement de calendrier
- Fichier créé
- Dossier créé
- Fichier mis à jour
- E-mail reçu
- E-mail envoyé
- Feuille créée (Sheet Created)
- Cellule de la feuille mise à jour (Cell in Sheet Updated)
- Ligne ajoutée en bas d'une feuille (Row Added to the Bottom of a Sheet)
- Tâche créée
- Tâche terminée
- Connexions
- Add Sheet
- AjouterFeuilleCalcul
- Supprimer la colonne (Delete Column)
- Delete Range
- Delete Rows
- Supprimer la feuille
- GetNamedRanges
- Get Ranges
- Récupérer des feuilles (Get Sheets)
- ObtenirFeuillesCalcul
- Lire la cellule (Read Cell)
- Lire la plage (Read Range)
- Rename Sheet
- Écrire la cellule (Write Cell)
- Write Column
- Écrire la plage (Write Range)
- Ligne d'écriture (Write Row)
- Options
- Apply File Labels
- Effacer les champs de libellé du fichier (Clear File Label Fields)
- Copy File
- Créer un dossier (Create Folder)
- Supprimer l'élément
- Télécharger le fichier
- Obtenir les libellés du Drive (Get Drive Labels)
- Get File
- Obtenir les libellés de fichier (Get File Labels)
- Get Files
- GetFilesandFolders
- Get Folder
- Obtenir les dossiers
- Obtenir un élément
- Move File
- Move Folder
- RefreshFile
- ActualiserDossier
- RefreshItem
- Remove File Labels
- Share File
- Partager le dossier
- Upload File
- Upload Files
- Options
- Appliquer les libellés
- Archiver un e-mail
- Supprimer un e-mail
- Download Email
- Télécharger la pièce jointe d'e-mail
- Download Email Attachments
- Transférer un e-mail
- Get Email
- Obtenir les infos des pièces jointes de l'e-mail
- Get Emails
- Get Mail Labels
- Get Newest Email
- Mark Email As Read
- MarquerEmailCommeNonLu
- Move Email
- Supprimer les libellés
- Reply To Email
- Envoyer un e-mail
- Désactiver les réponses automatiques (Turn Off Automatic Replies)
- Activer les réponses automatiques (Turn On Automatic Replies)
- Options
- Add Attendee
- Créer un événement
- Supprimer l'événement
- Modify Event
- Search Events
- Use Google Drive
- Share File
- Delete File Permission
- Get File Permissions
- Update File Permission
- Copier le fichier (Copy File)
- Créer un dossier (Create Folder)
- Delete File
- Télécharger le fichier
- Rechercher des fichiers et des dossiers (Find Files and Folders)
- Obtenir des informations sur les fichiers
- Déplacer le fichier (Move File)
- Télécharger le fichier
- Create Document
- Create New Spreadsheet
- Récupérer les messages électroniques (Get Mail Messages)
- Envoyer des messages électroniques
- Modifier les libellés
- Use Google Spreadsheet
- Add Delete Columns
- Add Delete Rows
- Auto Fill Range
- Ajouter une feuille (Add New Sheet)
- Append Row
- Batch Spreadsheet Updates
- Copy Sheet
- Copy Paste Range
- Delete Range
- Supprimer la feuille
- Get Cell Color
- Récupérer des feuilles (Get Sheets)
- Lire la cellule (Read Cell)
- Lire la colonne (Read Column)
- Lire la plage (Read Range)
- Lire la ligne (Read Row)
- Rename Sheet
- Écrire la cellule (Write Cell)
- Écrire la plage (Write Range)
- Clear Range
- Download Spreadsheet
- Use Google Document
- Batch Document Updates
- Get Document
- Get Text Index
- Insert Text
- Remplacer le texte (Replace Text)
- Read All Text
- Create Script Project
- Get Project Content
- Upload Script File
- Create Deployment
- Run Script
- Courrier (Mail)
- Notes de publication
- Compatibilité du Projet
- Étendue Exchange (Exchange Scope)
- Supprimer le message électronique Exchange (Delete Exchange Mail Message)
- Obtenir les messages électroniques Exchange (Get Exchange Mail Messages)
- Déplacer le message électronique Exchange (Move Exchange Mail Message)
- Envoyer le message électronique Exchange (Send Exchange Mail Message)
- Microsoft 365
- Notes de publication
- About the Microsoft 365 activity package
- How to connect to Microsoft 365 activities
- Compatibilité du projet
- Demande HTTP (HTTP Request)
- Create Workbook
- Add Sheet
- Supprimer la feuille
- Lire la cellule (Read Cell)
- Écrire la cellule (Write Cell)
- Lire la plage (Read Range)
- Écrire la plage (Write Range)
- Delete Range
- Rename Sheet
- Pour chaque ligne du classeur
- Ligne d'écriture (Write Row)
- Pour chaque feuille dans Classeur (Workbook)
- Write Column
- Delete Rows
- Supprimer la colonne (Delete Column)
- Supprimer un e-mail
- Archiver un e-mail
- Get Email List
- Download Email
- Download Email Attachments
- Pour chaque e-mail
- Transférer un e-mail
- Get Email By ID
- Get Newest Email
- Mark Email as Read/Unread
- Move Email
- Répondre à un e-mail
- Envoyer un e-mail
- Set Email Categories
- Activer les réponses automatiques (Turn On Automatic Replies)
- Désactiver les réponses automatiques (Turn Off Automatic Replies)
- Fichier créé
- Fichier mis à jour
- E-mail reçu
- E-mail envoyé
- Événement de calendrier créé
- Événement de calendrier reçu
- Réponse à l'événement de calendrier
- Événement du calendrier (Calendar Event) mis à jour
- List Item Added
- List Item Updated
- Cellule de la feuille de calcul mise à jour (Cell in Worksheet Updated)
- Feuille de calcul créée
- Ligne ajoutée en bas d'une table
- Connexions
- Add Sheet
- AjouterClasseur
- Supprimer la colonne (Delete Column)
- Delete Range
- Delete Rows
- Supprimer la feuille
- GetNamedRanges
- Get Ranges
- Récupérer des feuilles (Get Sheets)
- ObtenirClasseurs
- Lire la cellule (Read Cell)
- Lire la plage (Read Range)
- Rename Sheet
- Écrire la cellule (Write Cell)
- Write Column
- Écrire la plage (Write Range)
- Ligne d'écriture (Write Row)
- AjouterCatégoriesE-mail
- Archiver un e-mail
- Supprimer un e-mail
- Download Email
- Télécharger la pièce jointe d'e-mail
- Download Email Attachments
- Transférer un e-mail
- Get Email
- Obtenir les infos des pièces jointes de l'e-mail
- Get Emails
- ObtenirDossiersE-mail
- Get Newest Email
- Mark Email As Read
- MarquerEmailCommeNonLu
- Move Email
- SupprimerCatégoriesE-mail
- Reply To Email
- Envoyer un e-mail
- Désactiver les réponses automatiques (Turn Off Automatic Replies)
- Activer les réponses automatiques (Turn On Automatic Replies)
- Fusionner plusieurs feuilles dans une nouvelle feuille Excel récapitulative
- Accepter automatiquement les invitations d'agenda de votre gestionnaire
- Déplacer les fichiers vers des dossiers dédiés par type
- Vérifier si les nouveaux documents d'emploi (I9 et ID) correspondent
- Ajouter de nouveaux clients à une liste SharePoint
- Supprimer les éléments de la liste SharePoint plus récents qu'hier
- M'avertir sur Slack lorsqu'un e-mail Outlook important est reçu
- Inclure la date de création dans les nouveaux noms de fichiers OneDrive
- M'avertir par e-mail lorsqu'un nouveau fichier est créé
- Microsoft Office 365 Scope
- Add Sheet
- Ajouter la plage (Append Range)
- Clear Range
- Copy Range
- Copy Sheet
- Create Workbook
- Delete Range
- Supprimer la feuille
- Get Cell Color
- Récupérer des feuilles (Get Sheets)
- Lire la cellule (Read Cell)
- Lire la colonne (Read Column)
- Lire la plage (Read Range)
- Lire la ligne (Read Row)
- Rename Sheet
- Écrire la cellule (Write Cell)
- Écrire la plage (Write Range)
- Définir la couleur de plage (Set Range Color)
- Create Table
- Obtenir la plage de tables (Get Table Range)
- Insérer la colonne (Insert Column)
- Supprimer la colonne (Delete Column)
- Insert Rows
- Delete Rows
- VLookup Range
- Use OneDrive & SharePoint
- Copy File/Folder
- Créer un dossier (Create Folder)
- Delete File/Folder
- Télécharger le fichier
- Export File as PDF
- Find Files And Folders
- Get File/Folder
- Move File/Folder
- Télécharger le fichier
- Partager un fichier/dossier
- For Each File/Folder
- Forward Mail
- Get Mail
- Move Mail
- Send Mail
- Reply to Mail
- Supprimer l'e-mail
- Définir les catégories d’e-mail
- Add Attachment
- Add Attendee
- Ajouter un emplacement
- Créer un événement
- Supprimer l'événement
- Find Meeting Times
- Get Calendars
- Modify Event
- RSVP
- Search Events
- Create Group
- Supprimer le groupe
- Get Group
- List Groups
- Create Bucket
- Delete Bucket
- List Buckets
- List Bucket Tasks
- Create Plan
- Get Plan
- List Plans
- Create Task
- Delete Task
- Get Task
- List Tasks
- Update Task
- For Each List
- Get List Info
- For Each List Item
- Delete List Item
- Add List Items
- Update List Item
- Get List Items
- Présentation
- Notes de publication
- À propos du package d’activités Presentations
- Compatibilité du Projet
- Ajouter ou mettre à jour le libellé de confidentialité PowerPoint (Add or Update PowerPoint Sensitivity Label)
- Add Data Table to Slide
- Add File to Slide
- Ajouter une image ou une vidéo à la diapositive
- Add New Slide
- Add Text to Slide
- Copy Paste Slide
- Delete Slide
- Formater le contenu de la diapositive
- Obtenir le libellé de confidentialité PowerPoint (Get PowerPoint Sensitivity Label)
- Replace Text in Presentation
- Coller un élément dans une diapositive
- Run Presentation Macro
- Save PowerPoint File As
- Save Presentation as PDF
- Utiliser une présentation PowerPoint
- Word
- Notes de publication
- À propos du package d'activités Word
- Compatibilité du Projet
- Fonctionnalités de l'application Word/Utiliser un fichier Word
- Ajouter ou mettre à jour le libellé de confidentialité Word (Add or Update Word Sensitivity Label)
- Add Hyperlink to Document
- Add Picture
- Ajouter un texte (Append Text)
- Obtenir le libellé de confidentialité Word (Get Word Sensitivity Label)
- Insert DataTable in Document
- Paste Chart/Picture into Document
- Lire le texte (Read Text)
- Replace Picture
- Replace Text in Document
- Save Document As
- Save Document as PDF
- Définir le contenu du signet (Set Bookmark Content)
How to connect to Microsoft 365 activities
Microsoft 365 activities have different authentication flows that you can choose from. Your choice is dependent on: the type of automation mode you plan to run (attended or unattended), the type of projects you want to build (cross-platform or Windows), the type of permissions you want to grant (delegated or app-only), and your application authentication requirements (consult with your administrator if you're unsure which authentication requirements apply to your application).
Microsoft Authentication flow | Microsoft 365 Scope - Authentication type | Connexion Integration Service | Robot type - Attended | Robot type - Unattended | API permission type |
---|---|---|---|---|---|
OAuth 2.0 authorization code flow |
Interactive Token - public app | Code d'autorisation OAuth 2.0 |
Autorisations déléguées | ||
Interactive Token - BYOA | Apportez votre propre application OAuth 2.0 | Autorisations déléguées | |||
Integrated Windows authentication (IWA) | S/O |
Autorisations déléguées | |||
UsernameAndPassword | S/O |
Autorisations déléguées | |||
OAuth 2.0 client credentials flow | Application ID and secret | S/O |
Autorisations de l'application | ||
S/O |
Autorisations de l'application |
To understand the differences between delegated and application permissions, see the Microsoft official documentation: Comparison of delegated and application permissions.
Briefly, the differences are as follows:
- With delegated permissions, the application impersonates a user and acts on the user's behalf. The application can access only what the signed-in user can access.
- With application permissions, the application acts on its own, without a signed-in user. The application can access any data that its permissions are associated with.
For both delegated and application permissions, you can restrict what the application can and can't access using the scopes defined when you create the app. Refer to Scopes and permissions in the Microsoft documentation.
Both Microsoft 365 Scope and Integration Service connections support single tenant applications and multitenant applications. To learn the difference between the two, refer to Who can sign in to you app? in the Microsoft official documentation.
Both Microsoft 365 Scope and Integration Service connections support multiple Azure environments:
- Connections through the Scope activity support: Azure, Azure Global, China, Germany or US Government. The default value is Global.
- Connections through Integration Service support: Default, US Government L4, US Government L5, and China.
Integration Service connectors use OAuth 2.0 authorization code flow with delegated permissions.
The Microsoft 365 modern activities and triggers establish an authenticated connection to the Integration Service Microsoft OneDrive & SharePoint and the Microsoft Outlook 365 connectors. To learn more about Integration Service connections, refer to Set up Integration Service connectors.
When you connect to the Microsoft connectors in Integration Service, you have the option to use the standard UiPath public application (with a set of default, non-configurable scopes) or create your own application with Microsoft and customize the scopes you need.
The Microsoft 365 Classic activities establish an authenticated connection to your Microsoft 365 applications via the Microsoft 365 Scope activity.
The activities need authorization from the Microsoft identity platform. To enable authorization, you first register your Microsoft 365 application in your Azure Active Directory. When registering your application, you assign Microsoft Graph API permissions to specify the resources your Robot can access on your behalf.
After registering your Microsoft 365 application, Azure Active Directory assigns a unique application (client) ID that you enter in the Microsoft 365 Scope activity. The Application ID is used to collect the necessary information about your registered app to initiate authentication and get the access token to establish the connection.
When you add an activity to Microsoft 365 Scope, its required scopes are automatically detected. You can also choose to allow additional scopes.
- Runs: as a user.
- Scenario: attended automation.
- Delegated permissions.
- When registering your application, you must select an application type. For interactive token authentication, use a mobile/desktop application (which uses OAuth 2.0 authorization code flow).
- Le type d'authentification par jeton interactif peut être utilisé dans le cadre de l'automatisation assistée et lorsque l'authentification multifacteur (MFA) est requise. C'est l'option par défaut et ce que nous utilisons dans nos exemples. Si vous souhaitez essayer le package d'activités, cette option est facile à configurer et fonctionne bien pour les comptes personnels (en utilisant l'URI de redirection par défaut notée à l'étape 7 de la section Enregistrer votre application du guide de configuration ).
- You have the option to register and use your own Azure app (i.e., OAuthApplication = Custom) or the one provided by UiPath (OAuthApplication = UiPath).
- When you run the Microsoft 365 activity for the first time using this authentication type, you are prompted to authorize access to the resources (you granted permissions to when registering your app) via a consent dialogue box. See Get access on behalf of a user.
- If you select this authentication type in Microsoft 365 Scope, leave the Username, Password, and Tenant fields empty.
- Runs: as a user.
- Scenario: unattended automation.
- Delegated permissions.
- Le type d'authentification par authentification Windows intégrée peut être utilisé pour l'automatisation non assistée. Cette option peut s'appliquer aux applications hébergées Windows s'exécutant sur des ordinateurs connectés à un domaine Windows ou à Azure Active Directory.
- When registering your application, you must select an application type. For IWA authentication type, you must use a mobile/desktop application (which uses OAuth 2.0 authorization code flow).
- Works only for federated users and if your registered Azure application is configured to support IWA. Doesn't work for multi-factor authentication (MFA). See details here: IWA on GitHub.
- You should only select this option if your registered application is configured to support Integrated Windows Authentication.
- If you select this authentication type in Microsoft 365 Scope, leave the Username and Password fields empty. The Tenant field is optional.
- Runs: as a user.
- Scenario: unttended automation.
- Delegated permissions.
- This authentication type is provided only for legacy reasons. We do not recommend using this option, as it goes against the principles of modern authentication. It doesn't work for multi-factor authentication (MFA). See details here: User & Password on GitHub.
- Bien que Microsoft ne le recommande pas, vous pouvez utiliser ce type d'authentification dans les applications clientes publiques. L'utilisation de ce type d'authentification impose des contraintes à votre application. Par exemple, les applications utilisant ce flux ne pourront pas se connecter à un utilisateur qui doit effectuer une authentification multifacteur (accès conditionnel). Cela ne permettra pas non plus à votre application de bénéficier de l’authentification unique.
- The ApplicationID property is required when selecting the Username and Password authentication type. You can register your Microsoft 365 Application using your personal, work, and/or school account.
- Runs: as background service.
- Scenario: unattended and unattended with MFA enabled.
- Application permissions.
- Recommended for unattended executions or when you want to access the Microsoft Graph API as an application (a background service / daemon) without a signed-in user.
-
When registering your application, you must select an application type. For application ID and secret authentication type, use a confidential/web application (which uses OAuth 2.0 client credentials flow).
-
Les autorisations d'API appropriées doivent être configurées pour l'application Azure afin que les activités Microsoft 365 fonctionnent correctement (par exemple, les autorisations d'application
Group.Create
,Group.Read.All
etGroup.ReadWrite.All
doivent être configurées pour Microsoft Graph lors de l'utilisation des activités Groupes). -
A single organization can have multiple application (client) IDs for their Microsoft 365 account. Each application (client) ID contains its own permissions and authentication requirements. For example, you and your colleague can both register a Microsoft 365 application in your company's Azure Active Directory with different permissions. Your app can be configured to authorize permissions to interact with files only, while your colleague's app is configured to authorize permissions to interact with files, mail, and calendar. If you enter your application (client) ID into this property and run attended automation, the consent dialogue box would be limited to file permissions (and subsequently, only the Files activities can be used).
- Some activities can't be used with this type of authentication because the corresponding Microsoft Graph API does not support application permissions (e.g. Find Meeting Times).
-
Pour les activités de messagerie, il est obligatoire de spécifier une valeur pour le paramètre Account (c'est-à-dire quelle boîte aux lettres de toutes les boîtes aux lettres du locataire souhaitez-vous utiliser).
-
Use
Sites.Selected
application permission to allow the application to access just the specific SharePoint site collections rather than all. -
When using this authentication type, the application has access to all mailboxes from your tenant, the reason being that application API permission
Mail.Read
means Read mail in all mailboxes andMail.ReadWrite
means Read and write mail in all mailboxes. One solution is to restrict Application permissions to specific mailboxes, so the application has access only to the specified mailboxes. For more information, see Scoping application permissions to specific Exchange Online mailboxes.
- Runs: as background service.
- Scenario: unattended and unattended with MFA enabled.
- Application permissions.
- When registering your application, you must select an application type. For application ID and certificate authentication type, use a confidential/web application (which uses OAuth 2.0 client credentials flow).
- This authentication mtehod is similar to application ID and secret, but it uses a certificate as a secret instead of a client secret string.
To authenticate using a certificate as a secret, take the following steps:
-
In the the Azure portal:
- Localisez votre application Microsoft 365 enregistrée.
-
Sélectionnez Certificats et secrets (Certificates & secrets ) et téléchargez votre fichier de certificat (clé publique). Il peut avoir l'un des types de fichiers suivants :
.cer
,.pem
,.crt
.
- Convert the raw contents of your
.pfx
file representing the certificate to abase64 string
. You can use a web-based tool like Base64.Guru or assign theConvert.ToBase64String(System.IO.File.ReadAllBytes(pfxFilePath))
value to aString
variable. - In the Microsoft 365 Scope activity:
- Set Authentication Type to Application ID and Certificate.
- Définissez CertificateAsBase64 sur la représentation base64 du certificat.
- Si un mot de passe est requis pour utiliser le certificat, définissez également la valeur de la propriété Mot de passe du certificat ( Certificate Password ).
Vous pouvez désormais utiliser les nouvelles activités Microsoft 365 même si vous n'avez pas Integration Service, via les fonctionnalités Microsoft 365.
The Microsoft 365 activities designed specifically for Integration Service feature a Connection field, which enables you to choose a connection created through an Integration Service connector. When used inside Microsoft 365 Scope, the activities simply inherit the connection information from the Scope.
Microsoft 365 | ||||
---|---|---|---|---|
Cloud | Version locale | |||
Étendue de l'application Microsoft Office 365 | Integration Service | Étendue de l'application Microsoft Office 365 | Integration Service | |
Multiplateforme | ||||
ID d’application et Certificat | ||||
ID et clé secrète de l’application | ||||
OAuth – BYOA | ||||
OAuth – application UiPath | ||||
Nom d’utilisateur et mot de passe | ||||
IntegratedWindowsAuthentication | ||||
Windows | ||||
ID d’application et Certificat | ||||
ID et clé secrète de l’application | ||||
OAuth – BYOA | ||||
OAuth – application UiPath | ||||
Nom d’utilisateur et mot de passe | ||||
IntegratedWindowsAuthentication |
Il existe deux façons de configurer une connexion dans l’activité Étendue Microsoft 365 ( Microsoft 365 Scope ).
Méthode de connexion | Description | Bénéfices | Inconvénients | |
---|---|---|---|---|
Ressource Remarque : Recommandé.
|
Utilise une ressource Orchestrator pour stocker la connexion avec la configuration de l'étendue. La ressource est au format JSON. Chaque fois qu'elle est utilisée, l'activité récupère la configuration de la ressource. En fonction de la configuration des ressources, l'activité Scope se comporte différemment ; il identifie le type d'authentification et masque les champs inutiles. Si la ressource JSON n’est pas correctement définie, une erreur de validation s’affiche. |
Les activités bénéficient des recherches au moment de la conception et peuvent découvrir des fichiers, des dossiers, des listes, des plages et d'autres. La connexion est facilement transférable, car les informations d'identification ne sont pas transmises d'un utilisateur à un autre en texte brut. Peut être configuré par un administrateur. C'est plus sécurisé, car les informations d'identification n'atteignent pas le workflow Studio. |
Nécessite qu'un utilisateur avancé configure la ressource. Pas facile à mettre en place par un Citizen Developer. | |
Panneau propriétés |
Utiliser le panneau Propriétés (Properties) existant pour configurer les identifiants de connexion. La configuration peut être ajoutée en texte brut ou via des variables. |
Plus facile à utiliser. Assure la rétrocompatibilité. | ||
Configuration en texte brut
Remarque : Non recommandé.
| Configurez le panneau Propriétés (Properties) avec des valeurs en texte brut. | Les activités bénéficient des recherches au moment de la conception et peuvent découvrir des fichiers, des dossiers, des listes, des plages et d'autres. | Moins sécurisé, car les informations d'identification doivent être transmises entre les utilisateurs en texte brut. | |
Configuration via des variables |
Configurez le panneau Propriétés avec des variables. |
Plus sécurisé, car les informations d'identification n'atteignent pas le workflow Studio. | Les activités ne peuvent découvrir aucune ressource au moment de la conception. |
{
"CertificateAsBase64": "",
"CertificatePassword": "",
"ClientSecret": "",
"Environment": "Default" | "Global" | "China" | "Germany" | "USGovernment" | "USGovernmentDOD",
"Mode": "interactive" | "integrated" | "uap" | "appidsecret" | "appidcertificate",
"OAuth2AppData": {
"ApplicationId": "",
"TenantId": ""
}
}
{
"CertificateAsBase64": "",
"CertificatePassword": "",
"ClientSecret": "",
"Environment": "Default" | "Global" | "China" | "Germany" | "USGovernment" | "USGovernmentDOD",
"Mode": "interactive" | "integrated" | "uap" | "appidsecret" | "appidcertificate",
"OAuth2AppData": {
"ApplicationId": "",
"TenantId": ""
}
}
{
"CertificateAsBase64": "",
"CertificatePassword": "",
"ClientSecret": "",
"Environment": "Default",
"Mode": "interactive" | "integrated" | "uap" | "appidsecret" | "appidcertificate",
"OAuth2AppData": {
"ApplicationId": "f2f43f65-16a6-4319-91b6-d2a342a88744",
"TenantId": ""
}
}
{
"CertificateAsBase64": "",
"CertificatePassword": "",
"ClientSecret": "",
"Environment": "Default",
"Mode": "interactive" | "integrated" | "uap" | "appidsecret" | "appidcertificate",
"OAuth2AppData": {
"ApplicationId": "f2f43f65-16a6-4319-91b6-d2a342a88744",
"TenantId": ""
}
}
{
"CertificateAsBase64": "",
"CertificatePassword": "",
"ClientSecret": "",
"Environment": "Default",
"Mode": "interactive" | "integrated" | "uap" | "appidsecret" | "appidcertificate",
"OAuth2AppData": {
"ApplicationId": "d47f7253-65ae-58n5-ag04-26109734e6de",
"TenantId": "3ce4ef03-chb1-871f-94b0-345136965f10"
}
}
{
"CertificateAsBase64": "",
"CertificatePassword": "",
"ClientSecret": "",
"Environment": "Default",
"Mode": "interactive" | "integrated" | "uap" | "appidsecret" | "appidcertificate",
"OAuth2AppData": {
"ApplicationId": "d47f7253-65ae-58n5-ag04-26109734e6de",
"TenantId": "3ce4ef03-chb1-871f-94b0-345136965f10"
}
}
Les fonctionnalités suivantes ne sont pas disponibles lors de l’utilisation d’activités à l’intérieur de Microsoft 365 Scope: déclencheurs, liaisons et expérience de remplacement.
Actualisation du jeton
Aucun service n'est disponible pour actualiser vos jetons de connexion, comme celui disponible dans Integration Service.
If the Authorization Token isn't refreshed for a certain number of days, it expires, and you must re-authenticate. To avoid the expiration of authorization tokens, run a robot with that specific connection. Running an automation with the Scope activity refreshes the authorization token.
- Avec le flux d'approbation de l'administrateur : Flux d'informations d'identification du client OAuth 2.0 sur la plate-forme d'identités Microsoft
- Sans flux d'approbation d'administrateur : Plateforme d'identités Microsoft et flux de code d'autorisation OAuth 2.0 - Plateforme d'identités Microsoft
- Vue d'ensemble (Overview)
- Delegated permissions versus application permissions
- Multitenant versus single-tenant applications
- Azure environments
- Integration Service connections
- Microsoft 365 Scope connections
- Jeton interactif
- Vue d'ensemble (Overview)
- Détails (Details)
- IntegratedWindowsAuthentication
- Vue d'ensemble (Overview)
- Détails (Details)
- UsernameAndPassword
- Résumé
- Détails (Details)
- ID d’application et Clé secrète
- Résumé
- Détails (Details)
- IDApplication et Certificat
- Résumé
- Détails (Details)
- Using certificates
- How to use Microsoft 365 activities without Integration Service connections
- À propos
- Authentication and projects types matrix
- Méthodes de connexion
- Microsoft 365 Scope asset format
- Limitations