Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Add item with custom field (Delphi)
Hello,
I'm working on Delphi XE3 and I imported NetSuite's WSDL from https://webservices.netsuite.com/wsdl/v2013_1_0/netsuite.wsdl .
I'm trying to add a new NonInventoryResaleItem with a custom field but I get an exception.
Here's my code :
art := NonInventoryResaleItem2.Create; art.displayName := name; art.itemId := name; art.salesTaxCode := taxCode; art.purchaseTaxCode := taxCode; customFrozen := BooleanCustomFieldRef.Create; customFrozen.internalId := 'custitem_frozen'; customFrozen.value := true; setLength(attrCustomList, 1); attrCustomList[0] := customFrozen; art.customFieldList := attrCustomList; rep := NetSuiteWS.add(art);
And the exception :
ERemotableException : 'org.xml.sax.SAXException: Expected {urn:core_2013_1.platform.webservices.netsuite.com}customField, found {urn:accounting_2013_1.lists.webservices.netsuite.com}customField'I can't put the SOAP because it is not in NetSuites' Logs and I don't know how to get it with Delphi.
0