Skip to content

SharedVariableAttribute

SharedVariableAttribute seeds a shared variable value as class-level metadata.

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.

[SharedVariableAttribute("CorrelationHint", "\"account-update\"")]
  • SharedVariableAttribute(string name, string valueJson)
  • Name — shared variable name.
  • ValueJson — JSON-shaped value.
  • The current public constructor stores the provided values directly.
  • The attribute does not validate JSON structure or whether the name matches a consumer’s expectations.
  • Interpretation of the value belongs to the consuming runtime or tool.

Use this attribute when reflection-based tooling needs a seeded shared-variable payload as part of a plugin execution scenario.