ppds_metadata_create_relationship
Creates a relationship (one-to-many or many-to-many) between two Dataverse tables. For one-to-many, a lookup column is created on the referencing entity. Supports dry-run mode.
Input schema
| Name | Type | Required | Description |
|---|---|---|---|
| solution | String | yes | Unique name of the solution to add the relationship to. |
| referencedEntity | String | yes | Logical name of the referenced (parent / 'one' side) entity. |
| referencingEntity | String | yes | Logical name of the referencing (child / 'many' side) entity. |
| schemaName | String | yes | Schema name for the relationship. |
| relationshipType | String | yes | Relationship type: 'oneToMany' or 'manyToMany'. |
| lookupSchemaName | String | no | Schema name of the lookup column on the referencing entity (required for oneToMany, ignored for manyToMany). |
| lookupDisplayName | String | no | Display name of the lookup column (required for oneToMany, ignored for manyToMany). |
| dryRun | Boolean | no | If true, validates without persisting changes. |
Output
Returns Task<MetadataCreateRelationshipResult>.