> For the complete documentation index, see [llms.txt](https://docs.appstrategy.com/apprules-r-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appstrategy.com/apprules-r-documentation/platform/platform-features/conditions/condition-categories/conditions-records.md).

# Conditions-Records

The Records condition contains the following conditions categorized as follows:

<table><thead><tr><th width="126.33333333333331">Category</th><th width="251">Type</th><th>Description</th></tr></thead><tbody><tr><td>AuditLog</td><td>IsRetrievedRecordIdInAuditLog</td><td>Evaluates if a retrieved source record Id is in the AuditLogs table</td></tr><tr><td>Source</td><td>IsPreloadedRecordsCountComparisonTrue</td><td>Executes a condition based on the number of records in a preloaded records activity.  Note: The number can fluctuate based on the actions performed on the list</td></tr><tr><td></td><td>IsQueryCountComparisonTrue</td><td>The IsQueryCountComparisonTrue condition is executed by comparing the number of records in a SQL select count statement to a specific numeric value using operators including EqualTo, NotEqualTo, GreaterThan, GreaterThanOrEqualTo, LessThan, LessThanOrEqualTo, etc.  Note: You can use SQL Select statement for all supported data sources.</td></tr><tr><td></td><td>IsRecordsSelectedCountComparisonTrue</td><td>IsRecordsSelectedCountComparisonTrue</td></tr><tr><td></td><td>SourceRecordExists</td><td>The SourceRecordExists condition evaluates if a specific data record exists.  The supported record types include data source, preloaded, list and picklist records.</td></tr><tr><td></td><td>SourceRecordRead</td><td>The SourceRecordReadCondition condition is used for evaluating whether a record was successfully read from a Source.</td></tr><tr><td>Target</td><td>IsRecordsDeletedCountComparisonTrue</td><td>Executes a condition based on the number of records that have been deleted by a Target activity.</td></tr><tr><td></td><td>IsRecordsInsertedCountComparisonTrue</td><td>IsRecordsInsertedCountComparisonTrue</td></tr><tr><td></td><td>IsRecordsSkippedCountComparisonTrue</td><td>IsRecordsSkippedCountComparisonTrue</td></tr><tr><td></td><td>IsRecordsUpdatedCountComparisonTrue</td><td>IsRecordsUpdatedCountComparisonTrue</td></tr><tr><td></td><td>TargetLastRecordAction</td><td>The LastRecordActionCondition condition is used for evaluating the last record action of a specific Target activity.  The action can be checked to see if it is Delete, Insert, Update or Undefined.</td></tr><tr><td></td><td>TargetRecordSaved</td><td>The TargetRecordSavedCondition condition is used for evaluating whether a record was successfully saved to a Target.</td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.appstrategy.com/apprules-r-documentation/platform/platform-features/conditions/condition-categories/conditions-records.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
