Skip to main content

ppds_metadata_create_key

Creates an alternate key on a Dataverse table. Attributes can be provided as a comma-separated list or a JSON array of column logical names. Supports dry-run mode.

Input schema

NameTypeRequiredDescription
solutionStringyesUnique name of the solution containing the table.
entityNameStringyesLogical name of the entity to add the key to.
schemaNameStringyesSchema name for the key.
displayNameStringyesDisplay name of the key.
attributesJsonStringyesComma-separated column logical names or JSON array of strings (e.g., 'col1,col2' or '["col1","col2"]').
dryRunBooleannoIf true, validates without persisting changes.

Output

Returns Task<MetadataCreateKeyResult>.