My Stuff

pcutler Newbie

Comments

  • I've tried this too, and as far as I know this is not possible. The work-around that I've used is to create the field via customization, position it on the custom form and dynamically hide it via script when it shouldn't appear (as opposed to creating the field dynamically when it should appear).
  • Have you considered using an alternate JavaScript library for base 64 encoding instead of NetSuite's? For example: https://jsfiddle.net/gabrieleromanato/qAGHT/
  • Hi Karen, are you developing this in a sandbox account? If so, how do you have your sandbox email preferences configured? By default, sandbox emails are sent to the logged in user. Therefore, when testing client scripts, user event scripts, and suitelets you would receive the emails. In contrast, scheduled scripts…
  • Yes, you can use an email template in a scheduled script - check out the N/render module. However, if your needs are simple enough, you might want to consider a scheduled saved search to send the email, no scripting necessary.
  • If there is a way to add item lines in the email template create form I am not seeing it but until today I have never looked at NetSuite email templates Take a look at the advanced templates NetSuite created for printing sales orders and invoices for examples of how to loop through item lines with Freemarker. You will have…
  • It sounds like we might be running into the same issue. Your problem is that the value of the "record type" drop-down field is the numeric internal ID and not the script ID, correct? I wasn't able to find a great answer to this either, but the work-around I used: 1. You can get the display name of the custom record type…
  • I've noticed that too, but I haven't played around with options. Have you tried saving the search before redirecting to it? In that case, I imagine the title would show up just as it would if you accessed that same newly created saved search in the user interface.
  • I've had the same issue, and I agree with Mark - I haven't found a good answer. There are some related enhancements that you could vote for including 74042 and 142605
  • I don't believe NetSuite has made any updates, but another idea that might be worth checking - I wonder if the Internal ID exposed via SuiteTalk is the actual unit of measure's internal ID: https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2016_1/schema/other/unitstypeuom.html?mode=package
  • I noticed that you posted in the SuiteScript 2.0 section but mentioned nlapiSearchRecord which is a SuiteScript 1.0 API. The SuiteScript 1.0 API for paginated searches is as follows: var search = nlapiLoadSearch('customsearch_abc'); var resultSet = search.runSearch(); var results = resultSet.getResults(50, 60); // gets…
  • Thanks for sharing - have you guys considered SS 1.0 as a work-around? SS 1.0 still supports the legacy set line item value API methods for setting address fields, so you may be able to accomplish this with SS 1.0 without needing to access the address subrecord.
  • I got it working. The issue was that I did not have the plugin type specified on the Map/Reduce Script. I did see this after poking around but I did not see this information anywhere. Would be nice to see it as a note in the API doc that the code will not work unless you have the plugin type specified on the script record…
  • It looks like you're creating the task record in dynamic mode. Dynamic mode triggers the FIELD CHANGE event each time you call .setValue(). Have you added logging to isolate which line the script fails on? That could be helpful in determining whether there is a defect or a mistake in your code. For instance, if you're…
  • Hi John, do you want to share what the error is and why you feel like the error is related to SS 1.0? It's hard to provide suggestions without knowing more about the error. But I can second Oliver's general debugging strategy, it's generally a good idea to try to isolate the issue by temporarily disabling other scripts on…
  • Thanks for the suggestion, I ended up changing the deployment from All Roles to All Employees and now my script runs for all users in the UI but not in the web store, preventing errors. The route you suggested was good as well, but that would have required changes to the script and QA.
  • FYI - NetSuite is fixing this in 2017.2, so we won't have to wait much longer :)
  • IIRC the api to get the correct endpoint url does NOT require username/pass. Try sending just the account id. As far as I can tell, the rest roles service seems to require an authentication header. If I pass just the company ID, I get the following error: {"error" : {"code" : "USER_ERROR", "message" : "You provided an…
  • Let's say that custrecord_product has the formula 2 + {custrecord_some_number}. In that case, your filter could be 'formulanumeric:(2 + {custrecord_some_number}).' You are correct that you cannot use the custrecord_product field in your formula directly.
  • I would consider david.smith 's suggestion of using a library script. That said, there are useful applications of this - 1. locked 3rd party bundle scripts in same account 2. restlets have higher governance restrictions than some other scripts 3. leveraging Netsuite's permissions model The posters above are correct that…
  • The recommendation that NetSuite has provided partners is that we should build new projects in 2.0 but not invest the resources in rewriting existing 1.0 projects. That said, my personal opinion is that 1.0 is the safer choice unless you need the new features in 2.0 - and even then, consider writing those as separate 2.0…
  • NetSuite recommends using SOAP services or a RESTlet to accomplish this, see the following statement from NetSuite's Help guide: [h=3]Note[/h] To use an external server to initiate a NetSuite file transfer that doesn’t use SFTP, you can use RESTlets or SuiteTalk (Web Services). In SuiteScript, RESTlets can respond to…
  • If you're mostly satisfied with SiteBuilder but looking for something more modern, you might be interested in upgrading to SuiteCommmerce Standard instead. It was announced at SuiteWorld last year and is supposed to be a replacement for SiteBuilder.
  • Never seen that, but that would be scary!! Hope you can resolve the issue quickly.
  • On a shipping item's shipping and handling rules tab, you can restrict that shipping item to orders where the total weight is below a certain amount. Also, you can use SuitePromotions to set up free shipping promotions that are automatically applied and exclude certain items.
  • SuiteWorld 2018 will be April 23rd through the 26th.
  • I think most members on this board have experienced those frustrations at one time or another. The most constructive advice I can offer is that NetSuite provides a strong platform for customization when the core functionality does not meet your needs. Have you spoken to developers/consultants about building customizations…
  • pcutler, Support will still assist customers that want to start with a blank account. The following alternatives are suggested: [LIST] [*]Mass Delete via Inline Editing (Deleting Incorrect CSV Data | Answer Id: 9932) [*]Mass Delete (Performing Mass Deletes | Answer Id: 41014) [*]Use of script to mass delete records (Sample…
  • We started testing multi-subsidiary customer a month ago and ran into an issue with the SuiteScript API. Creating a sales order through SuiteScript with different transaction subsidiary then the customer subsidiary, fails due to the Tax Nexus form reload "popup". Creating the sales order through the UI works fine. Running…
  • chris.hunter Based purely on the documentation, I don't have this feature enabled in my account: First you would create a multi-subsidiary vendor by selecting the primary subsidiary as well as completing the list of additional subsidiaries. Then you would add a new relationship on the relationships tab (of the standard…
  • We've been testing this feature in 2017.2, and it's been working really well. It's full multi-subsidiary support for customer records just like was previously available for vendors. Great to see this rolling out for everyone!