Lead

Field Set Description
Basic Basic fields include phones, emails, name, and tags (or Source tags)
State State fields include lead state, assigned to, and lead group
Lead Fields Dynamic fields based on the company setup

Basic Fields:

Defined by the system and cannot be changed.

State Fields:

Dynamic fields that represent state of the lead.

Lead Fields

Include different types that contain or display the same data in various formats. Each lead field can have multiple instances in the same lead as constrained by the count setting of the field. Each instance can be either a simple type such as text (or date) or a complex list of values (multiselect).

A lead field structure looks like:

{ 
  "name_of_the_field": [ //List of values for instances
    '', //Value for instance 1
    '', //Value for instance 2
  ]
}

For example, a lead field order number can have multiple instances and will be stored as:

{ 
  "order_number": [ //List of values for instances
    '1234', //Value for instance 1
    '1235', //Value for instance 2
  ]
}

Whereas a field like products sold per order can contain multiple values per instance:

{ 
  "products_per_order": [ //List of values for instances
    ['product_a', 'product_b'], //Value for instance 1
    ['product_b', 'product_c'], //Value for instance 2
  ]
}