Invoke-UDEndpoint
SYNOPSIS
Invokes an endpoint directly.
SYNTAX
Invoke-UDEndpoint -Id <String> [-Session] [-Wait] [<CommonParameters>]DESCRIPTION
Invokes an endpoint directly. For example, this can be used to execute button OnClick handlers.
EXAMPLES
Example 1
New-UDButton -Text "Click Me" -OnClick {
Show-UDToast "I was clicked!"
} -Id 'Button'
New-UDButton -Text "Invoke Me" -OnClick {
Invoke-UDEndpoint -Id 'Button'
}Click one button with another one.
PARAMETERS
-Id
The ID of the endpoint to invoke.
-Session
Whether to include user session information when invoke the endpoint.
-Wait
Whether to wait for the endpoint to execute before continuing.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
System.Object
NOTES
RELATED LINKS
Last updated
Was this helpful?