WebAction.Request(method as text, url as text, optional options as nullable record) as action


Creates an action that, when executed, will return the results of performing a method request against url using HTTP as a binary value. An optional record parameter, options, may be provided to specify additional properties. The record can contain the following fields:

  • Query: Programmatically add query parameters to the URL without having to worry about escaping.
  • ApiKeyName: If the target site has a notion of an API key, this parameter can be used to specify the name (not the value) of the key parameter that must be used in the URL. The actual key value is provided in the credential.
  • Content: Specifying this value changes the web request from a GET to a POST, using the value of the Content field as the content of the POST.
  • Headers: Specifying this value as a record will supply additional headers to an HTTP request.
  • Timeout: Specifying this value as a duration will change the timeout for an HTTP request. The default value is 100 seconds.
  • IsRetry: Specifying this logical value as true will ignore any existing response in the cache when fetching data.
  • ManualStatusHandling: Specifying this value as a list will prevent any builtin handling for HTTP requests whose response has one of these status codes.
  • RelativePath: Specifying this value as text appends it to the base URL before making the request.