My Stuff
Comments
-
I tried one more search phrase and found it! https://usergroup.netsuite.com/users/showthread.php?t=22092
-
That's a negative
-
Bravo, thanks! I'm sure you realize I'm a bit embarassed for not trying that myself... :p Here is the code that proves it works: var xml = '<book><author age="65" /></book>' var doc = nlapiStringToXML(xml); var age = nlapiSelectValue(doc, '//book/author/@age'); if(age) { nlapiogExecution('DEBUG', age); }
-
Looks like I jumped the gun on an API enhancement that is not yet officially supported. Option #1 (checking the execution context) is the only officially supported way to suppress user events from executing during scheduled script. In the near future, we will be rolling out official support for suppressing user events (and…
-
...I don't recommend using the {disabletriggers: true}) options. Ha! Yeah right! :p
-
nlapiSubmitRecord(record, { disabletriggers : true, enablesourcing : true }) Thanks, Yang AH! Cool! What is this disabletriggers stuff!? This is great, are there more?? clarification: I know what it is, but I had now idea we could do this.
-
Thanks for the confirmation. Glad to see a post from you, I was starting to wonder if you were still around.
-
Ah, thanks that's good to know. I assumed that was the problem because BluePeter's code was the same as mine except for that part. Does the search ID absolutely have to be in quotes then? CORRECTION: I misunderstood this question the first read: No, I don't think it needs to be in quotes. it will be parsed as a Number…
-
You want to use the "LIST_SEARCHRESULTS" task link. For example: response.sendRedirect('TASKLINK', 'LIST_SEARCHRESULTS', yourSearchID, false, { searchid : yourSearchID });
-
Note that we have a major expansion of built-in list types coming in 2010.2. Every field on the primary record types (transactions, entities, CRM records, and items) will be made available to sourcing and every built-in record type they represent will be availabe as a list/record type for custom fields. I have checked and…
-
OK, so on the Deployment record the Event Type field is blank? If so then I would assume that NetSuite is not raising events for this bulk operation. That seems strange though, I would expect they would.
-
Here's what worked for us in javascript: 'searchid' definitely has to be in quotes, otherwise the javascript interpretor will think it's a variable and it will be null. It's an object literal that is defining a property called searchid. It works fine for us without the quotes. I just tested in a standalone interpreter and…
-
I'm assuming you tried {shipzip} and it didn't work? Are you sure you setup the field properties correctly (don't store value, formula checked, type text, etc)? Do you get an error? Can you source other fields successfully?
-
Without seeing your code it's hard to know what setup you have. If you are checking for the event type == 'edit' (or something like that) you may want to try opening that up to also include 'xedit' which is the list edit type. Just an idea...
-
It's not the firstname and lastname but rather the 'entityid' field which I think is created from the firstname and lastname, I can't remember the default behavior as ours is created by script. Anyway, NetSuite treats this as the unique ID for the contact.
-
Are you sure that error is coming from that code?
-
Use 'H' only instead of 'RtnAuth:H'
-
Yes, you must create a deployment for it to be of any use to anything but a Form level client script. See, the script file is just a file in the file cabinet, it's the DEPLOYMENT that contains the data that NetSuite needs to execute the script. Read up on the help again, they cover this pretty well, better than I can…
-
Use 'H' only instead of 'RtnAuth:H' BTW, my advice here appears to be incorrect. It's odd because I'm using single character statuses in some code and it's working (god, I THINK it's working!). However I just came across this great post by Mathieu Goodman and I decided to fire up the debugger to test.... well, single…
-
Two things to consider: [LIST=1] [*]I'm not sure if you set the trans status to closed or if you close the lines and then the status is updated by the NS application (or determined at load time) - I think you may need to close the lines. [*]You status is key is invalid I think. As you can't interactively change RMA status…
-
are you by any chance setting multiple scripts? https://usergroup.netsuite.com/users/showthread.php?t=13020&highlight=setScript
-
I don't see that as being essential. Each script that executes gets to modify the record before it gets passed along to the next one. If a record arrives at my script with a certain value in a field, I don't need to know where the value came from (database vs. script), just what the value is. If there needs to be a higher…
-
Thanks Nick, sorry about that. I was trying to make it use a friendlier URL but apparently I broke it. I reverted it back to the old way, should work fine now. http://www.pmddirect.com/wp/?p=113
-
Hi Sklett, Tried and tested this web service request: <soapenv:Body> <platformMsgs:add xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s0="urn:filecabinet_2009_2.documents.webservices.netsuite.com"…
-
Hello Steve, Maybe you can use Netsuite's WS to upload your base64 encoded data to your file cabinet. You can invoke the add operation on your script and then add a File record. There is a field in their that is labeled as content. I think it accepts base64Binary contents. I haven't tried this yet but you can give it a…
-
Thanks Yang, Bitter sweet news because it was a lot of work to get my solution created. When researching our requirements and options to save files to the file cabinet this is what the Help has to say about nlapiCreateFile: nlapiCreateFile(name, type, contents) Instantiates and returns an nlobjFile object. This API is…
-
FYI, I just noticed you have 'anyOf' instead of 'anyof' (note capitalization) OK, back to my search for why 'anyof' is throwing 'UNEXPECTED_ERROR'
-
FYI, I finally got around to testing this out tonight and it worked great. I wrote a little object to make it easier to reuse in the future. Code found here: http://www.pmddirect.com/wp/?p=269
-
Glad it's working for you. I'm curious if you ever tried constructing a new Number object as I suggested in an earlier post?
-
BTW, if you set your reorder point on the item record it will alert you when that level is reached or exceeded. For example, I have an item (Assembly) with a build point of 7 (same as reorder point) and when I get low I see this: Duet: Time to build. This transaction will leave you with 5 available at this location with a…