-
Receiving a PO using Suitescript
Hi - I'm working on a script which will (hopefully) automatically receive a PO if it meets certain conditions. Is there a way to script the receipt of a PO? I tried simply setting the 'quantityreceived' to the 'quantity' for each lineitem, but that edit didn't take - I'm guessing that 'quantityreceived' must be a read-only…
-
Default Formula Value Doesn't Carry Over
This seems like an odd thing and I'm unsure if the system should work this way. I have created a "copied terms" field that sources the terms field. The custom field formula value is {terms}. I needed to do this because I am unable to create a custom field on my item fulfillment screen that sources directly from the terms…
-
Problems with scripts reading library file
I am having some suddenly strange things with errors noting 'undefined' functions, variables and objects. These undefined items are listed in the script library file identified with the script file in custom code section of form. Seems the script can not see the library script although library script checks out as working…
-
Issues with Searching in Serverside SuiteScript
Hello All, I have written some code that will update all the open sales orders terms field for a customer. We do this because sometimes we will put in an order for a customer before their terms is complete and although we keep them on hold, when the terms is updated it is not reflected on the sales order and the resulting…
-
SEND EMAIL NOTIFICATION? Throws Error!
//SEND EMAIL NOTIFICATION var emailRecipient = 29275; var userID = nlapiGetUser(); var EMPName = nlapiLookupField("employee", userID, "entityid", null); var MySubject = "This Test Email was created by: " + EMPName; var messageBody = "\nCREATED BY: " + EMPName;…
-
Server-side PO code not running on web orders
I have a server-side script that executes whenever a PO is created or modified. When an SO is manually entered for a drop-ship item, it automatically executes. However, when an identical order comes in through the web (set as pending fulfilment) the script isn't called. The script is available to all users and runs After…
-
Author must be employee for nlapiSendEmail?
I'm trying to use nlapiSendEmail and I've tried using my employee name and my email employee email address as the "author" of the email but I keep getting an error - SSS_AUTHOR_MUST_BE_EMPLOYEE. I don't see any internal ID numbers that I can use. What am I missing? Thanks, noob
-
Webservices 2.5 Beta - Credit Memos Timing Out...
As a note to the developers, I have found that when creating a credit memo with the beta webservices (2.5), my connection times out if the item list contains more than 15 items. It happened consistantly, without failure. As soon as I began limiting the number of items to 15 per credit memo, the application worked fine.
-
getFieldValue('createdfrom') is null
I've spent the weekend fighting this. I have the following code for when we "Receive" items from Purchase Orders: What I need is to get the internalid of the Purchase Order that the receipt was created from but it is always blank. Doesn't matter if I do before_submit or after_submit, it is always null:) Can anybody see…
-
Serverscript for web leads
I have a serverscript deployed on lead records to set the Pricelevel to a particular value for new leads which come from the website. I don't get any errors but the pricelevel doesn't get set either!! Am I doing something wrong?? My script: function beforeSaveCustomer(type) { if (type.toLowerCase() == 'create') { var…
-
Create report on Custom Records
Is this possible without the record being a child of something else that is reportable? Done through search - please ignore!
-
script access to fields on contact Access/Notify checkbox
Is there a way to access the checkboxes 'giveaccess#' and 'sendemail#' (# = row number in list) for contacts listed under the Access tab? First, we do not want the general access area turned on so we use client side scripting to prevent this. Second, we have multiple customer centers and unfortuantely NetSuite does not…
-
What fires when you change the Price Information?
I noticed that when you change the base price nothing fires? Is there a way to catch the change of prices in any way during either field change or field validation? I tried to code something that will update another field with our wholesale price but when I have it fire when the record is submitted the submit button stops…
-
Customising the font size in a P/O
How do I change the size of the font for the item area of a Purchase Order or Invoice. I have a P/O that when faxed the recipient cannot read the text. In the Setup --> Custom Forms --> Custom Transaction Form --> Printing Fields --> Columns area when printed is very small text... Please help!!!
-
Set Value for Base Price
I have a custom form for our data entry department. I am autofilling a bunch of fields for them with JavaScript. They only create Non-Inventory Items for Sale. I want the Base Price to be $35.00. I don't know the field name for Base Price nor can I find in the documentation. nlapiSetFieldValue('price','35'); Any Ideas of…
-
Auto-assign case on Quick Add: New Case Portlet
I'm told by NS that to automate case assignment to the user who creates the case using the portlet on the Support Dashboard, a script will have to be written. Anyone done this so I don't have to work too hard to figure it out? :) Or, if you can give me a good direction, I would love that, too. Josh
-
Exception returned from updateList() on SalesOrders
Netsuite is throwing an exception when we try to updateList on an array of SalesOrder objects: EXCEPTION: com.netledger.dto.NLSoapFault: No data was found at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at…
-
Default field values in Before Load Function
I want to default the Unsubscribe field to False for all new Customers. I have developed a Before Load Server Script as below but the it does not change the value of the unsubscribe field. What am I doing wrong? Here is the code: function beforeLoad(type) { // Default Unsubscribe to False if (type.toLowerCase() ==…
-
Displaying Images in Email Tempaltes
Hi I am having difficulty displaying images in email tempaltes. Netsuite support don't support HTML so have not been able to help. I think I may have a local problem to do with pop-ups or the firewall which is compounding this problem. I have tried things like chanmging my IE security levels and switching off my firewall -…
-
new role not showing up as available
Hi, I have customised a role of Sales Manager, then gone into Setup > User Roles > Manage Users Then Lists > Employee > Edit > Access tab and added the role and saved. Logged out, logged in and the role is not available to choose from?
-
nlapiAddMonths function
Hi there, I'm having problems using the nlapiAddMonths function. If I use it this way endDate = nlapiAddMonths(startDate, monthsToAdd); where startDate is a valid Date and 'monthsToAdd' is an integer, I get the error message 'TypeError: getFullYear is not a function.' I haven't got 'getFullYear' anywhere in the script so…
-
SuiteFlex SuiteBuilder and Suitelets in 2007?
I just read this from Information Week: http://www.informationweek.com/internet/showArticle.jhtml?articleID=193402410 The new SuiteFlex platform is a toolset for extending NetSuite's user interface and hosted software system to incorporate custom add-ons. Some of the platform's tools are already live, but two major…
-
Sourcing a Sales Order Date onto Invoice
I am trying to show the sales order date on an invoice. I have created a new field called Created From Date, which is a date field. In the Created From Date field i have set the Source List to be Created From and i have set the Source From to be Date. My expectation is that the field should pull the date of the sales order…
-
Transaction Date ID
Can anyone tell me what the field id is for the date of a transaction. I'm tearing my hair out! I have a custom field that i'm trying to return a text representation of the month part of the transaction date. I am trying DATENAME(MONTH,{date}) but i get a Error: Field Not Found. I have tried {date}, {trandate}, {transdate}…
-
nlapiRequestURL postdata to PHP web page with Carriage Returns
I've got a textarea on an Item Receipt record that we scan serial numbers into. Our scanner always enters a carriage return after it reads. It is also used in other process which require the cr so we can't force it to something else. We put this textarea into a postvar like this: [CODE] macs =…
-
Detect Item Type
I need to detect the 'type' of an item when it is selected on the Sales Order Entry screen. Ideally it would be a function where I can submit the ItemID and it returns the type (Inventory Item, Kit/Package, etc) Any help is appreciated.
-
Saved Searches in Customer Center
Hello, We're setting up a customer center for a few of our clients. There are a few saved searches that we've incorporated, hoping to minimize the amount of time spent on updating them on order statuses. We'd like to have them all include the "Export - CSV" feature, but much to my confusion I can't figure out how. Some…
-
Campaigns in Web Services?
Has anyone been able to access campaign records via web services? We are working on a cleanup project on our database and want to be able to move certain campaign records to a different entity id if necessary. (We will be combining and then inactivating certain customer records and need to move all related "activities" to…
-
Server Side Portlet Error
Hey guys, I having problems with my first ServerSuite Script. It is a Portlet script and seems to run/finish correctly, but is showing an "SSS_MISSING_SCRIPT_FUNCTION" error. I have to ZOOM in on the following images to be able to read them:) This is what my portlet shows: Here is the Error Log: This is how I have it…
-
Custom Code to Set "Ship Date" -- Help!!
Hi All, we currently have a custom javascript written that is attached to our online sales order - Cash Sale form for our web store that looks at a custom item option called "Requested Delivery Date" a customer selects. When the script runs it figures out what the correct "Ship Date" needs to be based on "Requested…