Response

Returns the data from the server response.

Variants

Response()

Returns the "raw" content of the server response.

Returns

Text

Remarks

This function can only be used in the Call-URL action or Webhooks. Use this function if the server provides the result in plain text format.

Response(Text path)

Extracts named data from the response in XML or JSON format.

Parameters

path
The name or expression of the value.

Returns

Text

Remarks

This function can only be used in the Call-URL action or Webhooks. In the case of XML, the path should be a valid XPath expression; in the case of JSON, it should be a string in the form of "property.property[index].property".

Response(Text path, type)

Extracts named data from the response in XML or JSON format and tries to convert the result to a TeamDesk-specific type.

Parameters

path
The name or expression of the value.
type
The value type. Allowed values are: Text, Bool, Date, Time, Timestamp, Numeric.

Returns

The return type is defined by the type parameter.

Remarks

This function can only be used in the Call-URL action or Webhooks. In the case of XML, the path should be a valid XPath expression; in the case of JSON, it should be a string in the form of "property.property[index].property".