Choose which optional cookies you allow. Essential cookies are always on. Your choice lasts for six months and applies to the Testgrity website and workspace.

Essential

Sign-in, security, and remembering your cookie choices.

Always on

Cookie and privacy policy. You can change or withdraw consent at any time using the Cookie button.

Action reference

Back to the guide index

The Action Library groups the most commonly authored steps and shows only actions for the case's selected platform. Toolkit settings use the same platform filter. The exact input controls shown on the canvas depend on the selected action.

AI failure investigation is an optional failed-report action. It reviews saved evidence and compatible history; it adds no executable Designer step and cannot change recorded outcomes.

Select + to append an action, or drag it between existing steps to choose its position. Group headings expand or collapse their actions; the settings cog chooses which groups are shown. Search matches action and group names.

Choose the reference for your case platform:

Red action cards and labels indicate a known implementation issue or an execution-mode limitation. Each warning identifies Browser or Background and distinguishes unsupported from known issue. Hover over the library card for details, or read the full warning on an authored or recorded step. Actions remain selectable; warnings do not change how a test executes. An unmarked action has no currently listed issue, but is not a guarantee that it works with every target control or configuration.

Dynamics 365 / Power Apps

Use these actions in D365 / Model-driven app cases for Dynamics 365, Power Apps model-driven apps, and supported inline custom pages. Categories below match the D365 Action Library.

Start

ActionPurpose
Open environmentOpen the active environment URL. Worker-based runners apply the saved session; Browser uses the session in the current browser profile.
ActionPurpose
Open appOpen a model-driven app by selecting its metadata GUID or matching its visible app label.
Open custom pageOpen an inline Power Apps custom page by its logical name in a D365 case. Requires Background execution; see custom page workflows.
Open areaSelect an area from the app's area switcher.
Open tableOpen a Dataverse table directly using its metadata logical name, or enable Use visible navigation label to click its sitemap label.
Change viewSelect a named saved view from the current table's view selector.
Open recordOpen an existing record from the visible grid and wait for its form. Browser execution requires an exact match and fails on multiple matching rows.
Reopen current recordOpen the saved record again using its current table and record ID, then wait for its form. Save changes first. No record label is required. Browser execution requires the updated extension and a saved record URL containing its table and ID.

The older Navigate to grid view action remains executable in saved tests but is hidden from the Action Library because metadata-based Open table already performs the same direct list navigation. Navigate to new form is also retained only for saved-test compatibility; use Open table followed by Click New in new tests so the real user path is exercised.

Form & fields

ActionPurpose
Wait for form readyWait until the D365 form shell finishes loading.
Click tabOpen a form tab such as Summary, Details, or Related.
Set field valueSet one or more form fields.
Clear field valueClear a field on the current form.
Read field valueRead a field value and record it in the report.

Records & grids

ActionPurpose
Wait for grid loadWait until the model-driven grid finishes loading.
Filter grid keywordSearch using the current grid's search box and wait for a grid refresh. Never uses an unrelated global search box.
Filter grid columnApply a plain-text filter to an exact visible column using its inline filter or filter menu's current/default operator. No fallback to keyword search.
Read grid cellReport a loaded cell using a zero-based data-row index and exact column name. A blank cell is valid; missing rows or columns fail. This reads a value, not an equality assertion.
Read grid record countReport the grid's exact total, excluding header rows. Requires a valid ARIA count, exact scoped total counter, or explicit empty state. Unknown or capped totals fail.
Verify grid emptyAssert zero records using a reliable reported count or explicit empty state. A missing grid never passes.
Select record rowSelect a visible record row in a grid or subgrid. Browser execution requires an exact match, confirms selection, and fails on multiple matching rows.
Select grid rowsEnsure the requested loaded rows are selected by zero-based data-row index. Already-selected rows remain selected; other selections are not cleared.
Click subgrid commandRun an exact command within an exactly named subgrid or its own overflow menu. A missing subgrid never triggers the form-wide command.

These grid actions support Background and Browser execution. Browser grid support requires Testgrity Recorder 0.4.3 or later and reloading existing Dynamics tabs. Keyword searches and inline column filters use native Enter, so Browser execution needs the extension's debugger permission.

Use a page with one visible grid, or focus a control inside the intended grid when several are visible. Row indexes exclude headers and follow the grid's exposed indexes; a row that has not been loaded by a virtualized grid cannot be read or selected. Filter/sort deterministically before using indexes. Counts are the current grid's reported totals, not an independent Dataverse database count. Approximate totals such as 5,000+ are deliberately rejected.

Column filtering supports plain text/search inputs and a single-value filter menu with an Apply command. It does not invent a choice, lookup, date, or multi-condition filter when those controls are present. Unsupported layouts fail with an explanation. A successful filter step confirms a submitted operation and observable grid refresh; add a separate verification of the expected result. Read actions only put values in the report and do not compare them with expected values.

Timeline

ActionPurpose
Create Timeline ActivityOpen the Timeline create menu, select the exact Activity type, and wait for its draft form. Fill and save it in subsequent steps.
Create Timeline NoteOpen a Note editor, enter the supplied Note text, submit it, and verify that the new note appears in the Timeline.
Create Timeline PostOpen a Post editor, enter the supplied Post text, submit it, and verify that the new post appears in the Timeline.
Click Timeline buttonMatch a visible entry by its exact subject or text, then click its exact button tooltip or accessible name.

All three actions support Browser and Background execution. For Create Timeline Activity, enter the label shown in the Timeline menu, for example Meeting, Appointment, Email, Phone Call, Task, or a configured custom activity. Meeting and Appointment are accepted as alternate labels for the appointment activity; an exact menu label takes precedence. Available options depend on the app and user permissions, as described in Microsoft's Timeline guide.

Click Timeline button supports Browser and Background execution. Browser execution requires Testgrity Recorder 0.4.33 or later and a reloaded Dynamics tab. Enter the complete visible subject or text within one entry and the exact tooltip or accessible name of its button; matching ignores case and repeated whitespace. Entries must be loaded and visible, and duplicate matches fail rather than choosing the first. The action clicks once; it does not verify the resulting business operation. For Delete, it waits for a delete confirmation dialog without confirming it. Immediately follow it with Click Delete, choosing Confirm or Cancel; this step fails if the dialog has disappeared rather than clicking another Delete command. If a Delete button does not open a confirmation dialog, the step fails after the click and is not retried.

The actions only operate inside the Timeline and its associated or newly opened menu. They do not fall back to a form-wide New button or a similarly named item elsewhere. Multiple visible Timelines require focusing the intended one first. Missing, disabled or ambiguous controls, an unavailable type, or an editor that does not open causes an explicit failure. Browser execution does not automatically retry after opening starts, avoiding duplicate drafts or entries if navigation interrupts the response.

For Create Timeline Activity, success means a new matching editable activity form opened in the run tab—not that the activity was saved or an email was sent. Follow it with field-entry and the appropriate Save command. The dedicated Note and Post actions are complete operations: they only pass after submission produces a new or updated Timeline entry containing the supplied text. Custom layouts, separate-window editors, and full-document navigation still need live-environment validation.

Commands & keys

ActionPurpose
Click NewSelect the current page's New command.
Click SaveUse Save Only or Save and Close. Browser, Background, and Docker execution check duplicate dialogs, validation failures, and rejected writes before advancing. Save and Close also confirms the form closed.
Click DeleteClick the exact Delete command and choose Confirm or Cancel in its confirmation dialog. Existing saved steps without a selection default to Confirm.
Assign OwnerOpen the Assign dialog and set the record owner to Me, an exact User, or an exact Team. Ambiguous owner matches fail instead of selecting the first result.
Click buttonClick a visible button by its exact accessible name. Prefer a dedicated action when one exists; duplicate matches fail as ambiguous.
Press keyChoose from documented model-driven app shortcuts. Each option explains where it applies; behaviour depends on the focused control. Function keys are limited to F2 and F4, with Ctrl + F6 and Ctrl + Shift + F6 for page-region navigation. Existing saved combinations are retained, but unrecognised combinations fail explicitly in Browser mode. Browser execution requires Testgrity Recorder 0.4.2 or later with its debugger permission. Add a verification step to check the intended effect.

Business Process Flow

ActionPurpose
Click BPF stageClick an exact stage inside the Business Process Flow without advancing it.
Move BPF stageSelect Back, Next, or Finish and verify the stage transition or completed state.
Set BPF fieldSet an exact editable field only in the Business Process Flow and verify the accepted value.

Validation & assertions

ActionPurpose
Verify message/textCheck that matching text is rendered and visible. Hidden text does not pass.
Check accessCompare a selected D365 persona's entity permission levels or record access against configured expectations. Requires a named Run as persona and Background suite execution. See Access regression testing.
Verify record existsCheck an exact record name in a form title or grid result. Ordinary page text does not count. This confirms presence, not which test created the record.
Verify field valueRead an exact form field and compare its value exactly.
Verify field stateCheck an exact field for visible, hidden, enabled, or disabled state. Missing fields fail, including hidden assertions.
Verify field required levelCheck explicit field markers for none, recommended, or required.
Verify view columnsCheck exact visible headers in one unambiguous loaded grid.
Verify section visibilityCheck an exact form section for shown or hidden state. A missing section fails.
Verify tab visibilityCheck an exact form tab for shown or hidden state. A missing tab fails.
Verify form typeCheck explicit form markup for a normal or Quick Create form. A non-form page fails.
Verify active BPF stageCheck an exact stage using explicit active-state markers rather than broad text matching.
Verify BPF field valueCompare an exact Business Process Flow field with an expected value.
Verify BPF field requiredCheck explicit required-state markers on an exact Business Process Flow field.

Variables

ActionPurpose
Set variableAssign a literal or interpolated value to a defined case variable for subsequent steps.

Define variables in Case variables above the Action Library's action groups. Supported inputs accept variable badges through drag-and-drop or their braces picker. Read actions and Dataverse Create also expose Save output to variable. See Case variables for types, supported inputs, output capture, and execution scope.

Dataverse data & cleanup

For automatic cleanup of explicit Create actions and supported form Save steps, enable Clean up created Dataverse records in Case details. Both Browser and Background runs use the durable cleanup queue. See cleanup status and retries.

ActionPurpose
Create Dataverse recordCreate a record from metadata-selected field rows and save its returned GUID under a case-scoped reference.
Read Dataverse recordRetrieve explicitly selected columns with $select and record their raw and formatted values in the result.
Update Dataverse recordUpdate metadata-selected fields on a named reference, the current record, or a GUID.
Verify Dataverse recordPoll selected persisted values for up to 30 seconds and compare them with typed expectations.
Delete Dataverse recordDelete a named reference, the current record, or a GUID for deliberate cleanup.

These actions run in both Background and Browser modes. In Browser mode, the Web API request runs inside the authenticated Dynamics tab without opening a form, and a non-blocking status popup identifies it as a Dataverse background process. Create requires a unique reference such as testAccount; later steps can use that reference, Current, or a GUID. References are isolated to the current test case. Fields use the same row editor as Set fields rather than raw JSON, and Create or Update hides attributes that Dataverse metadata marks as non-writable for that operation. The first version supports text, numbers, currency, dates, two options, and identifiers. Choices and lookups are excluded until option-value and relationship-target metadata can produce correct Web API payloads. Date-and-time values entered without an offset are treated as UTC.

Older current-record Dataverse actions remain compatible with saved tests but no longer appear in the Action Library.

Legacy Xrm actions

The deprecated global Xrm.Page API is not used. Old Read, Set, and Verify Xrm attribute steps remain compatible by operating on the corresponding form field through the user interface. Use Read field value, Set field value, and Verify field value for new tests.

Set Xrm submit mode, Set field visibility, Set field disabled, and Set field required level are retired and no longer appear in the Action Library. Microsoft only provides the supported formContext inside a Dynamics event execution context. Configure those behaviours in the app or its business rules, then assert the visible result in Testgrity.

Some recorded or existing cases may also contain supported actions that are not currently displayed in the Action Library, such as lookup selection, field-disabled verification, or legacy Xrm compatibility actions.

Power Pages

Use these actions in Power Pages cases. The six categories below match the Power Pages Action Library. They support Browser and Background execution; portal personas are selected in Log in to portal.

Portal navigation

ActionTarget and behaviour
Open portalSelect a site discovered through the active Dataverse connection. Background opens anonymously; Browser keeps the current profile's portal session.
Log in to portalSelect a persona for the most recently opened site. Background restores and verifies its saved session; Browser verifies the current signed-in user without restoring cookies.
Open portal pageEnter a relative path starting with / that stays on the selected site.
Click portal button/linkEnter one button or link's exact accessible name.

Portal forms & fields

ActionTarget and behaviour
Fill portal fieldEnter the exact accessible field label and a value.
Select portal optionEnter the exact accessible select-field label and the option's visible label.
Set portal checkboxField label and true/false; preserves an already correct state.
Select portal radio optionLabelled radio group and exact option label.
Set portal lookupField label and exact result; supports combobox suggestions and the standard lookup dialog.
Next portal form stepNext button name and expected destination step.
Previous portal form stepBack button name and expected destination step.
Verify portal form stepExact current progress-step text, or a heading if no progress indicator is present.

Portal lists

ActionTarget and behaviour
Search portal listList name or css: selector and search text.
Filter portal listList, inline filter field label, and filter value.
Open portal list rowList and an exact cell value identifying one row with a unique link.
Change portal list pageList and the exact Next, Previous, or numbered page-control label; waits for results or the current page to change.
Verify portal list resultsList and expected loaded row count and/or exact cell text. Count applies to the current page. Zero rows requires an explicit empty state.

Portal custom actions

ActionTarget and behaviour
Custom portal actionRun a pinned, validated JavaScript/TypeScript version with named inputs, case-scoped outputs, logs, and a hard timeout. See Custom portal actions.

Portal files

ActionTarget and behaviour
Upload portal fileUpload field label and a file selected in the Designer, up to 5 MiB. Submit the form separately.
Verify portal downloadable fileLink name and filename; fetches the same-site attachment and verifies a nonempty response without saving a local file.

Portal validation & access

ActionTarget and behaviour
Verify portal textEnter one exact visible text to assert that it appears.
Verify portal field valueField label and expected value; dropdowns compare the selected option label.
Verify portal field stateField label and required/optional, visible/hidden, enabled/disabled, readonly/editable, or checked/unchecked.
Verify portal validation errorField label and exact associated error message; use Form for a validation summary.
Verify portal page accessSame-site path, exact expected HTTP status, and expected page text. Redirects and network errors fail.

Add Open portal before other website actions. Targets must identify one visible element. See Testing Power Pages for site discovery, persona authentication, anonymous testing, and session behaviour.