---
title: Custom Fields
slug: netsuite/SLAO-custom-fields
description: Learn how to populate custom fields in NetSuite using cURL with this comprehensive guide. Discover examples of parameter calls for various types of custom fields, including text, picklist, and checkbox. Additionally, find out how to populate custom fields
docTags: 
createdAt: 2021-10-30T07:00:51.000Z
---

# Populating Custom Fields with cURL

Custom Fields integrated with Breadwinner for NetSuite custom fields setup can be added to the parameter list when creating the custom URL button.&#x20;

![](https://api.archbee.com/api/optimize/amOMwpmEgToJSqhaSTxXr/bEr4uDN73t1MHP_yayD_p_2022-06-2216-32-04.png)

Note here that a Salesforce ID field has been added to NetSuite and integrated into Salesforce using Breadwinner for NetSuite. The NetSuite field API name is custbody\_sfdcid, and the corresponding Salesforce custom field is ncf\_body\_sfdcid\_\_c.&#x20;

:::CodeblockTabs
Button URL

```none
 &cf_text_custbody_sfdcid=Id
```
:::

The parameter call for cURL consists of category (cf\_), type (text\_), netsuite field (custbody\_sfdcid)
and the salesforce field (Id above) which holds the value which the netsuite field will be set to.

And why is ncf\_body\_sfdcid\_\_c not being used here? Simply because that is the location where the value you are setting in NetSuite is reflected back to. When the value is set in NetSuite, Breadwinner reads that value back into the Salesforce Invoice record, on the Invoice object as shown above.
Passing the Salesforce Opportunity ID, into the custom field in NetSuite, and showing on the custom field in Salesforce.

# Populating Custom Transaction Fields

We designate a custom field on a transaction by starting the line of the Custom URL as \&cf which is followed by the type of the custom field (in this case a picklist) followed by the API name of the NetSuite field. Here is the theoretical construction.

:::CodeblockTabs
Button URL (Field Value)

```css
&cf_type_netsuite_api_name=formula_field__c
```

Button URL (Static Value)

```none
&cf_type_netsuite_api_name=123
```
:::

| **NetSuite Field Type** | **Type Value** | **Example**                                                 |
| ----------------------- | -------------- | ----------------------------------------------------------- |
| Date                    | date           | \&cf\_date\_netsuite\_api\_name=formula\_field\_\_c         |
| DateTime                | datetime       | \&cf\_datetime\_netsuite\_api\_name=formula\_field\_\_c     |
| List Record (Lookup)    | picklist       | \&cf\_picklist\_netsuite\_api\_name=formula\_field\_\_c     |
| Integer Number          | integer        | \&cf\_integer\_netsuite\_api\_name=formula\_field\_\_c      |
| Decimal Number          | number         | \&cf\_number\_netsuite\_api\_name=formula\_field\_\_c       |
| Currency                | number         | \&cf\_number\_netsuite\_api\_name=formula\_field\_\_c       |
| Percent                 | number         | \&cf\_number\_netsuite\_api\_name=formula\_field\_\_c       |
| Check Box               | checkbox       | \&cf\_checkbox\_netsuite\_api\_name=formula\_field\_\_c     |
| Free Form Text          | text           | \&cf\_text\_netsuite\_api\_name=formula\_field\_\_c         |
| Text Area               | textarea       | \&cf\_textarea\_netsuite\_api\_name=formula\_field\_\_c     |
| Long Text               | longtextarea   | \&cf\_longtextarea\_netsuite\_api\_name=formula\_field\_\_c |
| Email Address           | text           | \&cf\_text\_netsuite\_api\_name=formula\_field\_\_c         |
| Hyperlink               | text           | \&cf\_text\_netsuite\_api\_name=formula\_field\_\_c         |

Note that the **above** Custom Fields at the header level are prepended with cf\_&#x20;
and **below** Custom Line Item Fields are prepended with co\_cf\_
This denotes cf "custom field" and co\_cf "child object custom field".

# Populating Custom Line Item Fields

### Line Items from Child Object

We designate a custom field on a line item by starting the line of the Custom URL as **\&co\_cf,&#x20;**&#x77;hich is followed by the type of the custom field (in this case, a picklist) followed by the API name of the NetSuite field. Here is the theoretical construction.

:::CodeblockTabs
Button URL (Field Value)

```css
&co_cf_type_netsuite_api_name=formula_field__c
```

Button URL (Static Value)

```none
&co_cf_type_netsuite_api_name=123
```
:::

| **NetSuite Field Type** | **Type Value** | **Example**                                                           |
| ----------------------- | -------------- | --------------------------------------------------------------------- |
| Date                    | date           | \&co\_cf\_***date***\_netsuite\_api\_name=formula\_field\_\_c         |
| Datetime                | datetime       | \&co\_cf\_***datetime***\_netsuite\_api\_name=formula\_field\_\_c     |
| List Record (Lookup)    | picklist       | \&co\_cf\_***picklist***\_netsuite\_api\_name=formula\_field\_\_c     |
| Integer Number          | integer        | \&co\_cf\_***integer***\_netsuite\_api\_name=formula\_field\_\_c      |
| Decimal Number          | number         | \&co\_cf\_***number***\_netsuite\_api\_name=formula\_field\_\_c       |
| Currency                | number         | \&co\_cf\_***number***\_netsuite\_api\_name=formula\_field\_\_c       |
| Percent                 | number         | \&co\_cf\_***number***\_netsuite\_api\_name=formula\_field\_\_c       |
| Check Box               | checkbox       | \&co\_cf\_***checkbox***\_netsuite\_api\_name=formula\_field\_\_c     |
| Free Form Text          | text           | \&co\_cf\_***text***\_netsuite\_api\_name=formula\_field\_\_c         |
| Text Area               | textarea       | \&co\_cf\_***textarea***\_netsuite\_api\_name=formula\_field\_\_c     |
| Long Text               | longtextarea   | \&co\_cf\_***longtextarea***\_netsuite\_api\_name=formula\_field\_\_c |
| Email Address           | text           | \&co\_cf\_***text***\_netsuite\_api\_name=formula\_field\_\_c         |
| Hyperlink               | text           | \&co\_cf\_***text***\_netsuite\_api\_name=formula\_field\_\_c         |

# Populating Custom Segment Fields

To populate custom segment fields, the structure is similar to how we pass other custom fields, but the netsuite\_api\_name starts with "**cseg"&#x20;**&#x69;nstead of custbody or custcol and the type value should be a **picklist**.

Example of passing custom segment field at Transaction level:

\&cf\_*picklist*\_cseg\_region=formula\_field\_\_c

Example of passing custom segment field at Line Item level:

\&co\_cf\_*picklist*\_cseg\_region=formula\_field\_\_c
