My Stuff
Comments
-
Hello, It should be similar to the code posted in this thread: https://usergroup.netsuite.com/users/showthread.php?t=32571 , you will just need to modify the search type and fields. Feel free to post your code should you get any specific errors. Thanks.
-
Left over code from testing, I will remove it from the sample. Thanks for pointing it out. Thanks.
-
Instead of: [PHP]$search->category = array('internalId' => $categoryId);[/PHP] Do: [PHP]$searchMultiSelectField = new SearchMultiSelectField(); $searchMultiSelectField->operator = "anyOf"; $searchMultiSelectField->searchValue = array('internalId'=>$categoryId); $search->category = $searchMultiSelectField;[/PHP] Thanks,
-
Yes, you can do an ItemSearchBasic and specify category. Thanks.
-
Hello, Sample C# code: EntityCustomField customfield = new EntityCustomField(); customfield.internalId = "_wsC_createdfield1"; customfield.label = "WS C Created Custom Field 1"; customfield.fieldType = CustomizationFieldType._freeFormText; customfield.fieldTypeSpecified = true; customfield.storeValue = true;…
-
Hi Jeff, If using PHP. The first request usually is slower as PHP caches the WSDL on the first request. If you open your php.ini file you should see the following entries: [soap] ; Enables or disables WSDL caching feature. ; http://php.net/soap.wsdl-cache-enabled soap.wsdl_cache_enabled=1 ; Sets the directory name where…
-
Hello, Assuming this is related to item site categories, have you tried performing a SiteCategorySearchBasic with bodyFieldOnly set to false? eg: [PHP]$service->setSearchPreferences(false, 0); $search = new SiteCategorySearchBasic(); $searchValue->internalId = 12; //Internal id of category $searchMultiSelectField = new…
-
If you are performing a 'search' operation as opposed to a 'get' operation then 'name' is not returned. Sample getList on a customList with internal id of 123: CustomizationRef[] custRef = new CustomizationRef[1]; custRef[0] = new CustomizationRef(); custRef[0].internalId = "123"; custRef[0].type = RecordType.customList;…
-
The PHPToolkit folder contains a folder named 'nslog'. This will log your attempted SOAP request and RESPONSES. Reviewing these SOAP logs may shed some light on 1. if your SOAP is constructed properly, and 2. any error returned in the SOAP response. Thanks.
-
Hello, That field does not appear to be exposed via the Schema Browser. Please open a Support Case regarding this. Thank you.
-
Hello Corey, You can make use of the API nlapiAttachRecord() to achieve this. This API is described in SuiteAnswer in the article 'Record APIs' Answer Id: 10278. The article also has sample code specifically showing how to attach an issue record to a support record. Thanks,
-
For example: foreach (SalesOrderItem soItemLine in mySO.itemList.item) { Console.WriteLine("line: " + soItemLine.line + "n" + "item: " + soItemLine.item.name + "n" + "amount: " + soItemLine.amount + "n" + "quantity: " + soItemLine.quantity + "n"); CustomFieldRef[] cfr = soItemLine.customFieldList; for (int i = 0; i <…
-
Please contact NetSuite Support regarding this, as it may require additional troubleshooting. Thank you.
-
Hi Jeff, Try this, thanks. [PHP] $externalId = 'CR102'; $recTypeId = 159; // Internal Id of Custom Record $search = new CustomRecordSearchBasic(); $search->recType = array('internalId' => $recTypeId); $externalIdField = new SearchMultiSelectField(); $externalIdField->operator = 'anyOf'; $externalIdField->searchValue =…
-
Hello, No, it will deliver the data. You will need to use that data to generate the PDF in your application. Thank you.
-
NetSuite 'Support' tab > Visit SuiteAnswers > Contact Support Thanks,
-
Per the Web Services schema browser, there is no way to perform this type of join in a search request operation. If you have the results from two searches, you would need to develop PHP code to compare the results. Thanks,
-
Hello Jeff, Our apologies for the confusion. I will see if the Support Specialist can sum up their findings in an email. Thanks,
-
Hello, Something similar to SuiteAnswer 'Get the value of the custom fields in .NET application' Answer ID 14540 should work. (NetSuite > Support Tab > SuiteAnswers). You would just reference the SalesOrderItem object instead of the Customer Object. Thank you,
-
I don't believe that WSDLs prior to 2011.2 return the name value for custom select fields referencing a custom list. (If you are using a older WSDL). If you know the internal ID of the list, you may need to perform a getList operation on the customList recordType to get the text values and ids, then match them that way to…
-
There is no https://webservices.na1.sandbox.netsuite.com/services/NetSuitePort_2012_2 endpoint. So manually inserting 'sandbox' into the results of your getDataCenterUrls call wont work. The https://webservices.sandbox.netsuite.com/services/NetSuitePort_2012_2 should work, however, I imagine you can make a…
-
Hello, There isn't an endpoint that will touch both. Web services access depends upon the data center hosting each NetSuite account. In the 2012.2 and later endpoints, you can use the getDataCenterUrls operation to dynamically discover the correct URL for Web services access to a NetSuite account. A REST service is also…
-
You may have to perform the 'attach' operation instead of 'update'. Here is some sample SOAP: <platformMsgs:attach> <platformMsgs:attachReference xsi:type="s0:AttachContactReference"> <s0:attachTo xsi:type="s0:RecordRef" internalId="9044" type="customer" /> <s0:contact internalId="9045" />…
-
Does setting the bodyFieldsOnly preference to false make a difference? Thanks
-
Hello, To transfer the data, perform a search (transactionSearch, transactionSearchBasic, transactionSearchAdvanced), get, or getList operation via Web Services. Thank you.
-
Web services access depends upon the data center hosting each NetSuite account. In the 2012.2 and later endpoints, you can use the getDataCenterUrls operation to dynamically discover the correct URL for Web services access to a NetSuite account. A REST service is also available for this purpose. Help article related to…
-
Hello mhson1978, You will need to report the Unexpected Error to NetSuite Support. Warnings will only cause a failure if you have set the request preference 'warningAsError' to 'true', or if you have it set to do so at Setup > integration > Web Services Preferences. Thank you.
-
What if you set trans[0] = new Translation(); before setting the field values? Thanks,
-
Hello gmctall, You would then update the service url. _service.Url = d.webservicesDomain + "/services/NetSuitePort_2012_2"; Thank you.
-
If you are using a Test Account or Demo account, you will need to adjust your Web Services endpoints to "webservices.na1.netsuite.com...." Thank you.