Actions5
- Campanha Actions
- Pessoa Actions
Overview
This node interacts with the CIS Assessment API to perform various operations related to CIS assessments. Specifically, for the "Pessoa" resource and the "Ultimo Inventario" operation, it retrieves the latest inventory information associated with a person identified by their ID or email. This can be useful in scenarios where you need to fetch the most recent inventory data linked to a specific individual, such as tracking assets, compliance checks, or audit preparations.
Practical examples include:
- Automatically retrieving the last known inventory of a user when processing compliance reports.
- Integrating with asset management workflows to update records based on the latest inventory data.
- Triggering notifications or further actions based on the retrieved inventory status of a person.
Properties
| Name | Meaning |
|---|---|
| ID or Email Da Pessoa | The unique identifier or email address of the person whose latest inventory is to be fetched. You can enter a static value or use an expression to dynamically specify this ID or email. |
Output
The node outputs a JSON array containing the data returned from the CIS Assessment API for the requested person's latest inventory. Each item in the array corresponds to the inventory details associated with the specified person. The exact structure depends on the API response but typically includes inventory attributes such as items, quantities, timestamps, and related metadata.
If the node supports binary data output (not indicated in the provided code), it would represent any files or attachments related to the inventory, but no such indication is present here.
Dependencies
- Requires an active connection to the CIS Assessment API via an API key credential configured in n8n.
- The node depends on internal helper functions mapped to resource-operation pairs to execute the correct API calls.
- No additional external services are explicitly required beyond the CIS Assessment API.
Troubleshooting
- Unsupported Operation Error: If you receive an error stating that the operation is not supported, verify that the resource is set to "Pessoa" and the operation to "Ultimo Inventario". This error occurs if the combination is invalid or not implemented.
- Missing or Invalid ID/Email: Ensure that the "ID or Email Da Pessoa" property is correctly filled. An empty or malformed value will likely cause the API call to fail.
- API Authentication Issues: Confirm that the API key credential is properly configured and has sufficient permissions to access the CIS Assessment API.
- Network or API Errors: Check network connectivity and API availability. Transient errors may require retries or checking API status.
Links and References
- n8n Expressions Documentation
- CIS Assessment API official documentation (refer to your organization's API docs for detailed endpoints and data structures)