# Flow not updating vendor line in Netsuite

**URL:** <https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489>\
**Category:** Integrator.io\
**Tags:** script, flow-builder, netsuite\
**Created:** [April 10, 2023, 9:42pm UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489 "2023-04-10T21:42:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewgargano](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@matthewgargano](https://connective.celigo.com/u/matthewgargano)\
**Post date:** [April 10, 2023, 9:42pm UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489/1 "2023-04-10T21:42:58Z")

</div>

I have a flow that is supposed to update the vendor price in Netsuite for specific items. It is updating a regular date field, but the vendor lines are not being updated. I am not sure why because I have another flow built in the same way that does work as intended. The only difference that I noticed is that the new flow has "SuiteApp SuiteScript 2.x (Recommended)" selected while the other one has "SuiteBundle SuiteScript 1.0   
To be deprecated" selected.

Here is what the mapping looks like currently

 ![5301043caa20740200000001-6d9263771d694332bef76342d836b631.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/c/c29d617520e7f94838e4dc3201f3536d5b1e1bef.png)

---

<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:** [April 11, 2023, 1:35am UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489/2 "2023-04-11T01:35:16Z")

</div>

@matthewgargano what does your input data look like? I can attempt to reproduce if given the sample input data.

Also, can you try to build the new flow using SuiteApp 1.0? To use SuiteApp 1.0, you would need to make a new import step and specify it prior to saving since it can't be changed after the fact.

---

<div class="post-metadata">

**Author:** ![matthewgargano](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@matthewgargano](https://connective.celigo.com/u/matthewgargano)\
**Post date:** [April 11, 2023, 3:43pm UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489/3 "2023-04-11T15:43:31Z")

</div>

Here is the input data, thank you for looking into it. I can try recreating it using the 1.0, ideally I would use the 2.x because I imagine that would be more future proof. (As a note, the only thing I am looking to update with this flow is the vendor price.)

{  
 "SYNNEXSKUNum": "3229445",  
 "Contract Price (With Promo/Rebate)": "161.54",  
 "id": [  
 {  
 "id": "52448",  
 "recordType": "noninventoryitem",  
 "Internal ID": "52448",  
 "Vendor": "TD SYNNEX CORPORATION",  
 "Vendor Code": "3229445",  
 "Vendor Name": "",  
 "Vendor Price": "116.41",  
 "VendorInternalID": "21"  
 }  
 ]  
}

---

<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:** [April 11, 2023, 5:36pm UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489/4 "2023-04-11T17:36:22Z")

</div>

@matthewgargano try SuiteApp 1.0 and let me know how it goes. SuiteApp 1.0 will stay in place, only SuiteBundle 1.0 has current plans to be deprecated.

---

<div class="post-metadata">

**Author:** ![matthewgargano](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@matthewgargano](https://connective.celigo.com/u/matthewgargano)\
**Post date:** [April 11, 2023, 8:02pm UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489/5 "2023-04-11T20:02:42Z")

</div>

I recreated the NetSuite destination using the suitescript 1.0 and it looks like its working now.

Is there any specific reason that it didnt work with the 2.x?

---

<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:** [April 11, 2023, 8:41pm UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489/6 "2023-04-11T20:41:00Z")

</div>

@matthewgargano we've seen a few behavior differences from the migration of 1.0 to 2.0 and are actively working to resolve them, so I appreciate you confirming this. I'll pass it on internally and hopefully get a resolution soon.

---

<div class="post-metadata">

**Author:** ![matthewgargano](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@matthewgargano](https://connective.celigo.com/u/matthewgargano)\
**Post date:** [April 12, 2023, 3:29pm UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489/7 "2023-04-12T15:29:59Z")

</div>

OK thanks again for the assistance

---

<div class="post-metadata">

**Author:** ![vincentnero](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/vincentnero/32/4432_2.png) [@vincentnero](https://connective.celigo.com/u/vincentnero)\
**Post date:** [February 5, 2024, 9:51pm UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489/8 "2024-02-05T21:51:15Z")

</div>

So I have tried both Suitescript 2.0 and 1.0 with no luck, as I have the added complication of multi-currency - any help will be appreciated.  
  
Input:  
{  
 "Base SKU": "OPT4321-H",  
 "Item Name/Number": "OPT4321-V",  
 "Item - Vendors 1 : Vendor": "4185 St. Regis Crystal",  
 "Vendor Name/Code": "OPT4321-V",  
 "Item - Vendors 1 : Code": "OPT4321-V",  
 "Item - Vendors 1 : Purchase Price": "14.47",  
 "Item - Vendors 1 : Preferred": "Yes",  
 "Item - Vendors 1 : Schedule": null,  
}

 ![5301043caa20740200000001-2d20708a72404c77ae5e3a6ddf51c335.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/c/ce61ed3d504f4c1bd48a87bcf7a2df4cad45d6a2.png)

---

<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:** [February 9, 2024, 8:47pm UTC](https://connective.celigo.com/t/flow-not-updating-vendor-line-in-netsuite/489/9 "2024-02-09T20:47:02Z")

</div>

@vincentnero can you restructure you data with a transform on the export to be like this? I was just able to update and add vendor lines on [another community thread](https://connective.celigo.com/t/how-to-add-more-than-1-supplier-to-an-item/225). The thought I have is since "Vendors" is a sublist array, the incoming structure should match it.

```
{ "Base SKU": "OPT4321-H", "Item Name/Number": "OPT4321-V", "vendors": [{ "Item - Vendors : Vendor": "4185 St. Regis Crystal", "Vendor Name/Code": "OPT4321-V", "Item - Vendors : Code": "OPT4321-V", "Item - Vendors : Purchase Price": "14.47", "Item - Vendors : Preferred": "Yes", "Item - Vendors : Schedule": null }]}
```
