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
| Name | Type | Required | Description |
|---|---|---|---|
| solution | String | yes | Unique name of the solution containing the table. |
| entityName | String | yes | Logical name of the entity to add the key to. |
| schemaName | String | yes | Schema name for the key. |
| displayName | String | yes | Display name of the key. |
| attributesJson | String | yes | Comma-separated column logical names or JSON array of strings (e.g., 'col1,col2' or '["col1","col2"]'). |
| dryRun | Boolean | no | If true, validates without persisting changes. |
Output
Returns Task<MetadataCreateKeyResult>.