ChargeOver can fill in custom fields on your NetSuite customers, contacts, and invoices. There are three kinds: | Kind | What it's for | Do you need it? | | ----------------------------------------------------- | ----------------------------------------------------------------- | -------------------------------- | | [ChargeOver ID fields](#chargeover-id-fields) | How ChargeOver finds its records in NetSuite | Yes, before you connect | | [Optional ChargeOver fields](#optional-chargeover-fields) | Links back to ChargeOver, External Keys, and subscription details | No, create the ones you want | | [Your own custom fields](#your-own-custom-fields) | Copying ChargeOver custom fields into NetSuite fields you pick | No, map the ones you want | ## Creating a field in NetSuite All three kinds are fields you create in NetSuite. NetSuite only lets ChargeOver fill in custom fields, it can't create them. 1. In NetSuite, go to `Customization > Lists, Records, & Fields` and pick the kind of field: - **Entity Fields** for customers and contacts - **Transaction Body Fields** for invoices, payments, and other transactions - **Item Fields** for items 1. Click ==New== 1. Fill in the **Label**, and the **ID** if the field needs a set one (like `_chargeover_external_key`). NetSuite adds `custentity`, `custbody`, or `custitem` to the front for you. 1. Pick the **Type**. For anything ChargeOver fills in with text, use **Free-Form Text**. 1. On the **Applies To** tab, check the records it goes on (like **Customer** and **Contact**, or **Sale** for invoices) 1. Optional: on the **Display** tab, set **Display Type** to **Inline Text**, so your team can see the field but can't change it by accident. ChargeOver can still fill it in. 1. Click ==Save== 1. In ChargeOver, click **Refresh lists from NetSuite** at the top of the **Configuration** tab on the NetSuite page, so ChargeOver sees the new field right away. Otherwise it notices within an hour. ## ChargeOver ID fields ChargeOver puts its own ID on every customer, contact, invoice, payment, and item it syncs, so it can always find them again (and never makes duplicates). These fields, plus one for the ChargeOver invoice number, have to exist before you connect. See [Create the ChargeOver ID fields](./connecting.mdx#step-3-create-the-chargeover-id-fields) for the list. ## Optional ChargeOver fields These fields have set IDs, so ChargeOver knows what to put in them. Create the ones you want, and ChargeOver fills them in. If a field doesn't exist, ChargeOver skips it. | Field | Kind of field | ID | Applies To | What ChargeOver puts in it | | ------------------------- | ---------------------- | ------------------------------- | --------------------------------- | ----------------------------------------------------------- | | ChargeOver Link | Entity Field | `_chargeover_url` | **Customer** | A link to the customer in ChargeOver (type **Hyperlink**) | | ChargeOver Link | Transaction Body Field | `_chargeover_url` | **Sale** and **Customer Payment** | A link to the invoice or payment in ChargeOver (type **Hyperlink**) | | ChargeOver External Key | Entity Field | `_chargeover_external_key` | **Customer** and **Contact** | The customer's or contact's **External Key** | | ChargeOver External Key | Transaction Body Field | `_chargeover_external_key` | **Sale** | The invoice's **External Key** | | ChargeOver Subscription | Transaction Body Field | `_chargeover_nickname` | **Sale** | The **Nickname** of the subscription the invoice is for | | ChargeOver Subscription External Key | Transaction Body Field | `_chargeover_subscription_key` | **Sale** | The **External Key** of the subscription the invoice is for | Everything except the links is **Free-Form Text**. - **ChargeOver keeps them up to date.** If you clear something in ChargeOver (like a subscription's nickname), ChargeOver clears it in NetSuite too, the next time the record syncs. - **Invoices that aren't for a subscription** leave the subscription fields blank. - **Records that already synced** get the fields the next time they change, or when you click the sync icon on them. - ChargeOver doesn't use NetSuite's own **External ID** for External Keys, since NetSuite needs those to be unique and you may already use them for your own imports. These fields don't show up in the [custom field lists](#your-own-custom-fields) below, since ChargeOver already knows where they go. ## Your own custom fields Your customer and contact custom fields in ChargeOver can sync to custom fields in NetSuite. Create the field in NetSuite first (see [Creating a field in NetSuite](#creating-a-field-in-netsuite)), with any ID you like. Then on the **Configuration** tab of the NetSuite page in ChargeOver, under **Custom Fields**, pick a NetSuite field for each ChargeOver custom field you want to sync, and click ==Save Custom Fields==. ![](./custom-fields-settings.png) The **Custom Fields** box only shows up once you have customer or contact custom fields in ChargeOver (under `Settings > Features > Custom Fields`). Each list only shows the NetSuite fields that can hold that kind of value: | ChargeOver field type | NetSuite field types it can sync to | | ------------------------------------------ | -------------------------------------------- | | Text, Text (multi-line), Dropdown, URL | Free-Form Text, Text Area, Hyperlink, and other text fields | | Date | Date | | Number | Integer Number, Decimal Number, Percent, and other number fields | NetSuite fields that pick from a list or another record (like **List/Record** or **Multiple Select**) and checkboxes aren't listed, since they need values from NetSuite instead of text from ChargeOver. Neither are read-only fields, or the ChargeOver fields above. - **Changes sync the next time the customer or contact syncs.** To send them right away, resync the customer. - **ChargeOver keeps mapped fields up to date.** If you clear a field in ChargeOver, ChargeOver clears what it put in NetSuite too. - **A blank never wipes out NetSuite data.** If a customer was already in NetSuite with the field filled in, and it's blank in ChargeOver, ChargeOver leaves it alone until it has a value of its own to send. - **A required field in NetSuite?** If NetSuite won't save customers without a field, mapping a ChargeOver custom field to it is one way to fill it in. - If a NetSuite field you mapped gets deleted, ChargeOver stops sending it and points it out on the NetSuite page, so you can pick another one. ## Using custom fields in rules Some settings can pick a different NetSuite value based on a field, and those rules can use your ChargeOver custom fields too, like `$customer.custom_1` or `$invoice.custom_2`: - Class, Department, and Location rules (see [Invoices](./invoices.mdx)) - Deposit account and payment method rules (see [Payments](./payments.mdx)) - Tax code rules (see [Taxes](./taxes.mdx)) Revenue recognition dates go in the invoice line fields you map in NetSuite (see [Revenue recognition](./revenue-recognition.mdx)). ## Related - [Connecting to NetSuite](./connecting.mdx) - [Customers and contacts](./customers.mdx) - [Sync status and troubleshooting](./sync-status-and-troubleshooting.mdx)