Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The INVOKE-HTTP directive is an experimental directive to trigger an HTTP POST request with a body composed from specified fields.

Syntax

Code Block
invoke-http 'url' :column[,:column:*] <header>[,<header>*]

The columns specify the value to be sent to the service 'url' in the POST request as the body.

Usage Notes

The INVOKE-HTTP directive is used to apply a transformation on data using an existing REST service. This directive passes the specified columns as the POST body in the form of a JSON Object. The keys in the JSON object are the column names, with the values and their types derived from the objects stored in the column.

...

Note: The key and value are separated by an equals sign (=) and headers are separated by commas (,).

Examples

Using this record as an example:

...