Placeholder

Customer Forum

Using the api to insert custom field data

External Posted: 2011-06-21 09:22

I am trying to add sales leads directly into Workbooks using the API, but I am struggling to find the correct name to use within the insert array.

The custom field is called 'Address2'. I have tried using 'Address2', but this returns ''failures' => array ( 0 => 'The following form values were not recognised: {"Address2"=>"Test Street"}', ), 'success' => false, '. I get the same message when I try 'address2'.

I am inserting into 'crm/sales_leads'.

Workbooks Support Posted: Fri, 21.06.2013 - 10:07

Section 7 of the Developers Guide - Workbooks Meta data - explains how to access the information, however, if you're just after the field name of a custom field there's an easier method:

1) Open the Picklists screen (Start > Configuration > Fields & Picklists > Custom Fields).

2) Select the record/object type.

3) Add the "Field name" column to display the field name of all the custom fields for the record/object type.  Alternatively, click on the custom field > Field name.