-
Beating the Script Timeout
I have a server script triggered on Item Receipt, and for each item line I need to read the item record to get custom fields. For any receipts with more that 7 lines I was receiving a timeout, but I changed the way I was searching and managed to avoid the server timeout. Before I was doing a search for each line: for ( i =…
-
Quick question on searching Sales Orders
I have this script working, but the search results are returning cash sales, invoices and sales orders. I suspect that I have the filter for sales orders set incorrectly. Customers always have only one sales order in this case so i have set the loop for only 1 until I can figure out how to filter it correctly. I have…
-
Detecting which Save option a user chooses
I would like to detect which save option a user selects when saving a form. The form I am interested in is the Phone Call form and I want to detect when the user presses "Save & Copy" or "Save & Follow Up" - depending on which role is being used. Does anyone have any idea how this can be done?
-
Copy Custom Line Item Fields to Custom Body Fields
Hello JavaScript Experts, Another quick question on JavaScript. I have created a script that looks at the line item of a sales order and copies it into a custom body filed so that we can see it in the Fullfillment screens i.e. pick/pack/ship. The first function "grab_line_options()" works perfect, and if their is more than…
-
Checking if a field has been changed using Suitescript
Hi - I'm working on a server-side script which needs to check if a field has been updated since the last time the user submitted the record. It appears that the function nlapiGetOldRecord should do the trick. However, that function seems to be returning null. Any suggestions on this function would be very appreciated - if…
-
Help with script
Hi, Can anyone tell me what I am doing wrong with the following script: var newRecord = nlapiGetNewRecord(); var filters = new Array(); for ( i = 1 ; i <= newRecord.getLineItemCount('item'); i++ ) { var itemID = newRecord.getLineItemValue('item','item',i); filters[0] = new…
-
Error while adding a custom field value using CustomFieldList class
Hi, I have generated client side code using wsdl1.3.1 in java. When I try adding a custom field value to a customer record I get the following error:An unexpected error occurred. The custom field value is a list type value and here is my code: -----------------------------------------------------------------------…
-
Only one request may be made against a session at a time
During development I encountered this error: com.netledger.dto.v2_0.faults.InvalidSessionFault: Only one request may be made against a session at a time Fine. So I put all NetSuiteService requests behind locks. And it still (randomly) happens. I even print out when each thread entered and exited the NetSuiteService code:…
-
Invisible field
Hi, I have a subtab of inventory items called 'sourcing', on which there are 16 fields. 15 of them display okay, but one of them (Reorder Point; a Netsuite standard field) will not show up in either the 'view' or 'edit' modes. It's 'show' field is checked in 'customize->fields->sourcing' tab. It's display type is set to…
-
Updating custom forms / Customer records
With version 11, we're seen some layout variations in the customer record screen. We went back and modified the default customer form to capture some of the new features ('sales tab' for companies instead of just 'transactions') etc, and saved this as yet another custom form and made it default. But now we seem to have a…
-
Tax amount wrong when creating SO from WebServices
I'm creating some sales orders via webservices. We're in the UK and the Tax Rate is being set properly (17.5%) but the tax amount stays at 0.00 which is obviously wrong. If I create a sales order manually, or edit update the sales order created from webservices then the tax amount is updated correctly. What this means is…
-
Exceptions generated for sub-customers?
Bah, nevermind. Javascript short-circuit conditional problem on my part.
-
Benchmarking: Search Operations
I ran some benchmark tests with the search operations using the NetSuite webservice and I found that performing several small requests is actually FASTER than one large request. For instance, I was performing a SEARCH for any inventory item inside NetSuite. This results in a total of 653 records (for our particular…
-
Is there a way to pass smbxml as a string thru webservice call
Hi, I am interested to know if there is a webservice call which accepts smbxml as a string and creates orders/records (ex: salesOrder or Customer records) in Netsuite? Thank you!
-
Reports -> Integration missing
Hi, for some user accounts, I can find SOAP messages in the Reports -> Integration -> Integration and Automation Usage Summary By Job tab. What are the permission(s) needed to see this? In other accounts, I do not see the Integration tab at all under Reports. Thanks
-
NetSuite web services integration professional services
Hi all, we would like to know out there if there is a person or company that is well experienced in NetSuite web services integration and web development, or has had experience with NetSuite web development subcontractors that can be shared with us. We are hard working on a design of an external system that is supposed to…
-
Change cursor to Hourglass in Client SuiteScript
On the Sales Order form I have added a Client script to read existing Sales Orders to check that the PO Number being entered has not been used before. I have added the code to the Field Changed event. My code works, but the search may take a while, so I would like to change the cursor to an hourglass during the search, or…
-
Problem generating client side code from WSDL
Hi, I am using java to generate client side code from 1.3.1 wsdl using axis 1.2.1 as follows on the command line: java -cp…
-
Odd exception error message
Ok, starting to get familiar with ServerSuitescript and I'm just trying to test a filtered search; but I'm getting a fairly odd error message when running my script: Script: updateCustomForm Error: JS_EXCEPTION Code: JS_EXCEPTION Details: org.mozilla.javascript.UniqueTag@9b76b09: NOT_FOUND The code I'm trying is as…
-
Help with email example is ServerSuiteScript
Hi all, This is my first time create a ServerScript. I have a few questions on the example of sending email. In the example in the ServerSuiteScript guide the function beforeSaveSalesOrder(type) and the function afterSaveSaleOrder(type) 1) What exactly is the type parameter represent in these two functions? 2) Also there…
-
Delete User Notes
Does anyone know how to do a delete for user notes. So far, I search for user notes that contain a certain title. I bring in each result into an array of records. The following code is the remainder. It bombs out saying invalid typeid. How do we find out what the typeid is? For i = 0 To response.totalRecords - 1 Dim…
-
SearchMore
I wrote software that retreives inventoryitems, there is like 6400 items to grab. After 1000 items, I need to grab the next page which works fine, but then on the 3rd page I get this error. Anyone knows whats going on. Could not perform web service invocation "searchMore". Here is the fault returned when invoking the web…
-
WSDL 1.3.1 vs. 2.0
Hi, Is WSDL 2.0 now Production quality? Should new users start with 2.0 or stay with 1.3.1? Thanks!
-
Rertieving value of attibutes from CUSTOM RECORDS
Hi All straight from Australia. I hope you can help me with the following. I did try to get help from Micros Australia but even though they tried very hard could not help me. So: I created a custom record that stores Membership card number for each of our customers (we call them members). One customer can have more than…
-
Custom Entity ID not available
When I create a new custom Entity, the ID field is not available. OK in my training account (UK version) but not in my Live account (intl version). any ideas how I can get this to show when I'm adding a custom entity?
-
Examples of Scripts
Hi All, Is there a place I can go to in order to find other examples of scripts. This is my first time doing this, and other examples would be very very helpful. Thanks. Steve
-
Working with custom records
Hi, I have a script that does a search for a custom record based on a value of a custom field after a customer record has been created. It used this value to lookup a custom record to see if it already exists. Here is the code: function CheckIfTHisCardNumberExists() { var currentRecord; currentRecord = nlapiGetNewRecord();…
-
Sourcing Filtering?
Our Partners supply different software systems that our Customers use. On the Customer Form there is a Partner field. When that is populated with a Partner name, I want a custom Partner System dropdown filtered by the systems that that Partner can supply. Do I need to use Customer Records for this? eg PartnerName,…
-
Formula Fields in Reports
Hi, Does anyone know if a custom field with a Formula as a default value can be included on a report? I suspect not... Cheers
-
Integration Units
What are the integration unit costs associated with different operations? For adds, it has been counting as 3 integration units. Is this the same for all objects, and does it matter if it is a list or not? Also, does anybody know if integration units are a per-month limit or a per-year limit? Looking in the PDF's does't…