Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Parts Lookup → Delete Undefined

AI-generated

Overview

This node integrates with the Halo PSA API to perform various operations on different resources. Specifically, for the Parts Lookup resource and the Delete Undefined operation, it deletes a part identified by its numeric ID from the system.

Common scenarios where this node is useful include automating the cleanup of parts data in Halo PSA, removing obsolete or undefined parts programmatically based on external triggers or workflows.

For example, you might use this node to delete a part after verifying it no longer exists in your inventory system or after a quality check flags it as invalid.

Properties

Name Meaning
Id The numeric identifier of the part to be deleted. This is a required field.

Output

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

No binary data output is produced by this operation.

Example output JSON might look like:

{
  "success": true,
  "message": "Part deleted successfully",
  "id": 123
}

or in case of failure:

{
  "error": "Part not found"
}

Dependencies

  • Requires an API key credential for authenticating with the Halo PSA API.
  • The node expects configuration of the base URL, tenant identifier, client ID, and client secret for the Halo PSA service.
  • Network access to the Halo PSA API endpoint is necessary.

Troubleshooting

  • Common issues:

    • Missing or invalid credentials will cause authentication failures.
    • Providing an invalid or non-existent part ID will result in errors from the API indicating the part was not found.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • "No credentials returned!" — Ensure that valid API credentials are configured in n8n.
    • "Resource Parts Lookup not found" or "Operation Delete Undefined not found for resource Parts Lookup" — Indicates misconfiguration of resource or operation parameters.
    • API error messages returned in the JSON output (e.g., "Part not found") should be handled by checking the correctness of the provided part ID.
  • To resolve errors, verify all input parameters, ensure credentials are correct and active, and confirm network connectivity to the Halo PSA API.

Links and References

Discussion