- Visão geral
- Excel
- Notas de Versão
- Sobre o pacote de atividades Excel
- Compatibilidade do Projeto
- Codificação de caracteres suportada
- Configurações do projeto
- Add or Update Excel Sensitivity Label
- Append Range
- Auto Fill
- Autofit Range
- Change Pivot Data Source
- Clear Sheet/Range/Table
- Copy/Paste Range
- Create Pivot Table
- Delete Column
- Delete Rows
- Excluir Planilha
- Duplicate Sheet
- Export to CSV
- Fill Range
- Filtro
- Filter Pivot Table
- Find First/Last Data Row
- Find/Replace Value
- For Each Excel Row
- For Each Excel Sheet
- Format As Table
- Formatar células
- Get Cell Color
- Get Excel Chart
- Get Excel Sensitivity Label
- Get Selected Range
- Insert Column
- Insert Chart
- Insert Rows
- Insert Sheet
- Invoke VBA
- Busca
- Match function
- Proteger Planilha
- Read Cell Formula
- Read Cell Value
- Read Range
- Refresh Excel Data Connections
- Refresh Pivot Table
- Remove Duplicates
- Renomear Folha
- Run Spreadsheet Macro
- Save Excel File
- Save Excel File As
- Save Excel File As PDF
- Select Range
- Sort Range
- Text To Columns
- Unprotect Sheet
- Update Excel Chart
- Use Excel File
- VLookup
- Write Cell
- Write CSV
- Gravar DataTable no Excel
- Excel Application Scope
- Anexar a CSV
- Read CSV
- Write CSV
- Delete Column
- Filter Table
- Get Table Range
- Insert Column
- Sort Table
- Append Range
- Close Workbook
- Get Cell Color
- Ler Célula
- Read Cell Formula
- Read Column
- Read Range
- Read Row
- Select Range
- Set Range Color
- Write Cell
- Write Range
- Save Workbook
- Create Table
- Get Workbook Sheet
- Get Workbook Sheets
- Refresh Pivot Table
- Create Pivot Table
- Get Selected Range
- Copiar Planilha
- Delete Range
- Auto Fill Range
- Copy Paste Range
- Execute Macro
- Insert/Delete Columns
- Insert/Delete Rows
- Invoke VBA
- LookUp Range
- Remove Duplicates Range
- Excel Process Scope
- Gerenciar arquivos CSV
- Filtrar arquivos CSV
- Verificar arquivos CSV
- Funções de tabela
- Gerenciar vários arquivos do Excel
- Interpretar resultados do Excel
- Gerenciar tabelas dinâmicas
- Gerenciar a seleção de intervalo
- Ler de arquivos do Excel
- Gerenciar banco de dados no Excel
- Comparar arquivos CSV
- Comparar valores numéricos
- Classificar dados em arquivos do Excel
- Filtrar e excluir linhas em arquivos do Excel
- Manipular seleções de intervalo
- Verificar dados de pasta de trabalho do Excel
- Ler, escrever e acrescentar dados no Excel
- Google Workspace
- Notas de versão
- Sobre o pacote de atividades Google Workspace
- Compatibilidade do projeto
- Conexões
- Apply File Labels
- Limpar Campos de Rótulos de Arquivo
- Copy File
- Create Folder
- Excluir Item
- Download File
- Get Drive Labels
- Get File
- Get File Labels
- Get Files
- Get Files And Folders
- Get Folder
- Get Folders
- Get Item
- Move File
- Move Folder
- Atualizar arquivo
- AtualizarPasta
- Atualizar item
- Remove File Labels
- Share File
- Compartilhar pasta
- Fazer upload do arquivo
- Upload Files
- Opções
- Aplicar rótulos
- Archive Email
- Delete Email
- Download Email
- Download Email Attachment
- Download Email Attachments
- Forward Email
- Get Email
- Get Email Attachments Info
- Get Emails
- Get Mail Labels
- Get Newest Email
- Mark Email as Read
- MarcarEmailComoNãoLido
- Move Email
- Remover rótulos
- Reply To Email
- Enviar Email
- Turn Off Automatic Replies
- Turn On Automatic Replies
- Opções
- Add Attendee
- Create Event
- Delete Event
- Modify Event
- Search Events
- Usar Google Drive
- Share File
- Delete File Permission
- Get File Permissions
- Update File Permission
- Copy File
- Create Folder
- Delete File
- Download File
- Find Files and Folders
- Get File Info
- Move File
- Fazer upload do arquivo
- Create Document
- Create New Spreadsheet
- Get Mail Messages
- Send Mail Messages
- Alterar Rótulos
- Usar Planilha do Google
- Add Delete Columns
- Add Delete Rows
- Auto Fill Range
- Add New Sheet
- Append Row
- Batch Spreadsheet Updates
- Copiar Planilha
- Copy Paste Range
- Delete Range
- Excluir Planilha
- Get Cell Color
- Get Sheets
- Ler Célula
- Read Column
- Read Range
- Read Row
- Renomear Folha
- Write Cell
- Write Range
- Clear Range
- Download Spreadsheet
- Use Google Document
- Batch Document Updates
- Get Document
- Get Text Index
- Insert Text
- Replace Text
- Read All Text
- Create Script Project
- Get Project Content
- Upload Script File
- Create Deployment
- Run Script
- Email
- Microsoft 365
- Notas de versão
- About the Microsoft 365 activity package
- How to connect to Microsoft 365 activities
- Compatibilidade do projeto
- Conexões
- AddEmailCategories
- Archive Email
- Delete Email
- Download Email
- Download Email Attachment
- Download Email Attachments
- Forward Email
- Get Email
- Get Email Attachments Info
- Get Emails
- GetMailFolders
- Get Newest Email
- Mark Email as Read
- MarcarEmailComoNãoLido
- Move Email
- RemoveEmailCategories
- Reply To Email
- Enviar Email
- Turn Off Automatic Replies
- Turn On Automatic Replies
- Mesclar várias planilhas em uma nova planilha de resumo do Excel
- Aceitar automaticamente convites de calendário de seu gerente
- Mover arquivos para pastas dedicadas por tipo
- Verificar se os novos documentos de emprego (I9 e ID) correspondem
- Adicionar novos clientes a uma lista do SharePoint
- Excluir itens de lista do SharePoint mais recentes do que ontem
- Notificar-me no Slack quando receber um e-mail importante no Outlook
- Incluir data de criação nos novos nomes de arquivos do OneDrive
- Notificar-me por e-mail quando um novo arquivo for criado
- Microsoft Office 365 Scope
- Add Sheet
- Append Range
- Clear Range
- Copy Range
- Copiar Planilha
- Create Workbook
- Delete Range
- Excluir Planilha
- Get Cell Color
- Get Sheets
- Ler Célula
- Read Column
- Read Range
- Read Row
- Renomear Folha
- Write Cell
- Write Range
- Set Range Color
- Create Table
- Get Table Range
- Insert Column
- Delete Column
- Insert Rows
- Delete Rows
- VLookup Range
- Use OneDrive & SharePoint
- Copy File/Folder
- Create Folder
- Delete File/Folder
- Download File
- Export File as PDF
- Find Files And Folders
- Get File/Folder
- Move File/Folder
- Fazer upload do arquivo
- Share File/Folder
- For Each File/Folder
- Forward Mail
- Get Mail
- Move Mail
- Send Mail
- Reply to Mail
- Excluir Email
- Definir Categorias de Email
- Add Attachment
- Add Attendee
- Adicionar local
- Create Event
- Delete Event
- Find Meeting Times
- Get Calendars
- Modify Event
- RSVP
- Search Events
- Create Group
- Excluir grupo
- 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
- Presentations
- Notas de Versão
- Sobre o pacote de atividades Presentations
- Compatibilidade do Projeto
- Adicionar ou atualizar rótulo de confidencialidade ao PowerPoint
- Add Data Table to Slide
- Add File to Slide
- Adicionar imagem ou vídeo ao slide
- Add New Slide
- Add Text to Slide
- Copy Paste Slide
- Delete Slide
- Format Slide Content
- Obter rótulo de confidencialidade do PowerPoint
- Replace Text in Presentation
- Paste Item into Slide
- Run Presentation Macro
- Save PowerPoint File As
- Save Presentation as PDF
- Use PowerPoint Presentation
- Word
- Notas de Versão
- Sobre o pacote de atividades Word
- Compatibilidade do Projeto
- Word Application Scope / Use Word File
- Add or Update Word Sensitivity Label
- Add Hyperlink to Document
- Add Picture
- Append Text
- Obter rótulo de confidencialidade do Word
- Insert DataTable in Document
- Paste Chart/Picture into Document
- Read Text
- Replace Picture
- Replace Text in Document
- Save Document As
- Save Document as PDF
- 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 | Conexão do Integration Service | Robot type - Attended | Robot type - Unattended | API permission type |
---|---|---|---|---|---|
OAuth 2.0 authorization code flow |
Interactive Token - public app | Código de autorização do OAuth 2.0 |
Permissões delegadas | ||
Interactive Token - BYOA | Traga seu próprio aplicativo OAuth 2.0 | Permissões delegadas | |||
Integrated Windows authentication (IWA) | N/A |
Permissões delegadas | |||
UsernameAndPassword | N/A |
Permissões delegadas | |||
OAuth 2.0 client credentials flow | Application ID and secret | N/A |
Permissões do aplicativo | ||
N/A |
Permissões do aplicativo |
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).
- O tipo de autenticação do Token Interativo pode ser usado para automação assistida e quando a autenticação multi-factor (MFA) for necessária. Essa é a opção padrão e o que usamos em nossos exemplos. Se você estiver interessado em experimentar o pacote de atividades, essa opção é fácil de configurar e funciona bem para contas pessoais (usando o URI de redirecionamento padrão observado na etapa 7 da seção Registre seu aplicativo do Guia de configuração ).
- 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.
- O tipo de autenticação Autenticação Integrada do Windows pode ser usado para automação não assistida. Essa opção pode ser aplicada a aplicativos hospedados no Windows em execução em computadores que ingressaram em um domínio do 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.
- Embora não seja recomendado pela Microsoft, você pode usar esse tipo de autenticação em aplicativos clientes públicos. O uso desse tipo de autenticação impõe restrições ao seu aplicativo. Por exemplo, os aplicativos que usam esse fluxo não poderão fazer login de um usuário que precise realizar a autenticação multifator (acesso condicional). Isso também não permitirá que seu aplicativo se beneficie do logon único.
- 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).
-
As permissões de APIs apropriadas devem ser configuradas para o aplicativo Azure para que as atividades Microsoft 365 funcionem corretamente (por exemplo, as permissões de aplicativos
Group.Create
,Group.Read.All
eGroup.ReadWrite.All
devem ser configuradas para o Microsoft Graph ao usar atividades Groups). -
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).
-
Para atividades de e-mail, é obrigatório especificar um valor para o parâmetro Account (ou seja, qual caixa de correio de todas as caixas de correio do inquilino você deseja usar).
-
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:
- Localize seu aplicativo Microsoft 365 registrado.
-
Selecione Certificados e segredos e carregue seu arquivo de certificado (chave pública). Ele pode ter um dos seguintes tipos de arquivo:
.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.
- Defina CertificarComoBase64 como a representação base64 do certificado.
- Se for necessária uma senha para usar o certificado, defina também o valor para a propriedade Senha do Certificado .
Agora você pode usar as atividades mais recentes Microsoft 365 mesmo se não tiver o Integration Service, por meio do Microsoft 365 Scope.
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 | No local | |||
Escopo do aplicativo Microsoft Office 365 | Integration Service | Escopo do aplicativo Microsoft Office 365 | Integration Service | |
Multiplataforma | ||||
ID do Aplicativo e Certificado | ||||
ID do Aplicativo e Segredo | ||||
OAuth — BYOA | ||||
OAuth — aplicativo UiPath | ||||
Nome de Usuário e Senha | ||||
Autenticação do Windows Integrada | ||||
Windows | ||||
ID do Aplicativo e Certificado | ||||
ID do Aplicativo e Segredo | ||||
OAuth — BYOA | ||||
OAuth — aplicativo UiPath | ||||
Nome de Usuário e Senha | ||||
Autenticação do Windows Integrada |
Há duas maneiras de configurar uma conexão na atividade Microsoft 365 Scope .
Método de conexão | Description | Benefícios | Desvantagens | |
---|---|---|---|---|
Ativo Observação: Recomendado.
|
Usa um Ativo do Orchestrator para armazenar a conexão com a configuração do Escopo. O ativo está no formato JSON. Sempre que é usada, a atividade recupera a configuração do ativo. Com base na configuração do ativo, o Scope se comporta de maneira diferente; ele identifica o tipo de autenticação e oculta campos desnecessários. Se o JSON do ativo não estiver definido corretamente, ele receberá um erro de validação. |
As atividades se beneficiam das pesquisas de tempo de design e podem descobrir arquivos, pastas, listas, intervalos, entre outros. A conexão é facilmente transferível, pois as credenciais não são passadas de um usuário para outro em texto simples. Pode ser configurado por um Admin. É mais seguro, porque as credenciais não chegam no fluxo de trabalho do Studio. |
Requer um usuário avançado para configurar o Ativo. Não é fácil configurá-lo para um Desenvolvedor Não Técnico. | |
Painel de Propriedades |
Use o painel de propriedades existente para configurar as credenciais da conexão. A configuração pode ser adicionada em texto simples ou por meio de variáveis. |
Mais fácil de usar. Mantém a compatibilidade com versões anteriores. | ||
Configuração por meio de texto simples
Observação: Não é recomendado.
| Configure o painel Propriedades com valores de texto simples. | As atividades se beneficiam das pesquisas de tempo de design e podem descobrir arquivos, pastas, listas, intervalos, entre outros. | Menos seguro, porque as credenciais precisam ser passadas entre usuários em texto simples. | |
Configuração por meio de variáveis |
Configure o painel de propriedades com variáveis. |
Mais seguro, porque as credenciais não chegam ao fluxo de trabalho do Studio. | As atividades não podem descobrir quaisquer recursos no momento do design. |
{
"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"
}
}
Os seguintes recursos não estão disponíveis ao usar atividades dentro do Microsoft 365 Scope: gatilhos, associações e experiência de substituição.
Atualização do token
Não há nenhum serviço disponível para atualizar seus tokens de conexão, como o que está disponível no 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.
- Com o fluxo de aprovação do administrador: fluxo de credenciais do cliente OAuth 2.0 na plataforma de identidade da Microsoft
- Sem fluxo de aprovação do administrador: plataforma de identidade da Microsoft e fluxo de código de autorização do OAuth 2.0 - plataforma de identidade da Microsoft
- Visão geral
- Delegated permissions versus application permissions
- Multitenant versus single-tenant applications
- Azure environments
- Integration Service connections
- Microsoft 365 Scope connections
- Token Interativo
- Visão geral
- Detalhes
- Autenticação integrada do Windows (IWA)
- Visão geral
- Detalhes
- UsernameAndPassword
- Summary
- Detalhes
- ID do Aplicativo e Segredo
- Summary
- Detalhes
- IdDoAplicativo e Certificado
- Summary
- Detalhes
- Using certificates
- How to use Microsoft 365 activities without Integration Service connections
- Sobre
- Authentication and projects types matrix
- Métodos de conexão
- Microsoft 365 Scope asset format
- Limitações