My Stuff
Comments
-
var itemFulfill = record.load({type:record.Type.ITEM_FULFILLMENT,id:'internalidoffulfillmentrec'}); // Set a custom field itemFulfill.setValue({fieldId:'Some custom field',value:'Some Value'}); // Set status to shipped itemFulfill.setValue({fieldId:'status',value:'ItemShip:C'}); // Add a new line item to package sublist…
-
I think I got it, please correct if I'm wrong this seems to do what I want. var custModule = null; require(['/SuiteScripts/path_to_module.js'], function (module) { custModule = module });
-
Ok I had to chance to look and custom record with custom sublist things work fine but built-in item sublist this code seems to fail on SS 2.0. I think it's a bug, but I did remember that SuiteScript 1.0 and 2.0 are running at the same time so this code in postSourcing while not recommended seems to work.…
-
Not that I have a solution but I have had a similar issue in SuiteScript 1.0. building dynamic search filters. The same code would actually work on the client side but on the server side I had to use concat method as + operator was introducing an error maybe try 'custrecord_myrecord_'.concat(month, '_quantity')
-
In the context of a custom sublist field the below has worked for me, I'm assuming would work for costestimaterate. Also, I think you would likely want this code to run happen after the item field on sublist changes and on line init var rec = scriptContext.currentRecord; var sItem =…
-
Perhaps SuiteScript 2 is doing greater type checking. Have you tried using parseInt on the value just to see if that works?
-
Not sure if you just omitted it in your sample but I don't see you using the search results in the template content you provided. When you call addSearchResults the templateName is the name you wish to use when referencing those search results in the template content. So I expected to see in your template content <#list…
-
I think maybe it's just how the 2.0 API is structured perhaps causing confusion. The following code allows me to do XPath select on the document resulting from XML string var xmlDoc = xml.Parser.fromString('<Books><Book><Title>SuiteScript 1.0</Title></Book><Book><Title>SuiteScript…
-
I'm sorry but yes you can if you run the below code on a page containing a 2.0 Client Side script this will run in the Chrome Browser Console require(['N/record'], function(record){ var strTaskID = '198256';//replace with a task id in your system var rec = record.load({id:strTaskID,type:'TASK'}); console.log(rec.id);})
-
The code is posted above. My client side Script 2.0 with no reference to 1.0 API the first block of code works in the Browser console loading a task record. The second block (trying to create) a task record fails with "nlapiGetField(...).isHidden is not a function"
-
Hi John, Could be several things, but if I had to make a bet, I'd say that what might be happening is that when you submit the record, it triggers all existing scripting deployed on that record. So maybe another script is failing and the error is bubbling up to your submit. I would not rule out that, as all scripts are…
-
Olivier Gagnon NC When we started with NetSuite the Subsidiary Hierarchy might not have been done correctly. We're a Canadian company and also have a registered company in the US. All US sales are in US Subsidiary which consolidates to the Parent company in CAD. In previous conversations with our controller she had…
-
Thanks javier for providing some feedback. I'm not an accountant or in finance (developer) but I've learned a lot on our journey in NetSuite. Just talked with my controller, who was told by NetSuite this was a professional services thing but maybe they never really understood the question. If it's that simple that would be…
-
javier , Olivier Gagnon NC Thanks for the help, it worked. Controller happy! Little frustrating this was a such a simple solution and we were directed to not believe it to be so simple. Anyways it works thanks again.
-
Anjou, I am also in London, On and nearing the completion of a NetSuite implementation. I sent you a message with my details. I look forward to hearing from you.
-
saenzmariano I got email from support saying this has been fixed and released. For Eclipse will this be part of 2018_2 version of the plugin and do I just update the URL of the plugin to pick up the fix?
-
saenzmariano here's the details I see in eclipse, not sure if there's another log other than what I see in the IDE. *** ERROR *** Validation failed. Details: The content of elements must consist of well-formed character data or markup. File: ~/FileCabinet/SuiteScripts/sdf_mtg_invoice/mtg_invoice_due_email_template.xml…
-
saenzmariano Thanks for your assistance manually adding the roles to the manifest works. In my case when the dependency issue is a role only "Add Dependencies to Manifest" opens the Manifest and changes nothing.
-
lfernandes for a custom role that has permission on a custom record. Assuming you're using Eclipse, when you right click and pull up the NetSuite menu and click Add dependency references. It should just add the script id of the custom record to the manifest.xml it doesn't add the actual record definition in the objects…
-
saenzmariano Thanks for you time and following up for me on this.
-
saenzmariano Still seeing the issue. Below still returns an error "The content of elements must consist of well-formed character data or markup." [CODE] <?xml version="1.0"?> <pdf> <body> <#assign cn> <#if record.subsidiary?matches("Some Subsidiary")> <b>Some Subsidiary</b> <#else> <b>Other Subsidiary</b> </#if> </#assign>…
-
saenzmariano I have an SDF project which is just a suitelet. The suitelet is only available to be run by certain roles. So I created my script file and deployed the script to the roles in the sandbox account. When I try to import the script deployment back into the SDF project is where I start getting the errors mentioned…
-
kcng Thanks for the pointer in the right direction. I looked at the help some more and that should do the trick.
-
I'm still on 2017.2 with an upgrade of next Friday. I just verified on my release preview account both Downloading XML from the UI, and Importing the object via Eclipse are working. Thanks for the help!
-
Having to create all those attribute files makes me think I'd be better off doing this with new customizations, and slowly cleaning up existing customizations into a better SDF project compatible structure. Let's say I have a project called common. This project just has script files with functions that get used in all…
-
When it comes to invoice printing I would recommend option #2. You can't access the exchange rate tables directly in a template, you could pass the value into the template but this means controlling how your team prints invoices, as the standard print on an invoice record wouldn't be passing the exchange rate to your…
-
Seems out of the box you can't link an Advanced PDF to the case form like you would a transaction. So I see a couple of options. First, you could create a PDF from a Support Case search result, or create a Suitelet that would generate the PDF you need. If a search was setup to only return one case and had all the fields…
-
So in the case of the workflow it's not necessarily that it's HTML it's that in this instance it has the page number? If so are you setting the non stored custom field value in the workflow prior to doing the sendEmail?
-
While you see system notes in the UI, they're not part of the record passed to the template engine. If you've done some customization via SuiteScript you could overcome this limitation by searching for system notes associated with a given case and passing the resultset of system notes into the template. The problem with…
-
Yes you can have a non-stored field on the record the template is for then before adding the record to the template object you can set that custom non stored field value to something. Or if your using SS 2.0 you could add a custom data source which could be a JSON config object where you set this value.