Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Power Shell Script Criteria → Delete Undefined

AI-generated

Overview

This node integrates with the Halo PSA API to perform various operations on different resources. Specifically, for the "Power Shell Script Criteria" resource and the "Delete Undefined" operation, it deletes a Power Shell Script Criteria item identified by its ID. This is useful in scenarios where you need to programmatically remove obsolete or undefined script criteria from your Halo PSA system to maintain clean configurations.

Practical example: Automatically deleting a Power Shell Script Criteria entry by its ID when it is no longer needed or has become invalid, as part of an automated cleanup workflow.

Properties

Name Meaning
Id The unique identifier (number) of the Power Shell Script Criteria item to delete. This property is required.

Output

The node outputs JSON data representing the response from the Halo PSA API after attempting to delete the specified Power Shell Script Criteria. The structure typically contains confirmation of deletion or error details if the operation failed.

No binary data output is involved in this operation.

Dependencies

  • Requires valid credentials for the Halo PSA API, including base URL, tenant identifier, client ID, and client secret.
  • The node uses these credentials to authenticate API requests.
  • No additional external dependencies beyond the Halo PSA API and n8n's HTTP request capabilities.

Troubleshooting

  • Common issues:

    • Missing or invalid credentials will cause the node to throw an error indicating no credentials were returned.
    • Providing an invalid or non-existent ID may result in an API error response, which will be surfaced in the node output.
    • Network connectivity issues can prevent successful API calls.
  • Error messages:

    • "No credentials returned!" — Ensure that the API authentication credentials are correctly configured in n8n.
    • "Resource Power Shell Script Criteria not found" or "Operation Delete Undefined not found for resource Power Shell Script Criteria" — Indicates misconfiguration of resource or operation parameters.
    • API errors returned from Halo PSA (e.g., 404 Not Found if the ID does not exist) will appear in the output JSON under an error field.
  • To resolve errors, verify credentials, confirm the ID exists in Halo PSA, and check network connectivity.

Links and References

Discussion