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.
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' |