Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Create .Net CashSaleItem using SuiteTalk
Would someone be kind enough to show me how to create a CashSaleItem in .net? So far this is what I have
CashSale cashSale = new CashSale();
CashSaleItem[] cashSaleItemArray = new CashSaleItem[1];
for (int i = 0; i < cashSaleItemArray.Length; i++)
{
RecordRef item = new RecordRef();
RecordRef unit = new RecordRef();
item.internalId = "14";
unit.name = "Each";
CashSaleItem item2 = new CashSaleItem();
item2.description = "Donation";
item2.rate = "60";
item2.units = unit;
item2.item = item;
cashSaleItemArray[i] = item2;
}
CashSaleItemList cashSaleItems = new CashSaleItemList();
cashSaleItems.item = cashSaleItemArray;
cashSale.itemList = cashSaleItems;
WriteResponse result = service.add(cashSale);
Thank you