My Stuff
Comments
-
Setting createdDateSpecified to false should prevent this error. I'm not sure why you're still seeing that. I tried your code and got a similar error on an item property, and then on lastModifiedDate. Rather than trying to unspecify every property, I would just create an empty Work Order and set the internalId, then change…
-
It is not possible to reference a saved search that contains summary results. If the Summary Type column is set in the Results tab, then your request will fail. See page 276 in the 2018 Platform Guide.
-
I do not manually generate this XML. It was taken from a previous request (which is an XML file) that I downloaded it from the Web Services Usage Log in the NetSuite portal. I'm not sure what the difference is between tokenPassport and clientPass is, here. In C#, all that is required is to generate a TokenPassport, assign…
-
I suspect that the error is due to an invalid lot number. The item lot has to be created first with an inventory adjustment or item receipt and then referenced in the sales order item lot number. The random value that I had chosen did not correspond to an actual lot. When I have time, I will confirm that it's possible to…
-
It may help to inspect the web services requests from Setup > Integration > Webservices Usage Log.
-
I discovered the error: I needed to set the issueInventoryNumber rather than the receiptInventoryNumber. I highlighted the relevant line.
-
Here is an example of an EmployeeSearchAdvanced, with selected return columns firstName, lastName, email, and internalId. public static void EmployeeSearchExample() { var advancedSearch = new EmployeeSearchAdvanced() { columns = new EmployeeSearchRow() { basic = new EmployeeSearchRowBasic() { firstName = new…
-
You do not need to call client.service.login() when using token-based authentication; just make sure the client.service.tokenPassport is set. The xml (generated with C#) looks like this: <soap:Header> [INDENT]<tokenPassport xmlns="urn:messages_2017_2.platform.webservices.netsuite.com"><account…
-
It is possible to do this using UnitsTypedSearchAdvanced. The search below will return a list of every Unit of Measure. public static SearchResult SearchUnits() { Client.Service.searchPreferences = new SearchPreferences() { bodyFieldsOnly = false, returnSearchColumns = true }; UnitsTypeSearchAdvanced customSearch = new…
-
You can use getRange() and then iterate over the result. Like so: var searchResult = mySearch.run().getRange ({ start: 0, end: 100 }) for (var i = 0; i < searchResult.length; i++) { var id = searchResult[i].getValue ({ name: 'item' }) }