create_model_relationship
Creates native 1:N (with a new lookup) or N:N relationships in Dynamics 365, previewing metadata checks and the create request by default before execution.
Instructions
Create native 1:N (with a new Lookup) or N:N relationship. Default preview runs metadata reads and read-only POST eligibility checks, then exposes cascade rules and native create body. Checks publisher, managed properties and duplicate names. No implicit publish, form editing or update of existing relationships.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| dryRun | No | Default true performs reads/eligibility checks and returns a native request preview. Set false to execute. | |
| lookup | No | ||
| cascade | No | ||
| dry_run | No | Default true performs reads/eligibility checks and returns a native request preview. Set false to execute. | |
| entity1 | No | ||
| entity2 | No | ||
| entity_1 | No | ||
| entity_2 | No | ||
| schemaName | No | ||
| schema_name | No | ||
| referencedEntity | No | ||
| referenced_entity | No | ||
| referencingEntity | No | ||
| referencing_entity | No | ||
| solutionUniqueName | No | Existing unmanaged solution; its publisher prefix is validated for new schemas. | |
| environment_profile | No | Optional named environment profile for this call; omit to use the configured default. | |
| intersectEntityName | No | ||
| solution_unique_name | No | Existing unmanaged solution; its publisher prefix is validated for new schemas. | |
| intersect_entity_name | No |