Hi All,
Application.on('after:Profile.get', function (modelDefinition, resultData) {
var lookupResults = nlapiLookupField('customer', resultData.internalid, [
'mycustomField'
]);
resultData.customfields = lookupResults.mycustomField;
});
is this correct to get the Customer data?
f
Fran
07/28/2020, 1:52 PM
You can use (commerce API):
ModelsInit.customer.getCustomFieldValues();
In order to get the custom field values.
g
Geetha
07/28/2020, 2:08 PM
I have used but it is not showing any thing
Geetha
07/28/2020, 2:09 PM
I have used custom fields bundle
Geetha
07/28/2020, 2:10 PM
Actually whenever the user logged into site ,custom field value need to be empty,and when the user click on button,the custom field value should be updated to respective value