My Stuff
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Comments
-
You cannot use "alert" directly in a server-side script since the "alert" statement is only part of client-side script implementations in browsers. You can set an "alert" statement in a Before Load by setting script into the value of an inline html field. Example: function beforeLoad(type, form, request) {…
-
Make sure to take advantage of the client-side debuggers in Internet Explorer (built-in) or Firefox (using Firebug add-on) to debug your client side scripts. That might help you pinpoint this or any future client-side script issues. Search for files named media.nl when using the debugger. These will be your client-side…
-
You can throw an exception using nlapiCreateError. This won't give the end user a pop-up message like in client script when using alert, but it does bring up a separate page containing the message. If you use nlapiCreateError in before submit, then it will cancel the persistence of the record to the database.
-
This is as designed. When transferring files from Eclipse to NetSuite using the NetSuite add-on, files are automatically placed into a subfolder of the SuiteScripts directory based on the Eclipse project name. This does not cause a problem though. SuiteScripts in subfolders are usable as if they were at the top level…
-
You can implement a lead nurturing workflow using the new SuiteFlow component. Search for Lead Nurturing in the NetSuite Help Center. That will take you take a sample lead nurturing Workflow.
-
We do not have a separate web services course on PHP. However, if you are using the PHP Toolkit (recommended) for your integrations; the object model is nearly identical to the code that is generated when using C# or Java. The class is delivered using C#. The class gives focus to the structure of the soap messages, which…
-
All webinars such as this are made available in SuiteAnswers about one to two weeks after the live presentation. In SuiteAnswers: 1 - click on Learning Center in upper left corner 2 - click the Training Webinars category in the Training Videos section 3 - you'll find all of the recorded webinars here Regards, - Bruce
-
I have encountered a similar issue with the Send Email action. I'll be submitting a case for this. - Bruce
-
What I did was create a client side script, but I am not using the SuiteScript client-side events (e.g. pageInit, fieldChanged, savedRecord). These may have context in a form-based portlet, but I have not tried. So instead of using pageInit, I am directly adding a "load" event listener to the page. // Inside the Client…
-
I've encountered the same problem with a custom portlet and found a workaround. I don't yet fully understand all the DOM layers surrounding a portlet, but there is definitely a scoping issue, I found that if I add the click event inside of a script tag within the portlet content, then the event is not available by the time…
-
Hi - I run the technical curriculum at NetSuite. RESTlets are not part of the SuiteTalk course as they are implemented through SuiteScripts, as Olivier has alluded to. Our 5-day SuiteScript course does not explicitly cover RESTlets, but once you learn how to call a RESTlet; the bigger thing to learn is what you can do…
-
Is your email being sent TO a record, such that you can open it at the Communication, Messsages subtab? If so, you can at least verify whether the CC field is being populated when opening up the message in NetSuite and clicking on the Recipients subtab. I did notice that you cannot have a space between commas, although…
-
Good ideas! Is a requirement of your use case to click the custom button to perform the field level validation? You can use a Before Field Edit trigger that will validate upon leaving the field. Note: there was a bug (now fixed in 2011.2 accounts) that still allowed users to save the form even after executing Return User…
-
The easiest way would be to create a workflow field of type Date. Execute a Set Field Value after your Send Email that places the current date into the date field. Set the date field using this formula: {today}. Then add a condition to the Send Email to restrict its execution if the value in the date field is the same as…
-
I've gotten it to work with a Go To Record action (equiv to nlapiSetRedirectURL), though you can only execute this during After Record Submit. You can set Custom Form in the Field area of the Parameters section. It works on new and existing records. It isn't supported yet if you're trying to do this with a Set Field Value…
-
Did you make sure that Transition On is blank? Also, there are some quirks with buttons in "edit" mode, so try again when viewing the record. If it doesn't go in "edit" mode; it just brings you to view mode and you click again. - Bruce
-
To the best of my knowledge this fix will be rolled into 2011.2 accounts this weekend (Oct 15th/16th).
-
See if your workflow is set to Execute As Admin. If set in this way; the role is always converted to Administrator. If you're doing some things that require admin access; create a subworkflow marked with Execute As Admin. The idea is the subworkflow performs the processing that requires admin access.
-
Please submit a support case for this. The internal id of a NEW sales order does not seem to be available in After Submit. I just tried this out myself. I set Transaction to {id} (formula) upon creation of a task. It works for existing sales orders, but not new ones. The id returned for new orders is empty.
-
Hi Eric - what you are seeing with nlapiTriggerWorkflow makes sense. nlapiTriggerWorkflow doesn't execute a user event, as records are not being updated. Sometimes the context information that gets generated isn't one that you can capture with the Context dropdown. When using nlapiTriggerWorkflow with the ID of a workflow…
-
Great questions Steve! Transitions are often evaluated after Actions are executed. This depends on the relationship between the Transition On for a Transition and Trigger On for an Action. Even if the Action would normally execute based on configuration of Trigger On versus the Transition, it will be skipped if there is a…
-
There are many things that can trigger a workflow to take an action or evaluate whether it needs to take a transition. Depending on how you have configured your workflow; any one of these things could potentially trigger it to take action or move to another state: [LIST] [*]record being loaded into your browser [*]record…
-
I glossed over the fact that you might be executing nlapiSubmitRecord from a user event script. If this is the case, then workflows will not get executed. This is also true of user event script to user event script execution. That is, if you execute nlapiSubmitRecord from a user event script, other user event scripts do…
-
I think some of the formulas are not technically SQL formulas, even though you get the pop-up that allows you to select a SQL function. I'm still working through it myself, but believe I saw a notation somewhere in help about "Javascript formulas". Here is a simple formula I set on a field when creating a record, but it…
-
Cool! I tried the following formula on a Set Field Value action triggered on Before Record Load of a new task record. It works. Just remember this won't work on the client since these are using SQL. And this won't work in Before Record Load for existing records (same restriction as in SuiteScript - cannot set field values…
-
SuiteFlow is heavily tied to the architectural model of Client and User Event SuiteScripts. Before Record Load, Before Record Submit, and After Record Submit all correspond to User Event SuiteScript Before Load, Before Submit, and After Submit events. The only places you can update the current record in SuiteScript User…