Skip to main content

Testinvocation

Properties

NameTypeDescriptionNotes
TriggerIdStringTrigger ID[required]
VarInputSystemCollectionsHashtableMock input to use for test invocation. This must adhere to the input schema defined in the trigger being invoked. If this property is omitted, then the default trigger sample payload will be sent.[optional]
ContentJsonSystemCollectionsHashtableJSON map of invocation metadata.[required]
SubscriptionIds[]StringOnly send the test event to the subscription IDs listed. If omitted, the test event will be sent to all subscribers.[optional]

Examples

  • Prepare the resource
$Testinvocation = Initialize-Testinvocation  -TriggerId idn:access-request-post-approval `
-VarInput {"identityId":"201327fda1c44704ac01181e963d463c"} `
-ContentJson {"workflowId":1234} `
-SubscriptionIds ["0f11f2a4-7c94-4bf3-a2bd-742580fe3bde"]
  • Convert the resource to JSON
$Testinvocation | ConvertTo-JSON

[Back to top]