NIMMA Objects icon

NIMMA Objects

Generieke CRUD voor NIMMA objecten

Overview

This node interacts with Nimma API objects, allowing users to perform CRUD operations (Create, Read, Update, Delete) on specified models within an application. It is useful for automating data management tasks such as retrieving a specific record by ID, listing records with query parameters, creating new records, updating existing ones, or deleting records. For example, a user can fetch details of a company by its ID, list all companies with certain filters, or update company information programmatically.

Use Case Examples

  1. Retrieve a company record by its ID using the 'Get' operation.
  2. List all records of a model with specific query parameters using the 'List' operation.
  3. Create a new record in a model using the 'Create' operation.
  4. Update an existing record by ID using the 'Update' operation.

Properties

Name Meaning
App Name The name of the application containing the model to interact with.
Model Name The name of the model within the application to perform operations on.
ID The unique identifier of the record to get, update, or delete. Required for 'Get', 'Update', and 'Delete' operations.

Output

JSON

  • json - The JSON response from the Nimma API representing the requested or affected object(s). For 'Get', 'Create', 'Update' operations, this contains the object data. For 'Delete', it contains the ID and a deletion confirmation flag.

Dependencies

  • Requires an API authentication token or header obtained via a helper function to authorize requests to the Nimma API.

Troubleshooting

  • Ensure the 'App Name', 'Model Name', and 'ID' (if applicable) are correctly specified to avoid 404 or invalid resource errors.
  • Verify that the API authentication token is valid and has sufficient permissions to perform the requested operation.
  • Check network connectivity and Nimma API availability if HTTP requests fail.
  • Handle errors for unknown operations by ensuring the operation parameter is one of the supported values: 'list', 'get', 'create', 'update', or 'delete'.

Discussion