llfcf
09/08/2017, 7:32 PMcreece
09/08/2017, 7:33 PMllfcf
09/08/2017, 7:35 PMllfcf
09/08/2017, 7:35 PMssdevktown
09/08/2017, 8:37 PMerictgrubaugh
09/08/2017, 8:45 PMerictgrubaugh
09/08/2017, 8:46 PMssdevktown
09/08/2017, 8:46 PMssdevktown
09/08/2017, 8:53 PMssdevktown
09/08/2017, 8:55 PMssdevktown
09/08/2017, 8:57 PMerictgrubaugh
09/08/2017, 9:33 PMjoinFieldId.columnId
, (e.g. salesrep.email
from a Sales Order) - so I would expect the join name you need to start with custbody
in this instance, or custcol
if it's a sublist field.erictgrubaugh
09/08/2017, 9:33 PMgetValue
as wellmrob
09/08/2017, 9:57 PM<http://https.post|https.post>
, I have url: my api's url
, headers: my auth info
, and body: record.toJSON()
.
The exact error is unexpected token at 'isDynamic=false&id=1825&sublists=&type=vendor&fields='
mrob
09/08/2017, 9:57 PMSuiteBender
09/08/2017, 10:09 PMSuiteBender
09/08/2017, 10:10 PMmmoen
09/08/2017, 10:45 PMmrob
09/08/2017, 11:14 PMContent-Type: application/JSON
, and NetSuite wasn't actually sending JSON so rails was trying to parse something that wasn't JSON. Removing that is allowing Rails to figure out what's actually coming in- though it's still only properly parsing 1st tier key/valuesmrob
09/08/2017, 11:14 PMian.ns
09/09/2017, 9:47 AMian.ns
09/09/2017, 9:47 AMimage.pngā¾
ian.ns
09/09/2017, 9:47 AMjen
09/10/2017, 4:38 PMian.ns
09/11/2017, 12:50 AMmichoel
09/11/2017, 12:57 AMian.ns
09/11/2017, 1:03 AMfunction pushAddressToCustomer(customerId, newAddress){
var customer = record.load({
type: record.Type.CUSTOMER,
id: CUSTOMER_BIGJOE_RENTAL
});
var addressList = customer.getValue({
fieldId: 'custentity_ship_to_customers'
});
//newAddress is an id
addressList.push(newAddress);
customer.setValue({
fieldId: 'custentity_ship_to_customers',
values: addressList
});
log.debug({
title: 'result',
details: shipToCustomer
});
}
ian.ns
09/11/2017, 1:04 AMmichoel
09/11/2017, 1:06 AMmichoel
09/11/2017, 1:06 AM