Skip to main content

create

Create a new Dataverse relationship

Usage​

ppds relationship create [options]

Options​

LongShortTypeDefaultDescription
--cascade-assignCascadeBehavior?Cascade behavior for assign: Cascade, Active, NoCascade, UserOwned
--cascade-deleteCascadeBehavior?Cascade behavior for delete: Cascade, Active, NoCascade, RemoveLink, Restrict
--correlation-idstringCorrelation ID for distributed tracing
--debugboolShow trace-level diagnostic output
--dry-runboolValidate only, do not persist changes
--environment-envstringOverride the environment URL. Takes precedence over profile's bound environment.
--fromstringSource entity logical name (referenced/parent for 1:N, entity1 for N:N)
--intersect-entitystringSchema name of the intersect entity (many-to-many only). Defaults to --name.
--lookup-display-namestringDisplay name of the lookup column (one-to-many only)
--lookup-namestringSchema name of the lookup column (one-to-many only)
--namestringSchema name for the relationship
--output-format-fOutputFormatOutput format
--profile-pstringAuthentication profile name
--quiet-qboolShow only warnings and errors
--solution-sstringSolution unique name to add the relationship to
--tostringTarget entity logical name (referencing/child for 1:N, entity2 for N:N)
--typestringRelationship type: one-to-many or many-to-many
--verbose-vboolShow detailed output including debug messages