UiPath Documentation
activities
latest
false
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Atividades de produtividade

Última atualização 12 de mai de 2026

Início rápido - Criar, gravar e ler

O objetivo deste guia é ajudar você a criar uma amostra de trabalho que usa diferentes atividades Microsoft 365, incluindo as atividades Create Folder, Create Workbook, Rename Sheet, Write Range e Read Range .

Pré-requisitos

Antes de você começar:

  1. Conclua as etapas do Microsoft 365.

Etapas

Crie seu projeto
  1. Adicione a atividade Microsoft Office 365 Scope ao seu projeto.
  2. Insira o IdDoAplicativo para seu aplicativo registrado (para obter mais informações, consulte o guia).
  3. From the AuthenticationType drop-down list, select the applicable type (e.g., InteractiveToken).
    • If you select InteractiveToken and run the sequence while you're present, you don't need to add a Password, Tenant, or Username in the Unattended section (leave empty).
  4. From the Services drop-down list, select Files (you can select the other services as well).
  5. Adicione a atividade Create Folder após a atividade Microsoft Office 365 Scope .
  6. Enter a Name for the folder (e..g, "Quickstarts").
  7. In the ParentDirectory property, enter the directory where this folder will be created.
    • Se você deseja criar a pasta em seu diretório raiz (como fizemos neste exemplo), deixe esta propriedade vazia.
  8. Create and enter a DriveItem variable for your Folder value (e.g., newFolder).
    • When creating your variable, select Microsoft.Graph.DriveItem as the variable type.
  9. Adicione a atividade Create Workbook após a atividade Create Folder .
  10. Create and enter a String variable for your Name value (e.g., workbookName).
  11. In the Parent property, enter the DriveItem variable you created for the Create Folder activity (e.g. newFolder)
  12. Create and enter a DriveItem variable for your Workbook value (e.g., newWorkbook).
  13. Adicione a atividade Rename Sheet após a atividade Create Workbook .
  14. Enter a NewSheetName (e.g., "DisneyCharacters").
  15. Enter the Original Sheet Name (e.g., "Sheet1").
  16. In the Workbook property, enter the DriveItem variable you created for the Create Workbook activity (e.g. newWorkbook).
  17. Adicione a atividade Construir tabela de dados após a atividade Renomear planilha .
  18. Click the DataTable button in the activity to open the Build Data Table wizard.
  19. Insira pelo menos duas colunas e duas linhas de dados (por exemplo, veja a imagem abaixo).
  20. Create and enter a DataTable variable for your DataTable value (e.g., disneyCharacters)
  21. Adicione a atividade Write Range após a atividade Build Data Table .
  22. Enter the DataTable variable you created for the Build Data Table activity (e.g., disneyCharacters).
  23. Enter the SheetName you entered for the Rename Sheet activity (e.g., "DisneyCharacters").
  24. Enter the StartingCell (e.g., "A1").
  25. In the Workbook property, enter the DriveItem variable you created for the Create Workbook activity (e.g. newWorkbook).
  26. Para indicar quando o robô termina o primeiro conjunto de atividades, adicione a atividade Write Line após a atividade Rename Sheet .
  27. Enter a String message (e.g., "Finished creating: "+folderName+" folder, "+workbookName+" workbook, and "+sheetName+" worksheet!").
Teste seu projeto
  1. Para verificar se seu DataTable foi escrito em sua planilha, adicione a atividade Read Range após a atividade Write Line .
  2. Enter a valid Range (e.g., "A2:B6").
  3. In the SheetName property, enter the name from the Rename Sheet activity (e.g., "Disney Characters").
  4. In the Workbook property, enter the DriveItem variable you created for the Create Workbook activity (e.g. newWorkbook).
  5. Select Add Headers (this can be useful if you plan to output the data table to a new).
  6. Create and enter a DataTable variable for your DataTable value (e.g., verifiedDisneyCharacters)
  7. Para ver os valores de saída, adicione a atividade Output Data Table após a atividade Read Range .
  8. In the DataTable property, enter the DataTable variable you created for the Read Range activity (e.g., verifiedDisneyCharacters).
  9. Create and enter a String variable for the Text property (e.g., datatableOutput).
  10. Adicione outra atividade Write Line abaixo da atividade Output Data Table .
  11. Enter the String variable you created for the Output Data Table activity as your Text property value (e.g., datatableOutput).
  12. Clique em executar e verifique os resultados na janela de saída.

Quando você estiver pronto, tente os outros guias de Início rápido para se familiarizar mais com as diferentes atividades Microsoft Office 365.

Como funciona

Depois de concluir as etapas deste guia, você terá uma sequência de automação que faz o seguinte:

  1. Estabelece uma conexão com seu aplicativo Microsoft 365 registrado (Microsoft Office 365 Scope).
  2. Cria uma nova pasta em seu OneDrive para armazenar uma nova pasta de trabalho (Create Folder).
  3. Cria uma nova pasta de trabalho na nova pasta (Criar Pasta de Trabalho).
  4. Renomeia a "Planilha1" padrão na nova pasta de trabalho (Renomear Planilha).
  5. Cria um novo objeto DataTable para gravar na planilha (Construir tabela de dados).
  6. Grava o DataTable criado na planilha (Write Range).
  7. Verifica a atividade Write Range relendo os valores (Read Range e Output Data Table).

  • Pré-requisitos
  • Etapas
  • Como funciona

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades