Custom fields of customer record

We can access the value of the custom fields from the customer record using the API call.

var customFields = nlapiGetWebContainer().getShoppingSession().getCustomer().getCustomFieldValues();
var string_customFields = JSON.stringify(customFields, null, 2); 
console.error("string_customFields", string_customFields);
			

This will help to return the custom entity values of the customer record.

Leave a comment

Your email address will not be published. Required fields are marked *