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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
create a phonecall with custom filed
I tried to create a phonecall with custom filed in java using netsuite web service 2013_2 version. But it’s throwing error while inserting record. what mistake I did. Below is my code
PhoneCall phoneCall = new PhoneCall();
List<CustomFieldRef> oCustomFieldRefList = new ArrayList<CustomFieldRef>();
StringCustomFieldRef strCF = new StringCustomFieldRef();
strCF.setScriptId("custeventcustomcallattempt");
strCF.setValue("234");
oCustomFieldRefList.add(strCF);
phoneCall.setCustomFieldList((CustomFieldRef[])
oCustomFieldRefList.toArray());
RecordRef[] recordRefList = new RecordRef[]{new RecordRef("1",recordID,"",RecordType.customer)};
phoneCall.setStatus(PhoneCallStatus._scheduled);
//phoneCall.setOwner(recordRefList[0]);
phoneCall.setMessage("Test-CustomFiledTest1");
phoneCall.setTitle("Test-CustomFiledTest1");
WriteResponse response = null;
response = _port.add(phoneCall);
System.out.println(response.getStatus()[0].getMessage());