# How to Map Credit and Debit Accounts for Journal Entry in NetSuite Connector When Only One Line:account Field is Available?

**URL:** <https://connective.celigo.com/t/how-to-map-credit-and-debit-accounts-for-journal-entry-in-netsuite-connector-when-only-one-line-account-field-is-available/5108>\
**Category:** Integrator.io\
**Tags:** netsuite\
**Created:** [July 25, 2025, 2:18pm UTC](https://connective.celigo.com/t/how-to-map-credit-and-debit-accounts-for-journal-entry-in-netsuite-connector-when-only-one-line-account-field-is-available/5108 "2025-07-25T14:18:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_Bhandari](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@Vikas\_Bhandari](https://connective.celigo.com/u/Vikas_Bhandari)\
**Post date:** [July 25, 2025, 2:18pm UTC](https://connective.celigo.com/t/how-to-map-credit-and-debit-accounts-for-journal-entry-in-netsuite-connector-when-only-one-line-account-field-is-available/5108/1 "2025-07-25T14:18:53Z")

</div>

Hi everyone,

I'm trying to create a Journal Entry in NetSuite using the Celigo NetSuite Connector. I receive a single row of data from a CSV file that represents one transaction, and I want to create **two lines** in the Journal Entry: one for the **debit** and one for the **credit**.

However, in the NetSuite mapping stage, I only see one field available on the NetSuite side: `Line:account`. I'm not sure how to differentiate or map both the credit and debit accounts when I only have one `Line:account` field to work with.

Has anyone done this before? Is it even possible to create two lines from a single CSV row in this way? If so, how should I set up my mapping or transformation to split one row into two journal lines?

Any help or example mappings would be greatly appreciated!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [July 27, 2025, 2:43pm UTC](https://connective.celigo.com/t/how-to-map-credit-and-debit-accounts-for-journal-entry-in-netsuite-connector-when-only-one-line-account-field-is-available/5108/2 "2025-07-27T14:43:42Z")

</div>

You would need to make a script, could be preSavePage, preMap, postResponseMap script, or transform script. In the script, you should make a new field in your record for `lines`, then have the script generate 2 lines for you. From there, you would then map that into NetSuite.
