Skip to content

InputParameterAttribute

InputParameterAttribute seeds a plugin execution context input parameter as metadata on the plugin class.

This is a manual reference page based on the current public contract in xrmghost-attributes, which remains the source of truth until any future generated reference exists.

[InputParameterAttribute("Target", "{ \"__entityName\": \"account\" }")]
  • InputParameterAttribute(string name, string valueJson)
  • Name — input parameter name, such as Target.
  • ValueJson — JSON-shaped string value for the parameter.
  • The current public constructor stores the provided values directly.
  • The attribute does not validate that valueJson matches a Dataverse schema.
  • Consumers decide whether the JSON represents a simple scalar, an entity-like payload, or another complex object.

Use this attribute when scenario generators or other reflection-based tooling need a starting input parameter payload.