Amocrm icon

Amocrm

Consume AmoCRM API

Overview

This node creates new company records in AmoCRM. It supports creating companies either by providing structured input fields or by supplying raw JSON data. This is useful for automating the addition of company information into AmoCRM, such as when integrating with other systems or processing bulk data. For example, a user can create multiple companies with details like name, responsible user, creation date, custom fields, and tags, or directly input JSON to define company data.

Use Case Examples

  1. Creating a new company with a name, responsible user, and custom fields.
  2. Bulk creating multiple companies by providing an array of company objects.
  3. Using JSON input to create companies with complex or nested data structures.

Properties

Name Meaning
Authentication Method used to authenticate with AmoCRM API, either Long Lived Token or OAuth2.
JSON Parameters Flag to indicate if the input is provided as raw JSON string or as structured fields.
Stringifyed Array of Objects A JSON string representing an array of company objects, used when JSON Parameters is true.
Companies A collection of company objects to create, each with properties like name, responsible user, created by, updated by, creation and update timestamps, custom fields, embedded tags, and a request ID.

Output

JSON

  • id - The unique identifier of the created company.
  • name - The name of the created company.
  • responsible_user_id - ID of the user responsible for the company.
  • created_by - ID of the user who created the company.
  • updated_by - ID of the user who last updated the company.
  • created_at - Timestamp when the company was created.
  • updated_at - Timestamp when the company was last updated.
  • custom_fields_values - Custom fields and their values associated with the company.
  • _embedded
    • tags - Tags associated with the company.
  • request_id - A user-defined request identifier returned unchanged in the response.

Dependencies

  • AmoCRM API

Troubleshooting

  • Authentication errors due to invalid or expired tokens. Ensure the correct authentication method and valid credentials are used.
  • Invalid JSON format when JSON Parameters is true. Validate JSON string before input.
  • Missing required fields like company name may cause API errors. Ensure all mandatory fields are provided.
  • Errors related to user IDs for responsible_user_id, created_by, or updated_by if the user does not exist or is inactive. Verify user IDs are valid and active in AmoCRM.

Links

Discussion