Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

Use this function to execute a JWT remote action.

Code Block
languagebash
titleSyntax
linenumberstrue
executeRemoteAction(actionName) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
executeRemoteAction("Great action")

This example executes the action called "Great action" and returns the whole JSON response.

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
actionName

Status
subtletrue
titletext

Name of the action to execute (case sensitive)
UI Expand
titleOutput

The function returns a

Status
subtletrue
titletext
representing the following JSON.:

Code Block
linenumberstrue
{
	"status": 200 // Returned status code from the executed action
	"body": any // Response body that was returned from the executed action
}



UI Text Box
sizemedium
typeinfo

Variant where you can specify a jmes path.

Code Block
languagebash
titleSyntax
linenumberstrue
executeRemoteAction(actionName, jmes) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
executeRemoteAction("Great action", "body")

This example executes the action called "Great action" and returns only the body part of the JSON response.

Code Block
languagebash
linenumberstrue
executeRemoteAction("Great action", "body.data")

This example executes the action called "Great action" and returns only the data part of the JSON response's body object.

Code Block
languagebash
linenumberstrue
executeRemoteAction("Great action", "status")

This example executes the action called "Great action" and returns only the status code of the JSON response.

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
actionName

Status
subtletrue
titletext

Name of the action to execute (case sensitive)
jmes

Status
subtletrue
titletext

A valid JMES path to retrieve only specific data from the returned json object
UI Expand
titleOutput

The function returns a

Status
subtletrue
titletext
representing the following JSON (depending on the provided jmes path):

Code Block
linenumberstrue
{
	"status": 200 // Returned status code from the executed action
	"body": any // Response body that was returned from the executed action
}



UI Text Box
sizemedium
typeinfo

Variant where you can specify additional parameters.

Code Block
languagebash
titleSyntax
linenumberstrue
executeRemoteAction(actionName, parameterList) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
executeRemoteAction("Great action", ["query": "Demo", "path": "projects"])

This example executes the action called "Great action" and returns the whole json response. In addition, the parameters "query" and "path" will be added to the request.

Code Block
languagebash
linenumberstrue
executeRemoteAction("POST action", ["body": "{\"userId\": 12, \"name\": \"John Doe\"}"])

This example executes the action called "POST action" and returns the whole json response. In addition, the action's request body will be populated with the provided JSON.

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
actionName

Status
subtletrue
titletext

Name of the action to execute (case sensitive)
parameterList

Status
subtletrue
titleParameter list

The parameter list's syntax is ["key": "value", "key2": "anotherValue", "key3": 12, ...].

The key must always be a text and unique within the parameter list.

The value can be of type text or number. It is also possible to enter there parser expressions that return either a text or a number.

The parameter list can be used to overwrite parameters set in the action configuration like the following:

  • If a key/ value pair is defined in the list and there is a query param with that key, the value for that param will be overwritten by the paramter list's value
  • If a key/ value pair is defined in the list and there is a path param with that key, the value for that param will be overwritten by the parameter list's value
  • If a key/ value pair is defined in the list and there is neither a query or path param with that key, this pair will be added as additional query param to the request
  • If the key is "body" and there is neither a query or path param with that key, this parameter will be used to set the action body
UI Expand
titleOutput

The function returns a

Status
subtletrue
titletext
representing the following JSON:

Code Block
linenumberstrue
{
	"status": 200 // Returned status code from the executed action
	"body": any // Response body that was returned from the executed action
}



UI Text Box
sizemedium
typeinfo

Variant where you can specify additional parameters and another connection.

Code Block
languagebash
titleSyntax
linenumberstrue
executeRemoteAction(actionName, parameterList, connectionName) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
executeRemoteAction("Great action", ["query": "Demo", "path": "projects"], "Some other connection")

This example executes the action called "Great action" and returns the whole json response. In addition, the parameters "query" and "path" will be added to the request and the connection called "Some other connection" is being used.

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
actionName

Status
subtletrue
titletext

Name of the action to execute (case sensitive)
parameterList

Status
subtletrue
titleParameter list

The parameter list's syntax is ["key": "value", "key2": "anotherValue", "key3": 12, ...].

The key must always be a text and unique within the parameter list.

The value can be of type text or number. It is also possible to enter there parser expressions that return either a text or a number.

The parameter list can be used to overwrite parameters set in the action configuration like the following:

  • If a key/ value pair is defined in the list and there is a query param with that key, the value for that param will be overwritten by the paramter list's value
  • If a key/ value pair is defined in the list and there is a path param with that key, the value for that param will be overwritten by the parameter list's value
  • If a key/ value pair is defined in the list and there is neither a query or path param with that key, this pair will be added as additional query param to the request
  • If the key is "body" and there is neither a query or path param with that key, this parameter will be used to set the action body
connectionName

Status
subtletrue
titletext

Name of the connection to use for the action (case sensitive)
UI Expand
titleOutput

The function returns a

Status
subtletrue
titletext
representing the following JSON:

Code Block
linenumberstrue
{
	"status": 200 // Returned status code from the executed action
	"body": any // Response body that was returned from the executed action
}



UI Text Box
sizemedium
typeinfo

Variant where you can specify a jmes path and additional parameters.

Code Block
languagebash
titleSyntax
linenumberstrue
executeRemoteAction(actionName, jmes, parameterList) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
executeRemoteAction("Great action", "body.data", ["query": "Demo", "path": "projects"])

This example executes the action called "Great action" and returns only the data part of the response's body. In addition, the parameters "query" and "path" will be added to the request and the connection called "Some other connection" is being used.

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
actionName

Status
subtletrue
titletext

Name of the action to execute (case sensitive)
jmes

Status
subtletrue
titletext

A valid JMES path to retrieve only specific data from the returned json object
parameterList

Status
subtletrue
titleParameter list

The parameter list's syntax is ["key": "value", "key2": "anotherValue", "key3": 12, ...].

The key must always be a text and unique within the parameter list.

The value can be of type text or number. It is also possible to enter there parser expressions that return either a text or a number.

The parameter list can be used to overwrite parameters set in the action configuration like the following:

  • If a key/ value pair is defined in the list and there is a query param with that key, the value for that param will be overwritten by the paramter list's value
  • If a key/ value pair is defined in the list and there is a path param with that key, the value for that param will be overwritten by the parameter list's value
  • If a key/ value pair is defined in the list and there is neither a query or path param with that key, this pair will be added as additional query param to the request
  • If the key is "body" and there is neither a query or path param with that key, this parameter will be used to set the action body
UI Expand
titleOutput

The function returns a

Status
subtletrue
titletext
representing the following JSON (depending on the provided jmes path):

Code Block
linenumberstrue
{
	"status": 200 // Returned status code from the executed action
	"body": any // Response body that was returned from the executed action
}



UI Text Box
sizemedium
typeinfo

Variant where you can specify a jmes path and another connection.

Code Block
languagebash
titleSyntax
linenumberstrue
executeRemoteAction(actionName, jmes, connectionName) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
executeRemoteAction("Great action", "body.data", "Different connection")

This example executes the action called "Great action" and returns the whole JSON response. In addition, the connection called "Different connection" is being used.

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
actionName

Status
subtletrue
titletext

Name of the action to execute (case sensitive)
jmes

Status
subtletrue
titletext

A valid JMES path to retrieve only specific data from the returned json object
connectionName

Status
subtletrue
titletext

Name of the connection to use for the action (case sensitive)
UI Expand
titleOutput

The function returns a

Status
subtletrue
titletext
representing the following JSON (depending on the provided jmes path):

Code Block
linenumberstrue
{
	"status": 200 // Returned status code from the executed action
	"body": any // Response body that was returned from the executed action
}



UI Text Box
sizemedium
typeinfo

Variant where you can specify a jmes path, a connection and additional parameters.

Code Block
languagebash
titleSyntax
linenumberstrue
executeRemoteAction(actionName, jmes, connectionName, parameterList) #Output: Text
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
executeRemoteAction("Great action", "body.data", "cool connection", ["query": "Demo", "path": "projects"])

This example executes the action called "Great action" and returns only the data part of the response's body. In addition, the parameters "query" and "path" will be added to the request and the connection called "cool connection" is being used.

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
actionName

Status
subtletrue
titletext

Name of the action to execute (case sensitive)
jmes

Status
subtletrue
titletext

A valid JMES path to retrieve only specific data from the returned json object
connectionName

Status
subtletrue
titletext

Name of the connection to use for the action (case sensitive)
parameterList

Status
subtletrue
titleParameter list

The parameter list's syntax is ["key": "value", "key2": "anotherValue", "key3": 12, ...].

The key must always be a text and unique within the parameter list.

The value can be of type text or number. It is also possible to enter there parser expressions that return either a text or a number.

The parameter list can be used to overwrite parameters set in the action configuration like the following:

  • If a key/ value pair is defined in the list and there is a query param with that key, the value for that param will be overwritten by the paramter list's value
  • If a key/ value pair is defined in the list and there is a path param with that key, the value for that param will be overwritten by the parameter list's value
  • If a key/ value pair is defined in the list and there is neither a query or path param with that key, this pair will be added as additional query param to the request
  • If the key is "body" and there is neither a query or path param with that key, this parameter will be used to set the action body
UI Expand
titleOutput

The function returns a

Status
subtletrue
titletext
representing the following JSON (depending on the provided jmes path):

Code Block
linenumberstrue
{
	"status": 200 // Returned status code from the executed action
	"body": any // Response body that was returned from the executed action
}


Page properties
hiddentrue

Status
Tech review

Status
colourYellow
titleReady for review
 

Style guide

Status
colourYellow
titleReady for review

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged

Page properties
hiddentrue
Short descriptionExecute a JWT remote action.
Output

Status
subtletrue
titletext

Label