efficy Enterprise CRM icon

efficy Enterprise CRM

Calls the efficy Enterprise JSON API API

Relation → Update Detail

AI-generated

Summary

Updates fields on a detail relation belonging to an Efficy entity, using the entity’s edit context and the API’s updateDetail function.

Inputs

  • Entity (required) — Efficy entity code for the parent record, such as Comp or Cont.
  • Entity Key (required) — Primary key of the parent record.
  • Detail Entity (required) — Entity code of the detail record to update.
  • Detail Key (required) — Key of the detail relation, in the API’s K_xxx or K_xxx_K_RELATION format.
  • Fields (JSON) (required) — JSON object mapping field names to values to update on the detail relation; defaults to { "QUANTITY": 1 }.
  • Options — Return Full Response defaults to false. When enabled, returns the complete API response array; otherwise, returns its first context result.

Output shape

A single n8n item containing the first API context result by default, or an object with a response array when Return Full Response is enabled.

The node sends an Efficy edit request with commit and closecontext enabled, then invokes updateDetail with the detail entity, detail key, and fields as @data. API errors are raised unless Continue On Fail is enabled, in which case the item contains an error field.

Examples

Example 1: Update a product detail’s quantity on a company record.

Set Entity to Comp, Entity Key to the company key, Detail Entity to Prod, Detail Key to the relation key, and Fields (JSON) to { "QUANTITY": 3 }.

Links

Discussion