Inserting a subform lookup record through an external field in the associated module

POST {{api-domain}}/crm/v2/Contacts

In this example, SubformExternal is the API name of the subform in the Contacts module. It has a look up field to the Deals module. The Deals module has an external field ExternalDeal_ID. We will reference this external field in the subform and insert a record in the Contacts module.

Request Body

{"data"=>[{"Last_Name"=>"Contact with a Subform", "Subform_External"=>[{"Deal_Lookup"=>{"External_Deal_ID"=>"userdeal1"}}]}]}

HEADERS

KeyDatatypeRequiredDescription
X-EXTERNALstring