Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Power Shell Script Criteria → List Of Power Shell Script Criteria

AI-generated

Overview

This node interacts with the Halo PSA API to perform various operations on different resources. Specifically, for the "Power Shell Script Criteria" resource and its "List Of Power Shell Script Criteria" operation, it retrieves a list of criteria associated with a given PowerShell script.

Common scenarios where this node is beneficial include automating IT service management workflows, such as fetching criteria details for PowerShell scripts used in automation or configuration tasks within Halo PSA. For example, an IT administrator might use this node to programmatically retrieve all criteria linked to a specific PowerShell script to audit or update them.

Properties

Name Meaning
Script Id The unique identifier of the PowerShell script whose criteria you want to list.

Output

The node outputs JSON data representing the list of PowerShell script criteria retrieved from the Halo PSA API. Each item in the output corresponds to a criterion associated with the specified script ID.

If the operation encounters errors, the output JSON will contain an error field with the error message.

No binary data output is produced by this operation.

Dependencies

  • Requires valid credentials to access the Halo PSA API, including:

    • Base URL of the Halo PSA instance
    • Tenant identifier
    • Client ID
    • Client Secret
  • The node uses these credentials to authenticate API requests.

  • No additional external dependencies are required beyond the configured API credentials.

Troubleshooting

  • No credentials returned!
    This error indicates that the node could not find or load the necessary API credentials. Ensure that the API key credential is properly configured in n8n before running the node.

  • Resource or Operation not found
    If the specified resource or operation does not exist, verify that the correct resource ("Power Shell Script Criteria") and operation ("List Of Power Shell Script Criteria") names are selected.

  • API request failures
    Errors during the API call (e.g., network issues, invalid script ID) will be reported in the output's error field if "Continue On Fail" is enabled; otherwise, they will cause the node to fail. Check the script ID value and network connectivity.

  • Invalid JSON in parameters
    If using advanced parameters with JSON input, ensure the JSON syntax is correct to avoid parsing errors.

Links and References


Note: The above summary is based solely on static analysis of the provided source code and property definitions.

Discussion