My Stuff
Comments
-
If you want to create a button using SuiteScript on "view" mode, you'll need to use a User Event script which triggers on the Before Load event. This function receives a form parameter from which you can call form.addButton() on your code. If the button code is complex, I'd recommend linking via a client script using…
-
Have you tried setting the script deployment to execute with admin privledges?
-
You can do this using a custom field of type inline HTML and using DOM manipulation to hide the tab. You have to use it with caution though as anytime NS changes the DOM there is risk of it breaking. You use a formula on the inline HTML field. The big catch - make sure the custom field comes AFTER the tab/items you're…
-
You could create a script to export them as XML or use web services.
-
You could do a lookup on the item ID. There might be a search join to get this information using the search APIs, but I'm not 100%. I know you can get the detail by loading the item via nlapiLoadRecord and working with the sitecategory sublist.
-
You could accomplish this via SuiteScript. If this applies to all credit memos across the board, you'd create a user event script that runs on credit memo creation that creates a new invoices based on the amount and customer of the credit memo. Once that invoices is created, capture the ID of the invoice in your script and…
-
We're looking into doing that currently. From what I've seen, they have it pretty straightforward, you just enter your username/password into the settings for the NetSuite app in Okta and it automatically logs you right in using NetSuite's SSO APIs. If we continue to follow down this path, I'll post some feedback on here…
-
I've run into the same issue as there are no sourcing options for record type of inventory number. I've haven't found a great solution to it that works nice and dynamic.
-
Are you looking to populate a field from the initial window (not the pop-up)?
-
For the checkbox, simply use nlapiSetFieldValue('fieldname','value') Pass 'F' for value to uncheck, use 'T' to check (true/false type thing)
-
Try giving this a shot... When you call the window.open, add the parameter dependent=yes in with the other options: height, width, etc. In the fillMe() function in the new window, change the function call to this: window.opener.nlapiSetFieldValue('custeventequi_prob01','value');
-
You should be able to do it via your button via client script. If you're adding the button via a UE script vs. defining on the form itself, you can attach a client side script to the form and call a function on the button itself to run the logic to fill in the text, or define the script on the button itself, but depending…
-
You should be able to do this via Workflow I think. There should be a field called Status or might be called Document Status that you'd set to Sales Order : Cancelled. If you wanted to do it via script, you could update using record.setFieldValue("status","SalesOrder:C")
-
What should the link/response do in terms of interfacing with NetSuite? You could create an external Suitelet that has the parameter of the customer and maybe time record (or whatever the current record is) that when clicked sends a response/action back to NetSuite and then redirects the user to an appropriate thank…
-
You can probably do this using a workflow using the Remove Button action.
-
You could add a small search to your script checking for cash sales that were created from the sales order. If the search returns any results, then you know there is connected cash sales.
-
It all depends on what you're trying to do. You can deploy a Suitelet to the customer center in the deployment options for the script. If you're deploying a Suitelet, there is no record that it gets deployed to like you'd find on a user event or client script. You just give you deployment a name and ID. You'll want to…
-
I'm assuming the messagetype would be set by which option the user chooses in the UI. If they click Letter, it should go to letter, etc.
-
Once you have the file ID, you can add to the sublist as follows: nlapiSetLineItemValue('mediaitem','mediaitem',1,{file_internal_id}) Of course, if you have other attachments, you could use nlapiSelectNewLineItem...set value...nlapiCommitLineItem() I've done this before on emails/faxes - haven't tried it on letters though
-
Are you trying to add to the attachments sublist in the UI as the user is emailing or faxing the message?
-
You can have your saved search send an email on update. Under the email alert options, you can define which fields trigger the email when updated.
-
You can use tag substitution to add in custom CSS as well as inject code using JavaScript/jQuery if you want to do DOM manipulation.
-
What about through a multi-select field on the custom record for the assembly build and have that record=parent checked?
-
You'd first need to create a saved search for Item record types and add the appropriate filters there. Then, in the form customization for that opportunity form, go to Screen Fields > Columns and select that saved search in the Item Filter dropdown. This will filter the available line items for selection on that particular…
-
Check out the help documentation on nlapiPrintRecord() this allows you to print out different transactions forms in the system to PDF and even select a specific custom form to associate for the PDF layout. You'll need at minimum the internal id of the transaction you want to print. The API will return an nlobjFile object…
-
You could create a external Suitelet and place the Suitelet link in your email with parameters for the po ID and operation (approve or reject). I'm not sure if you could achieve this with a standard link without a script or native in the Workflow.
-
No. nlapiLoadFile simply loads a file by internal ID and returns an nlobjFile object. Do you have a requirement to run this via script? It seems it would be much easier via the UI simply using the Copy Files button and selecting the Folder you want to copy.
-
Haven't tested this, but you might be able to do this with the following: 1. Load the file with nlapiLoadFile() giving you an nlobjFile object 2. Create a new file from the loaded file's contents using nlapiCreateFile() 3. Set the new file's location to the backup directory using file.setFolder() 4. Save the new file using…
-
Yes, i've used this on sales orders many of times - should be ok.
-
You can use custom transaction body fields with sourcing setup to pull in the description and quantity on hand/available/etc. As for the description of the components, use the Customize button on your component sublist to add the column for description. I'm not sure if you can alert the order though of the columns. For…