For the complete documentation index, see llms.txt. This page is also available as Markdown.

Invoke-UDEndpoint

Invokes an endpoint directly.

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

Last updated

Was this helpful?