Versions Compared

Key

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

...

  • response: The raw text response from the previous action.

  • jsonResponse(): Converts the 'response' into a JSON object.

  • context: Basic details of the action like its name, URL, method, headers, etc.

  • jsonContext(): Converts 'context' into a JSON object. For example, getContext().url retrieves the action's URL.

  • path(anyObject, jsonpath): Fetches specific parts of a JSON object.

  • getIssue(): Retrieves the issue in JSON format. If there's no issue, it returns null.

  • domParser: an implementation of https://www.npmjs.com/package/xmldom

Expand
titledomParser example
Code Block
languagejs
const xmlDoc = domParser.parseFromString(response.data, 'text/xml');
const resultNode = xmlDoc.getElementsByTagNameNS('xmlns attribute', 'element name ')[index of the elements];

...