Search K
Appearance
Appearance
The D365 Search Records node allows you to search for and retrieve multiple records from Microsoft Dynamics 365 / Dataverse based on specified filter criteria.
It can be used to query standard or custom entities and return matching records as structured data for use later in the workflow.
This node is useful for:
When added to a workflow, this node presents a configuration form with the following input fields.
| Field | Type | Description | Required | Visible When |
|---|---|---|---|---|
| ServiceAccount - Microsoft Dynamics 365 | Service Account Picker | Select the Dynamics 365 service account that has permission to query records. | ✅ | Always |
| Entity Type | Text | The logical name of the entity to search (e.g., account, contact, lead, or your custom entity). | ✅ | Always |
| Filter | Key/Value Dictionary | Key/value pairs used as filter criteria for searching records. Example: { "statecode": 0, "customertypecode": 1 }All filter conditions are combined using AND logic. | ❌ | Optional |
| Columns | List of Text | List of fields (columns) to return from each record. If left empty, default attributes are returned. Example: ["name", "emailaddress1", "accountnumber"] | ❌ | Optional |
| Max Pages | Text (Number) | The maximum number of pages to retrieve from the Dataverse API (default: 100). Each page typically contains up to 5000 records. | ❌ | Optional |
| Setting | Example Value |
|---|---|
| ServiceAccount - Microsoft Dynamics 365 | DynamicsProdService |
| Entity Type | account |
| Filter | { "statecode": 0 } |
| Columns | ["name", "accountnumber", "emailaddress1"] |
| Max Pages | 5 |
Result:
Retrieves all active accounts (where statecode = 0), returning up to 5 pages of results with name, account number, and email fields.
| Setting | Example Value |
|---|---|
| ServiceAccount - Microsoft Dynamics 365 | DynamicsProdService |
| Entity Type | contact |
| Filter | { "address1_city": "Melbourne" } |
| Columns | ["firstname", "lastname", "emailaddress1"] |
Result:
Returns a list of all contacts located in Melbourne, including their names and email addresses.
After execution, the node produces the following output variables.
| Output Variable | Type | Description |
|---|---|---|
| Records | List of Objects | Array of record objects, each containing key/value pairs for the requested fields. |
| Record Count | Number | Total number of records found. |
| Entity Type | Text | The entity type that was queried. |
{
"Records": [
{
"name": "Tentech Pty Ltd",
"accountnumber": "A1001",
"emailaddress1": "info@tentech.com"
},
{
"name": "MinuteView",
"accountnumber": "A1002",
"emailaddress1": "support@minuteview.com"
}
],
"Record Count": 2,
"Entity Type": "account"
}Records output into a Loop Collection node to iterate over each record.| Status | Description |
|---|---|
| Completed | Records retrieved successfully. |
| Fail | Search failed due to invalid configuration or connection issue. |
If the node fails, it will stop execution with a Fail status. Common error causes include:
emailaddress1 instead of “Email Address”.Category: Integrations → Microsoft Dynamics 365 Task Name: D365SearchRecords