create_step_image
Register a pre or post image on an existing Dataverse plug-in step to capture column values before or after an operation, enabling access in code via the alias.
Instructions
Register a pre/post image on an existing step, so the plug-in can read values before/after the operation.
step_id: GUID of the step (returned by create_step or list_steps). attributes: comma-separated list of columns to include (e.g. 'description,firstname'); empty = all columns. image_type: 'PreImage' (values before the operation), 'PostImage' (after), or 'Both'. Pre-Image is not available for the 'Create' message (the row does not exist yet); Post-Image is not available for 'Delete'. alias: name used in the C# code to access the image (e.g. localPluginContext.PluginExecutionContext.PreEntityImages["PreImage"]). Empty uses 'image_type' itself as the alias.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | ||
| step_id | Yes | ||
| attributes | No | ||
| image_type | No | PreImage | |
| environment | No |