Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Mail Campaign → Delete Undefined

AI-generated

Overview

This node integrates with the Halo PSA API to perform various operations on different resources. Specifically, for the Mail Campaign resource and the Delete Undefined operation, it sends a request to delete a mail campaign identified by its ID.

Common scenarios where this node is useful include automating the management of mail campaigns within Halo PSA, such as cleaning up obsolete or test campaigns programmatically without manual intervention.

For example, you can use this node in a workflow that periodically deletes mail campaigns that meet certain criteria (e.g., campaigns no longer active or created for testing), helping maintain a clean and organized system.

Properties

Name Meaning
Id The unique identifier (number) of the mail campaign to be deleted. This property is required.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:

  • json: The response from the Halo PSA API after attempting to delete the specified mail campaign. This typically includes confirmation of deletion or error details.
  • If an error occurs and "Continue On Fail" is enabled, the output will contain an error field with the error message instead of the usual response.

The node does not output binary data.

Dependencies

  • Requires valid credentials for the Halo PSA API, including:
    • Base URL of the Halo PSA instance
    • Tenant identifier
    • Client ID
    • Client Secret

These credentials must be configured in n8n before using the node.

  • The node uses HTTP requests to communicate with the Halo PSA API endpoints.

Troubleshooting

  • No credentials returned!
    This error indicates that the node could not retrieve the necessary API credentials. Ensure that the Halo PSA API credentials are properly set up in n8n.

  • Resource or Operation not found
    If the specified resource or operation is invalid or misspelled, the node will throw an error. Verify that the resource is "Mail Campaign" and the operation is "Delete Undefined" as expected.

  • API request errors
    Errors returned from the Halo PSA API (e.g., invalid ID, insufficient permissions) will appear in the output's error field if "Continue On Fail" is enabled, or cause the node to fail otherwise. Check the error message for details and verify the ID and user permissions.

  • JSON parsing errors
    If additional parameters or request bodies are provided as JSON strings, ensure they are correctly formatted.

Links and References

Discussion