UiADAv1 Cheatsheet
UiPath Automation Developer Associate
Download free PDFAutomation foundations and implementation
Products and execution models
- **Studio** designs, tests and debugs workflows. **Robot** executes them. **Assistant** lets users start and manage attended automations. **Orchestrator** centrally deploys, schedules and monitors execution.
- **StudioX** targets business users automating their own work; **Studio** supports developer-oriented automation. Profile selection is available through backstage settings under License and Profile.
- **Attended automation** runs with a user and can request input or review. **Unattended automation** runs independently with configured access, credentials and execution capacity.
- **Background processes** avoid desktop interaction and can run concurrently when supported. Foreground UI automation needs a usable desktop session; multiple UI processes can interfere.
- **UiPath Forum** hosts community questions and answers. **Marketplace** distributes reusable automation components; verify a component before adding it to a project.
Process suitability and complexity
- Identify a process through its **inputs, flow, source applications and outputs**. Favor stable rules, digital structured inputs, repetition and measurable business value.
- **Zero-touch automation** completes a suitable digital process without intervention. **Semi-automation** preserves manual steps such as review or physical-token approval.
- **High-cost RPA** can involve OCR, unstructured inputs or advanced integration. Frequent business-rule changes, volatile applications and many exceptions increase development and maintenance effort.
Delivery stages and responsibilities
- **Process Analysis** documents the AS-IS process, rules, inputs and exceptions in a **PDD**. **Solution Design** defines the TO-BE automation and technical approach in an **SDD**.
- The **business analyst** captures needs, process details and business value. The **solution architect** defines the technical architecture; the **developer** implements workflows and unit tests.
- Developers also support **integration testing, UAT, deployment and hypercare**. Business users validate acceptance criteria; monitor the deployed automation and resolve early operational issues.
- Control **scope creep**, access delays and unclear expectations with agreed requirements, early environment access and explicit acceptance criteria. Prioritize processes using business value and technical feasibility.
Studio projects and delivery
Workspace and compatibility
- Build activities in the **Designer**; find them in **Activities**. **Project** shows files and dependencies, **Properties** configures selections, and **Data Manager** manages project data.
- Use **Windows** compatibility for Windows-specific automation. **Windows - Legacy** targets the older .NET Framework model; **Cross-platform** requires activities supported by the target operating system.
- **Studio Web** provides browser-based automation authoring and cloud execution options. For Studio/Studio Web interoperability, use a supported **cross-platform process with VB expressions**.
- Cross-platform support does not make Windows desktop UI or Excel desktop activities portable. Check activity compatibility in the **Activities Guide** and test on the intended runtime.
Packages, libraries and templates
- **Manage Packages** installs, updates and removes project activity dependencies. Enable the needed package feed, search for a package, install a compatible version and save the changes.
- For a **custom activity package**, add or enable its local/remote feed before installation. Importing a namespace makes types easier to reference; it does not install a package.
- A **library** packages reusable components for other projects. Publish it to an approved Orchestrator or NuGet feed; consumers install it through Manage Packages.
- A **project template** supplies a reusable starting structure and defaults. Use **Export as Template** to turn an established project into a starting point for similar automations.
Source control and release gates
- UiPath Studio integrates with **Git, SVN and TFS** source control. **Git Init** creates a local repository; it does not create a remote repository or publish a release.
- **Commit** records a local revision; **push** sends commits to a remote. **Pull** incorporates remote changes. Use branches to isolate work and resolve conflicts before integration.
- Use **Show History** to inspect file revisions and compare changes. **Compare Files** compares workflows in a project; review activity-level differences as well as expressions.
- **Validation** checks workflow correctness. **Workflow Analyzer** checks quality and governance rules; enforcement can block Run/Debug, Publish or Push/Check-in when analyzer errors remain.
- Publish a valid project as a **package** to Orchestrator, a local destination or a custom NuGet feed. Review file inclusion and dependencies; test cases have their own publishing behavior.
Data, expressions and workflow logic
Scope and workflow contracts
- **Variables** share data between activities within their scope. Choose the narrowest suitable container or workflow scope; provide a clear name and type. A default value is optional. An activity output is stored in its bound variable.
- Create **global variables** and **global constants** through Data Manager. Globals provide project-wide access where supported; variables can change at runtime, while constants remain fixed during execution.
- **Arguments** pass data across workflow boundaries. **In** supplies input; **Out** returns a result; **In/Out** receives and returns data. Prefer explicit contracts for reusable workflows.
- With **Invoke Workflow File**, define child arguments, import them into the caller, then map compatible values. In accepts a literal, variable or expression; Out and In/Out need a writable destination.
- Use descriptive direction prefixes such as **in_InvoicePath**, **out_UserId** and **io_RetryCount**. Renaming in Data Manager updates current-workflow references; recheck external invocation mappings.
- For an entry-point input argument, a value supplied when starting the **Orchestrator job** takes precedence over its default. An input argument does not automatically display an Input Dialog.
Types and explicit conversion
- Use **String** for text and identifiers, **Boolean** for conditions, **Int32/Int64** for whole numbers, **Double** for floating-point values and **DateTime** for dates and times.
- Use **Decimal** when exact decimal arithmetic matters, such as money calculations. An Excel cell may arrive as Object or Double; inspect and convert it before calculation or formatted UI entry.
- **Object** can hold different runtime types. A boxed Boolean converted with **ToString()** produces "True" or "False"; calling a method on Nothing causes an error.
- Convert numeric text before arithmetic: **Convert.ToInt32(containerText) * Convert.ToInt32(itemsText)**. Use **Double.Parse** or **Decimal.Parse** for decimal text with an explicit culture when needed.
- **TryParse** validates ordinary invalid input without throwing. **Convert.ToBoolean(integerValue)** is False for zero and True for nonzero values; parsing the text "1" is a different operation.
Strings, dates and validation
- **text.Contains("robot")** tests for a substring; **Equals** compares complete values. **Substring** extracts a portion, **Replace** returns modified text and **Split** returns parts.
- **text.Trim().Length** counts characters after removing leading and trailing whitespace. Trim does not remove internal spaces; guard against Nothing before string operations.
- Format a date with **timestamp.ToString("yyyy-MM-dd HH:mm")**. **MM** means month, **mm** minute, **HH** a 24-hour clock and **hh** a 12-hour clock.
- **Is Match** checks a regular-expression pattern; anchor it to validate the whole input. A pattern checks shape, while **DateTime.TryParseExact** also validates a real date in the required format.
Arrays, lists and dictionaries
- An **array** has a fixed length after creation; a **List(Of T)** can grow or shrink. Use String elements for IDs such as "04-08-15" to preserve punctuation and leading zeros.
- Initialize collections before use: **New List(Of String)** or **New Dictionary(Of String, String)**. A collection variable set to Nothing cannot accept items.
- A **Dictionary(Of TKey, TValue)** maps unique keys to values; values can repeat and key/value types can differ. **dict(key) = value** inserts or replaces a value; **Add** rejects a duplicate key.
- Check **ContainsKey** or use **TryGetValue** before reading a possibly missing key. Missing keys and an uninitialized dictionary are different failure conditions.
DataTable and DataRow operations
- **DataTable** holds a schema and rows; **DataRow** holds one row. Initialize with **New System.Data.DataTable** and define columns, or use **Build Data Table**, before adding data.
- **dt.Rows(0)(1)** accesses the first row, second column. **CurrentRow("Username")** accesses a named column; use **Get Row Item** or an explicit conversion for a typed value.
- **For Each Row in Data Table** processes each row. Populate a list from a selected column or a dictionary from key/value columns, checking nulls, types and duplicate keys.
- **Filter Data Table**, **dt.Select** and **AsEnumerable().Where** select subsets. **Sort Data Table** orders rows, **Lookup Data Table** locates a value and **Output Data Table** produces text.
Branching, loops and workflow shapes
- A **Sequence** suits a linear task; a **Flowchart** makes branching visible; a **State Machine** models states and transitions. **ValidateUnconnectedNodes** flags disconnected flowchart nodes.
- **If** evaluates one Boolean condition and runs Then or Else. **Switch/Flow Switch** chooses among discrete values, such as vendor names; **Flow Decision** represents a Boolean branch.
- **For Each** traverses a collection. **While** tests before the body; **Do While** runs the body at least once. **Break** exits the current loop.
- **Delay** pauses where it occurs; put it inside a loop for a pause on each iteration. Work duration adds to the interval, so a fixed delay alone does not guarantee an exact schedule.
- **Parallel** schedules branches concurrently within the workflow. Branches can interleave; this does not guarantee separate CPU threads. Avoid competing UI actions and uncontrolled shared-state updates.
UI automation and reliable targeting
Application context and interaction
- **Use Application/Browser** establishes the application context. **App/Web Recorder** generates activities from recorded actions; review targets, variables and synchronization before reuse.
- Install the browser extension from Studio **Home > Tools > UiPath Extensions**, choose the browser, then enable it in the browser and follow any restart prompt.
- **Click**, **Type Into** and **Check/Uncheck** are input actions. **Get Text** and **Get Attribute** retrieve data; Get Attribute can inspect a control property such as its enabled state.
- **Hardware Events** uses mouse/keyboard interaction and needs a foreground desktop. **Simulate** or supported window-message modes can support background interaction; test compatibility with the application.
Selectors and dynamic attributes
- A **selector** is an XML-like String describing an element and relevant ancestors. A single-target action should identify one intended element; validate against duplicates and changing application states.
- Use **UI Explorer** to inspect attributes and validate the selector. Prefer stable IDs, names and meaningful attributes; unstable titles and positional **idx** values are more fragile.
- The **asterisk (*)** wildcard matches zero or more characters; **?** matches one character. Preserve the stable title prefix, such as **Report * - PDF**, rather than replacing the whole title with a wildcard.
- Use a **dynamic selector** to substitute the current record ID or menu name. An exact variable value narrows the target to the selected record; a broad wildcard may match unintended records.
Anchors, element reuse and maintenance
- An **anchor** uses a nearby stable element to disambiguate a target. Add one when automatic targeting finds duplicates; test relative positioning across expected layouts.
- The **Object Repository** stores reusable UI descriptors. Linked activities share their descriptor; unlink an activity before making a local target change that should not update the repository.
- **Find Children** returns matching UI elements below a parent using a filter. Iterate over the returned elements and use the current element as an activity input.
- When a selector breaks, reproduce the failure, inspect the current element, adjust stable attributes or anchors, validate uniqueness, then retest the workflow and affected callers.
Waiting, retrying and screenshots
- **Check App State** waits for an element or state and branches according to whether it appears. Its **Timeout** bounds the wait; use state-based waits for variable application response times.
- **Type Into** normally has a **30-second timeout** unless overridden. Modern Timeout uses seconds; classic **Target.TimeoutMS** uses milliseconds. A timeout is a maximum wait, not an unconditional delay.
- **Retry Scope** repeats an action and checks a success condition within configured retry limits. Retry transient failures; avoid blindly repeating irreversible actions such as submitting a payment.
- To email a screenshot, **Take Screenshot**, **Save Image** to a file, then attach that file to the email. Confirm the image was saved before sending.
Files, spreadsheets, documents and services
Local files and Excel scopes
- **For Each File in Folder** enumerates local files. Combine it with **Rename File** to add a suffix; preserve the extension and prevent collisions. **Get File Info** exposes metadata such as last-access time.
- **Use Excel File** selects a workbook and establishes a modern Excel scope. **Indicate in Excel** visually selects cells, ranges or tables for activities within that context.
- **Workbook activities** read or write supported Excel files without requiring Excel to be installed. Desktop Excel activities rely on Excel integration and support a different set of features.
- Choose the activity family deliberately: file locks, open workbooks, formulas and formatting can affect behavior. Do not assume Workbook and desktop Excel activities are interchangeable.
Reading, writing and sorting spreadsheets
- **Read Range** loads a rectangular range into a DataTable; **Read Cell** retrieves one cell. A header option consumes the first selected row as column names, reducing the number of data rows.
- **For Each Excel Row** processes rows in a selected worksheet range or table. Use the current row and a deliberate destination reference when writing per-row results.
- **Write Cell** updates one cell; **Write DataTable to Excel/Write Range** writes tabular data. **Append Range** or an append-capable write operation adds rows after existing data.
- **Sort Range** sorts data directly in the workbook inside Use Excel File. **Sort Data Table** sorts an in-memory table; persist the result separately if the workbook must change.
Text extraction and document processing
- **Read PDF Text** extracts an existing PDF text layer. Its page range uses page numbers such as **"1"** for the first page; these are not zero-based DataTable indexes.
- **FullText** screen scraping can include hidden text when it is not explicitly ignored. **Native** can provide text position for supported applications; **OCR** recognizes text from rendered pixels.
- For scanned documents, use an appropriate **OCR** workflow and validate the result. For a consistent PDF form, use stable field labels, selectors and anchors rather than a changing field value.
- **Document Understanding** supports extracting and validating document data. Keep extraction, business validation and any required human review as distinct steps.
Email and Microsoft 365
- **Outlook desktop activities** use an installed, configured Outlook profile. **IMAP** retrieves mail through a server connection without an Outlook client; POP3 is a different retrieval protocol.
- For **Get IMAP Mail Messages**, configure server, port, mailbox folder, authentication and output messages. Filter unread items and subject as supported, or filter the returned collection.
- Use a suitable **For Each Email/For Each Outlook Item** activity or a typed For Each loop to process messages. Reading messages and sending mail use different operations and configuration.
- In Microsoft 365, **Share File/Folder** grants selected users permissions to a SharePoint/OneDrive item. Upload, move and retrieve activities perform different file operations.
Connectors and connections
- **Integration Service** connects automations to external APIs. A **connector** defines available operations; a **connection** holds an authenticated instance used by workflows.
- Use **Connector Builder** in Integration Service to create a custom connector from an API definition or a blank starting point. Configure endpoints, authentication, operations and parameters, then test before publishing.
- Authentication options include **OAuth 2.0 authorization code**, **PKCE**, **client credentials**, **Basic**, **API key**, **PAT** and no authentication. Choose the method required by the API and protect its credentials.
Debugging, exceptions and logging
Breakpoints and stepping
- A **breakpoint** suspends Debug execution before the selected activity. **Continue** resumes execution; ordinary Run and unattended production execution do not pause at Studio breakpoints.
- **Step Into** executes activities individually and enters invoked workflows. **Step Over** runs the current activity without stepping through its internals. **Step Out** finishes the current container and pauses outside it.
- **Slow Step** adds a visible pause between activities; it is useful for observing execution. A breakpoint, a fixed Delay and an activity timeout serve different purposes.
- **Continue on Exception** is a debugger setting that allows execution to continue after logging an error. It differs from an activity's **ContinueOnError** property; neither replaces deliberate exception handling.
Inspection and performance
- **Locals** displays current-scope variables and arguments while paused and allows supported value changes. **Watch** tracks chosen expressions, such as **countA > countB**.
- **Immediate** evaluates expressions and statements against the suspended context. **Call Stack** identifies the execution path; **Output** shows messages, logs and errors.
- **Profile Execution** measures activity execution times and helps locate bottlenecks. Inspect its profiling results after the run; timing information does not prove functional correctness.
Exception handling and cleanup
- Put risky operations in **Try**. **Catch** handles a compatible exception type; use specific catches before a general **System.Exception** fallback.
- **Finally** runs for normal completion and exception unwinding, including after a Catch rethrows. Put cleanup such as closing a browser there; abrupt process termination can prevent cleanup.
- **Throw** raises an exception, such as **New BusinessRuleException("Invalid invoice")**. **Rethrow** inside Catch propagates the original exception; an unhandled exception reaching the job boundary faults the job.
- **BusinessRuleException** represents invalid business data or rules. **IOException** concerns I/O failures; **NullReferenceException** often indicates Nothing; **ArgumentException** indicates invalid arguments. Diagnose the actual exception.
- When an activity uses **ContinueOnError = True**, its error may be suppressed and never reach Catch. Leave error propagation enabled when the handler needs to detect failure.
Global handling and useful logs
- A process can have one **Global Exception Handler** to define project-level error behavior. Its result can request **Retry**, **Ignore**, **Abort** or **Continue**; Continue rethrows the exception.
- Log **exception.Message**, source or activity context, and relevant stack-trace details. **exception.Source** alone is not guaranteed to identify the exact failed activity.
- Choose severity by impact: **Info** for milestones, **Warn** for recoverable issues, **Error** for failures and **Fatal** for critical termination. A **Warning** threshold includes Warn, Error and Fatal.
- **Orchestrator logs** centralize robot execution evidence. Exclude passwords, tokens and sensitive data; marking an activity Private reduces verbose logging exposure but does not secure a hardcoded secret.
Orchestrator resources and access
Packages, processes, jobs and runtimes
- A **package** is a published automation artifact. A **process** configures a package for execution; a **job** is one run of that process on eligible robot resources.
- Connecting Studio enables publishing to **Orchestrator**. A job executes on the selected eligible robot environment, which need not be the server hosting Orchestrator.
- For self-hosted unattended execution, configure the machine/template, account, folder assignment, application credentials and sufficient **unattended runtime capacity**. A new template needs available capacity to allocate.
- An attended user uses their existing session; unattended Windows UI execution needs a configured login/session. Stop a running attended process through its controls in **Assistant**, rather than merely closing Assistant.
Tenant, folder and role scopes
- **Tenant** administration covers tenant-wide settings, licenses and entities. **Folders** organize operational resources such as processes, jobs, queues, assets and storage buckets.
- A **role** is a collection of permissions. Tenant roles authorize tenant operations; folder roles authorize operations within assigned folders. Apply least privilege to each scope.
- Assign **folder roles** through folder access/settings in the modern-folder model. To manage an asset for a folder, select that folder and open its Assets area; tenant-wide access is a different scope.
Configuration and protected credentials
- Use **assets** for reusable configuration, such as a process-owner email address. **Text**, **Bool**, **Integer** and **Credential** assets serve different data needs.
- A **Credential asset** holds a username/password pair; retrieve it with the credential activity. Store secrets in an approved credential store or Orchestrator asset, not source files or ordinary configuration spreadsheets.
- Use **SecureString** where an activity expects a protected password value, even if the password contains only digits. When updating credentials, maintain a valid username/password pair and retest access.
Queue transactions and dispatcher/performer
- A **queue item** represents one unit of work, such as one invoice. **Queues** track transaction status and support controlled distribution to robots; they are not stores for shared configuration.
- A **dispatcher** loads individual items with transaction fields. A **performer** retrieves work with **Get Transaction Item**, processes it and records success or failure.
- Read item fields using **queueItem.SpecificContent("InvoiceId")** and convert the returned Object to the expected type. Reading each field does not require retrieving another transaction.
- Keep per-invoice data in **queue item Specific Data** and a shared finance-team address in a **Text asset**. This lets shared configuration change without rewriting every transaction.