My Stuff
Comments
-
I think that should be config.Type.COMPANY_PREFERENCES, not COMPANY_INFORMATION. Yup. That's where to check for the preferences the information should be extracted from COMPANY_PREFERENCES while other company-wide details are on COMPANY_INFORMATION
-
If the information that you want to retrieve can be found on the company information, you can use config module to load the information using var compInfo = config.load({type: config.type.COMPANY_INFORMATION}) and a conpInfo.getValue('custscript_paramaters')
-
Things to note on this can be on SuiteAnswers ID 61160 (https://netsuite.custhelp.com/app/answers/detail/a_id/61160), and SuiteAnswers ID 51781 (https://netsuite.custhelp.com/app/answers/detail/a_id/51781)
-
I actually tried to check it out through the context from the entry points as I am wondering whether it has an InvocationType similar to scheduled script but similarly, there is no invocation type on the context. Let's just say that you could have another script parameter (possibly a checkbox) which a user could check or…
-
More or less, it is porting module into NetSuite using shims on the require.config() and this means that there should be an export object in the non-AMD JS lib.
-
One thing, is that GUID that you are using provisioned for the script where you are trying to run it. GUIDs can only be used on scripts to where they are generated for with restrictToScriptIds param of addCredentialField()
-
whitecloud http://javascriptissexy.com/how-to-learn-javascript-properly/ is somewhat a good thing to start with, You may also checkout an interactive tutorial @ Codecademy. For you IDE, I would rather suggest SuiteCloud IDE when you start learning developing with SuiteScript/ SuiteScript 2.0
-
Hi ArunKumar One thing that you missed in here is the setting of the content type for the response. Also I would suggest that you the concern that you have would be referred using a new post here in the UG. :)
-
Hi @Okolesnyk, If you are working with server side script for this concern, you may try N/config to load the user preferences as well. Also for the timezone conversation, N/format has a timezone parameter which you can try on your end. Please see this SuiteAnswers article for more info on the usage…
-
Hi jmacdonald , For SuiteScript 2.0, you should have the libraries listed on the dependencies on the script itself. This means that the libraries are linked programmatically as modules
-
Hi starlingMark , I am wondering if you have placed the getting of getSublistValue() on GET instead of POST? I think that is the possible cause of the this concern.
-
Hi Chris, Also make sure to submit a support request so we can have an enhancement for this since it is a really good use case for checking the invocation type. Another solution that I am thinking is having a text field which detects invocation type by letters e.g. UI for user-interface, and OD for on demand which is…
-
Another thing would be on what script type does this scenario come in and on what trigger. How about trying it on the context of user event's beforeSubmit's newRecord.
-
Hi starlingMark , When you had it on POST, have you tried using assistant.getStep({id : <step2's id>}) then perform the getLineCount() and the getSublistValue() from there. The non-step number 1 is best placed on POST so it should have this addressed
-
ialan the result object has functions getValue() for general purpose and getText() to get the text presentation of an list/record field.
-
Hi @seamanjeff, You just have to set the type on the search as the script id of the search that you are about to create search.create({ type : "customrecord_mycustrecord", filters : [<place your filters here>], columns : [ "custrecord_field1", "custrecord_field2" ] })
-
Hi @JayDP123, One suggestion would be usage of a jwt-js library included on your script since you are performing actions on the client side.
-
Like ljceranic mention, search.Search has an attribute filters where perform a filters.push() before actually saving the search.Search object.The object that you should push on the filters.push() should be an object created using search.createFilter().
-
Hi @CFong, Yes. it should still be working with that kind of scenario.
-
You may use snippets feature also in View mode for snippets which are not interacting with the current record like setting the values and the the change visible right away like the snippet that David showed above
-
Hi @david.smith, task module is a server side only module that's why you are getting that error when trying to load it on the client side.
-
For this concern, I would suggest for you to use the Pagination search ni SuiteScript 2.0. Pagination search this would allow to to perform the pagination which is by ranges which will generally improve your script performance. Please see SuiteAnswers ID 49291
-
Agreeing with david.smith, you should use nlapiResolveURL() then append the parameters to the result of the resolved URL then perform the request url. But please note that you should have the same data center. This should be just the same on how you call it on 1.0 to 1.0
-
The counterpart of mySearch.getFilterExpression() from 1.0 to 2.0 is mySearch.filterExpression which returns an array
-
Hi Darren, Does this only happen to new records or does this concern happen as well on loading the record and saving it and performing record.submitFields()?
-
HI MChammaTX , The filter objects has toJSON() functionality that you can check filter details and from that result you can get the values array similar to this one require(["N/search"], function(search){ var mySearch = search.load({ id : 270080 }); debugger; var filters = mySearch.filters;…
-
Checking on the objects in N/ui/serverWidget. there no form object that could return that kind of form component. Similar to what erictgrubaugh and david.smith mentioned, the best way to approach it is the inlinehtml and maybe have a client script deployed on the suitelet to manipulate the value "if possible"
-
Agreeing with david.smith. Once you commit the subrecord and you haven't performed the itf.save() then the subrecord will not be saved. So after performing the record.transform() and the committing the line in the subrecord and committing the IF line, make sure to have the item fulfillment record saved
-
HI sundeepkotamreddy , For this concern, you may use the N/task module to perform the scheduling using SuiteScript 2.0. This module has the type ScheduledScriptTask that you could use to trigger the functionalities
-
Next step. The item was a drop ship and had create po.. I put the serial number in receiptinventoryassignment . I don;t get the error, but have to figure out the next step It's actually my first time to see the receiptinventoryassignment . Normally the issueinventorynumber is used for this scenario but good thing the…