Halo PSA icon

Halo PSA

Consume Halo PSA API

Actions795

Power Shell Script Criteria → Get One Power Shell Script Criteria

AI-generated

Overview

This node integrates with the Halo PSA API to retrieve data related to Power Shell Script Criteria. Specifically, the "Get One Power Shell Script Criteria" operation fetches details of a single Power Shell Script Criterion by its unique identifier. This is useful in scenarios where you need to programmatically access or verify specific script criteria within your IT service management workflows.

Practical examples include:

  • Automating audits or compliance checks by retrieving script criteria details.
  • Integrating with other systems that require validation or processing of Power Shell Script Criteria.
  • Building dashboards or reports that display detailed information about specific script criteria.

Properties

Name Meaning
Id The unique numeric identifier of the Power Shell Script Criterion to retrieve.
Includedetails Optional flag to include additional detailed information in the response (query parameter).

Output

The node outputs JSON data representing the retrieved Power Shell Script Criterion. The structure corresponds directly to the API response for a single criterion, typically including fields such as ID, name, description, and any other relevant metadata defined by the Halo PSA API.

If the request fails or the item is not found, 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 for the Halo PSA API, including base URL, tenant identifier, client ID, and client secret.
  • The node uses these credentials to authenticate API requests via HTTP headers.
  • No additional external dependencies beyond the Halo PSA API and n8n's HTTP request capabilities.

Troubleshooting

  • Common issues:

    • Missing or invalid credentials will cause authentication failures.
    • Providing an invalid or non-existent Id will result in an error from the API.
    • Network connectivity problems can prevent successful API calls.
  • Error messages:

    • "No credentials returned!": Indicates that the required API credentials were not provided or could not be loaded. Ensure credentials are configured correctly in n8n.
    • API errors returned in the error field: These come directly from the Halo PSA API and may indicate invalid parameters, unauthorized access, or resource not found. Review the Id value and permissions.
  • To handle errors gracefully, enable the "Continue On Fail" option in the node settings to allow workflow execution to proceed even if some requests fail.

Links and References

Discussion