Co-Pilot for Automators (Co-Pilot) crea resultados óptimos al ingresar los siguientes ejemplos de indicadores para las tendencias comunes que se observan en el desarrollo de automatizaciones.

Considere copiar los indicadores de la siguiente lista y modificar los detalles individuales para adaptar el resultado a sus propias necesidades de automatización.

Ejemplos de indicadores en Bot editor

Ejemplos:
  • Open a folder. Loop through each file. Copy the file names and add it in an excel file.
  • Connect to database using myname/mytoken account.
  • Connect to Salesforce using the ConnectionName Control Room OAuth connection.
    Nota: Asegúrese de haber configurado y guardado correctamente esta conexión en las conexiones de la Control Room.
  • Open browser google.com
  • Create a bot that sends email to $EmailTo$, CC $EmailCC$, from $EmailFrom$, subject 'Bot Started', message 'The bot has now started.'
  • Run excel macro "TestMacro" on C:\Temp\MacroFile.xls. Then switch to excel Main worksheet and get all cells.
  • Prompt for the user to select the folderpath. Loop through the selected folder including subfolders. If any excel file is found, then check for the worksheet ‘Main’. If available save it as a PDF in the same folder.
  • Este ejemplo ejecuta una automatización que analiza registros en Salesforce y para cada registro de Salesforce agrega los datos en la base de datos existente. Cuando el registro contiene un correo electrónico, la automatización envía un correo electrónico y, en caso contrario, la automatización agrega un comentario. Además, si ocurre un error durante el tiempo de ejecución, la automatización muestra un mensaje.

    Get records from Salesforce. For each Salesforce record, insert a record into the database. If the record contains an email, send an email. If not, add a comment. If an error occurs when the bot performs these operations show a message box.

Múltiples operaciones separadas para mayor claridad: Este ejemplo muestra un escenario complejo donde se detallan diferentes acciones para expresar la coordinación de datos. Los números ordenados ayudan a especificar la secuencia y le indican a Co-Pilot a ordenar estas acciones al renderizar.

Add try catch action. 1. Add SAP connect action with connectivity type as SAP SSO. 2. Send enter as SAP vertual key. 3. Add Delay of 3 ms. 4. Enter the delivery number 858484 by adding the SAP set text action. Field path is wou/tur. 5. Send F7 as SAP virtual key. 6. If window does not exist, update the 'status' column in the excel workbook as 'Invalid' by using Set cell action, else store the Invoice number to the variable using SAP get text action for from field path xyz/abc.
Operaciones de correo electrónico:
  • Este ejemplo encuentra correos electrónicos que coinciden con las condiciones especificadas y los mueve a la carpeta especificada existente.

    Move all emails to 'Finance' folder if attachments have any PDF file and the sender is 'finance@aai.com'.
  • Este ejemplo presenta una automatización que utiliza el paquete de correo electrónico para conectar y guardar los correos enviados específicamente por contactos establecidos de Salesforce. El indicador especifica usar el paquete de correo electrónico, en lugar del paquete de Outlook y depende de que la lista de Salesforce ya exista en la cuenta de correo electrónico de este usuario.

    Connect to Outlook with email package, save any email to 'c:\temp\MyEmails' if the sender matches the email of any contact in the Salesforce list.
  • Este ejemplo encuentra correos electrónicos que coinciden con las condiciones especificadas y los guarda en la ruta especificada, luego elimina los correos electrónicos de la carpeta de correo electrónico.

    Backup all emails from HR folder to c:\temp\ExternalEmails if the domain of the sender is 'chad@automationanywhere.com', then delete from the folder.
Operaciones de Sharepoint:
  • Authenticate sharepoint with Client ID as $ClientID$, Client Secret as $ClientSecret$, Tenant ID as $TenantID$.
  • Create sharepoint folder COPILOT at /SiteName/Folders/FA.
  • Upload file to Sharepoint.
Condiciones If/Else If/Else:
  • If response is A, connect to database and read data. Else, send email to $EmailTo$.
  • If response is A, connect to database and read data. Else if response is B, open www.google.com. Else, send email to $EmailTo$.
Operaciones de Excel:
  • Use Excel Advanced package to load the data from 'SalesData.xlsx' located in the 'C:\Reports' folder. Write this data into XYZ oracle database.
  • Prompt user for two folders. Loop first folder to find excel files and copy them to second folder.
  • Create a bot to copy data from a table in database to excel.
  • Este ejemplo genera una automatización que crea un nuevo archivo csv con todos los resultados coincidentes de los dos archivos csv especificados, basándose en los valores de la columna objetivo.

    Combine two csv 'a.csv' and 'b.csv' from the folder at c:\temp by using the column AccountNo. Save only the matching result to 'c.csv'.
  • Este ejemplo ejecuta una automatización que guarda los archivos adjuntos de Excel en la carpeta especificada, enviados por el proveedor especificado.

    Read emails from the vendor 'jsmith@aa.com' and save attachments of their emails to the folder c:\temp. Only include the files with .xlsx extension.
  • Este ejemplo crea un nuevo archivo CSV con todos los valores de un archivo de Excel y un archivo csv, basado en la columna objetivo.

    Combine the excel file 'a.xslx' and the csv 'b.csv' file from the folder at c:\temp by using the column AccountNo. Save all matched and unmatched results to 'c.csv'.
  • Copy the data from the excel file 'a.xlsx' into the excel file 'b.xlsx' for all the worksheets that have matching sheet name.
  • Este ejemplo ejecuta una automatización que corre una macro para cada fila que cumple con las condiciones especificadas, y para las filas que no cumplen con las condiciones, copia esos datos en un archivo de Excel diferente especificado.

    Run macro 'UpdateVendorData' if B2 is 'Pending' in c:\VenderData.xlsx 'Info' tab. Otherwise copy all the data to c:\TodaysVendorData.xlsx.
Administrador de errores:
  • Open excel C:\temp.xlsx. When error occurs, send an email tome@myorg.com.
  • Open excel C:\temp.xlsx and get all rows. If error occurs when performing these operations, send an email.
  • Add try-catch.
  • Add error handler.

Ejemplos de indicadores en Process Composer

Ejemplos:
  • Create a new customer profile in the CRM system. The name, email address, and phone number will be provided by a user via a form.
  • Read the list of automotive parts from a pdf using a document automation task, use a bot to search these parts in a website, and email the collected information.
  • Start with a form to enter patient information. Then filter out patients that are 75 years old and older. Finally, add a bot to save the information in an excel spreadsheet.
  • Get data from an invoice. If the name starts with "new", check the price. If the price is above 1000, send an email and If the price is below 500, then go to the first task. Otherwise, save the data to Excel file. If the invoice doesn't start with new, validate the document.
  • Add a form task for EntryForm.
  • Add a bot task for botInput.