associate_records
Create a relationship link between two Dataverse records via a navigation property. Handles N:1 lookup and 1:N collection associations.
Instructions
Create a relationship link between two Dataverse records via a navigation property. Use isSingleValued=true for lookup (N:1) properties; false for collection (1:N) navigation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tableName": "<tableName>",
"recordId": "<recordId>",
"navigationProperty": "<navigationProperty>",
"relatedTableName": "<relatedTableName>",
"relatedRecordId": "<relatedRecordId>",
"isSingleValued": "<isSingleValued>"
},
"name": "associate_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| recordId | Yes | GUID of the record, e.g. '00000000-0000-0000-0000-000000000000' | |
| tableName | Yes | Logical (schema) name of the Dataverse table, e.g. 'account' or 'crb69_myentity' | |
| isSingleValued | Yes | true for lookup (single-valued) nav properties; false for collection-valued | |
| relatedRecordId | Yes | GUID of the record to associate | |
| relatedTableName | Yes | Logical name of the related table | |
| navigationProperty | Yes | Navigation property name on the primary entity, e.g. 'primarycontactid' |