AptlyStar

Microsoft Dataverse

Manage records in Microsoft Dataverse tables

Instrucciones de uso

Integrate Microsoft Dataverse into your workflow. Create, read, update, delete, upsert, associate, query, search, and execute actions and functions against Dataverse tables using the Web API. Supports bulk operations, FetchXML, file uploads, and relevance search. Works with Dynamics 365, Power Platform, and custom Dataverse environments.

Herramientas

microsoft_dataverse_associate

Associate two records in Microsoft Dataverse via a navigation property. Creates a relationship between a source record and a target record. Supports both collection-valued (POST) and single-valued (PUT) navigation properties.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíSource entity set name (e.g., accounts)
recordIdstringSíSource record GUID
navigationPropertystringSíNavigation property name (e.g., contact_customer_accounts for collection-valued, or parentcustomerid_account for single-valued)
targetEntitySetNamestringSíTarget entity set name (e.g., contacts)
targetRecordIdstringSíTarget record GUID to associate
navigationTypestringNoType of navigation property: "collection" (default, uses POST) or "single" (uses PUT for lookup fields)

Salida

ParámetroTipoDescripción
successbooleanWhether the association was created successfully
entitySetNamestringSource entity set name used in the association
recordIdstringSource record GUID that was associated
navigationPropertystringNavigation property used for the association
targetEntitySetNamestringTarget entity set name used in the association
targetRecordIdstringTarget record GUID that was associated

microsoft_dataverse_create_multiple

Create multiple records of the same table type in a single request. Each record in the Targets array must include an @odata.type annotation. Recommended batch size: 100-1000 records for standard tables.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
entityLogicalNamestringSíTable logical name for @odata.type annotation (e.g., account, contact). Used to set Microsoft.Dynamics.CRM.{entityLogicalName} on each record.
recordsobjectSíArray of record objects to create. Each record should contain column logical names as keys. The @odata.type annotation is added automatically.

Salida

ParámetroTipoDescripción
idsarrayArray of GUIDs for the created records
countnumberNumber of records created
successbooleanWhether all records were created successfully

microsoft_dataverse_create_record

Create a new record in a Microsoft Dataverse table. Requires the entity set name (plural table name) and record data as a JSON object.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
dataobjectSíRecord data as a JSON object with column names as keys

Salida

ParámetroTipoDescripción
recordIdstringThe ID of the created record
recordobjectDataverse record object. Contains dynamic columns based on the queried table, plus OData metadata fields.
successbooleanWhether the record was created successfully

microsoft_dataverse_delete_record

Delete a record from a Microsoft Dataverse table by its ID.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
recordIdstringSíThe unique identifier (GUID) of the record to delete

Salida

ParámetroTipoDescripción
recordIdstringThe ID of the deleted record
successbooleanOperation success status

microsoft_dataverse_disassociate

Remove an association between two records in Microsoft Dataverse. For collection-valued navigation properties, provide the target record ID. For single-valued navigation properties, only the navigation property name is needed.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíSource entity set name (e.g., accounts)
recordIdstringSíSource record GUID
navigationPropertystringSíNavigation property name (e.g., contact_customer_accounts for collection-valued, or parentcustomerid_account for single-valued)
targetRecordIdstringNoTarget record GUID (required for collection-valued navigation properties, omit for single-valued)

Salida

ParámetroTipoDescripción
successbooleanWhether the disassociation was completed successfully
entitySetNamestringSource entity set name used in the disassociation
recordIdstringSource record GUID that was disassociated
navigationPropertystringNavigation property used for the disassociation
targetRecordIdstringTarget record GUID that was disassociated

microsoft_dataverse_download_file

Download a file from a file or image column on a Dataverse record. Returns the file content as a base64-encoded string along with file metadata from response headers.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
recordIdstringSíRecord GUID to download the file from
fileColumnstringSíFile or image column logical name (e.g., entityimage, cr_document)

Salida

ParámetroTipoDescripción
fileContentstringBase64-encoded file content
fileNamestringName of the downloaded file
fileSizenumberFile size in bytes
mimeTypestringMIME type of the file
successbooleanWhether the file was downloaded successfully

microsoft_dataverse_execute_action

Execute a bound or unbound Dataverse action. Actions perform operations with side effects (e.g., Merge, GrantAccess, SendEmail, QualifyLead). For bound actions, provide the entity set name and record ID.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
actionNamestringSíAction name (e.g., Merge, GrantAccess, SendEmail). Do not include the Microsoft.Dynamics.CRM. namespace prefix for unbound actions.
entitySetNamestringNoEntity set name for bound actions (e.g., accounts). Leave empty for unbound actions.
recordIdstringNoRecord GUID for bound actions. Leave empty for unbound or collection-bound actions.
parametersobjectNoAction parameters as a JSON object. For entity references, include @odata.type annotation (e.g., {"Target": {"@odata.type": "Microsoft.Dynamics.CRM.account", "accountid": "..."}})

Salida

ParámetroTipoDescripción
resultobjectAction response data. Structure varies by action. Null for actions that return 204 No Content.
successbooleanWhether the action executed successfully

microsoft_dataverse_execute_function

Execute a bound or unbound Dataverse function. Functions are read-only operations (e.g., RetrievePrincipalAccess, RetrieveTotalRecordCount, InitializeFrom). For bound functions, provide the entity set name and record ID.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
functionNamestringSíFunction name (e.g., RetrievePrincipalAccess, RetrieveTotalRecordCount). Do not include the Microsoft.Dynamics.CRM. namespace prefix for unbound functions.
entitySetNamestringNoEntity set name for bound functions (e.g., systemusers). Leave empty for unbound functions.
recordIdstringNoRecord GUID for bound functions. Leave empty for unbound functions.
parametersstringNoFunction parameters as a comma-separated list of name=value pairs for the URL (e.g., "LocalizedStandardName='Pacific Standard Time\

Salida

ParámetroTipoDescripción
resultobjectFunction response data. Structure varies by function.
successbooleanWhether the function executed successfully

microsoft_dataverse_fetchxml_query

Execute a FetchXML query against a Microsoft Dataverse table. FetchXML supports aggregation, grouping, linked-entity joins, and complex filtering beyond OData capabilities.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
fetchXmlstringSíFetchXML query string. Must include <fetch> root element and <entity> child element matching the table logical name.

Salida

ParámetroTipoDescripción
recordsarrayArray of Dataverse records. Each record has dynamic columns based on the table schema.
countnumberNumber of records returned in the current page
fetchXmlPagingCookiestringPaging cookie for retrieving the next page of results
moreRecordsbooleanWhether more records are available beyond the current page
successbooleanOperation success status

microsoft_dataverse_get_record

Retrieve a single record from a Microsoft Dataverse table by its ID. Supports $select and $expand OData query options.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
recordIdstringSíThe unique identifier (GUID) of the record to retrieve
selectstringNoComma-separated list of columns to return (OData $select)
expandstringNoNavigation properties to expand (OData $expand)

Salida

ParámetroTipoDescripción
recordobjectDataverse record object. Contains dynamic columns based on the queried table, plus OData metadata fields.
recordIdstringThe record primary key ID (auto-detected from response)
successbooleanWhether the record was retrieved successfully

microsoft_dataverse_list_records

Query and list records from a Microsoft Dataverse table. Supports OData query options for filtering, selecting columns, ordering, and pagination.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
selectstringNoComma-separated list of columns to return (OData $select)
filterstringNoOData $filter expression (e.g., statecode eq 0)
orderBystringNoOData $orderby expression (e.g., name asc, createdon desc)
topnumberNoMaximum number of records to return (OData $top)
expandstringNoNavigation properties to expand (OData $expand)
countstringNoSet to "true" to include total record count in response (OData $count)

Salida

ParámetroTipoDescripción
recordsarrayArray of Dataverse records. Each record has dynamic columns based on the table schema.
countnumberNumber of records returned in the current page
totalCountnumberTotal number of matching records server-side (requires $count=true)
nextLinkstringURL for the next page of results
successbooleanOperation success status

Perform a full-text relevance search across Microsoft Dataverse tables. Requires Dataverse Search to be enabled on the environment. Supports simple and Lucene query syntax.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
searchTermstringSíSearch text (1-100 chars). Supports simple syntax: + (AND), | (OR), - (NOT), * (wildcard), "exact phrase"
entitiesstringNoJSON array of search entity configs. Each object: {"Name":"account","SelectColumns":["name"],"SearchColumns":["name"],"Filter":"statecode eq 0"}
filterstringNoGlobal OData filter applied across all entities (e.g., "createdon gt 2024-01-01")
facetsstringNoJSON array of facet specifications (e.g., ["entityname,count:100","ownerid,count:100"])
topnumberNoMaximum number of results (default: 50, max: 100)
skipnumberNoNumber of results to skip for pagination
orderBystringNoJSON array of sort expressions (e.g., ["createdon desc"])
searchModestringNoSearch mode: "any" (default, match any term) or "all" (match all terms)
searchTypestringNoQuery type: "simple" (default) or "lucene" (enables regex, fuzzy, proximity, boosting)

Salida

ParámetroTipoDescripción
resultsarrayArray of search result objects
↳ IdstringRecord GUID
↳ EntityNamestringTable logical name (e.g., account, contact)
↳ ObjectTypeCodenumberEntity type code
↳ AttributesobjectRecord attributes matching the search. Keys are column logical names.
↳ HighlightsobjectHighlighted search matches. Keys are column names, values are arrays of strings with {crmhit}/{/crmhit} markers.
↳ ScorenumberRelevance score for this result
totalCountnumberTotal number of matching records across all tables
countnumberNumber of results returned in this page
facetsobjectFacet results when facets were requested. Keys are facet names, values are arrays of facet value objects with count and value properties.
successbooleanOperation success status

microsoft_dataverse_update_multiple

Update multiple records of the same table type in a single request. Each record must include its primary key. Only include columns that need to be changed. Recommended batch size: 100-1000 records.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
entityLogicalNamestringSíTable logical name for @odata.type annotation (e.g., account, contact). Used to set Microsoft.Dynamics.CRM.{entityLogicalName} on each record.
recordsobjectSíArray of record objects to update. Each record must include its primary key (e.g., accountid) and only the columns being changed. The @odata.type annotation is added automatically.

Salida

ParámetroTipoDescripción
successbooleanWhether all records were updated successfully

microsoft_dataverse_update_record

Update an existing record in a Microsoft Dataverse table. Only send the columns you want to change.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
recordIdstringSíThe unique identifier (GUID) of the record to update
dataobjectSíRecord data to update as a JSON object with column names as keys

Salida

ParámetroTipoDescripción
recordIdstringThe ID of the updated record
successbooleanOperation success status

microsoft_dataverse_upload_file

Upload a file to a file or image column on a Dataverse record. Supports single-request upload for files up to 128 MB. The file content must be provided as a base64-encoded string.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
recordIdstringSíRecord GUID to upload the file to
fileColumnstringSíFile or image column logical name (e.g., entityimage, cr_document)
fileNamestringSíName of the file being uploaded (e.g., document.pdf)
filefileNoFile to upload (UserFile object)
fileContentstringNoBase64-encoded file content (legacy)

Salida

ParámetroTipoDescripción
recordIdstringRecord GUID the file was uploaded to
fileColumnstringFile column the file was uploaded to
fileNamestringName of the uploaded file
successbooleanWhether the file was uploaded successfully

microsoft_dataverse_upsert_record

Create or update a record in a Microsoft Dataverse table. If a record with the given ID exists, it is updated; otherwise, a new record is created.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)
entitySetNamestringSíEntity set name (plural table name, e.g., accounts, contacts)
recordIdstringSíThe unique identifier (GUID) of the record to upsert
dataobjectSíRecord data as a JSON object with column names as keys

Salida

ParámetroTipoDescripción
recordIdstringThe ID of the upserted record
createdbooleanTrue if the record was created, false if updated
recordobjectDataverse record object. Contains dynamic columns based on the queried table, plus OData metadata fields.
successbooleanOperation success status

microsoft_dataverse_whoami

Retrieve the current authenticated user information from Microsoft Dataverse. Useful for testing connectivity and getting the user ID, business unit ID, and organization ID.

Entrada

ParámetroTipoObligatorioDescripción
environmentUrlstringSíDataverse environment URL (e.g., https://myorg.crm.dynamics.com\)

Salida

ParámetroTipoDescripción
userIdstringThe authenticated user ID
businessUnitIdstringThe business unit ID
organizationIdstringThe organization ID
successbooleanOperation success status

On this page