Invoke Command

Use the invoke command to call an external service, page, or script.

The following table shows the properties of the invoke command.

Property Required Description

method

Yes

Specifies the HTTP method to use for invocation. Valid values are GET, POST, PUT, DELETE, and HEAD.

url

Yes

A URL expression to specify the URL for the third-party service. It can be an absolute or relative URL. If a relative URL is specified, it will be added to the baseUrl of the application, if specified.

data

No

An expression that specifies data to be sent with the URL. See Expressions.

A JSON payload can added to the request body as a string object.

appLinkRole

No

If the action is a request to create an application link (applink), use appLinkRole to specify the role to use for the applink. Valid values are contributor, downloader, and viewer.

header

No

A custom header to include when making POST calls.

token

No

Specifies if any special security token needs to be passed. Valid values are PCS (PCS OAUTH token) and NONE.