Open Email Message Popup Window using a custom button and set default values

The following User Event Script deployed to Sales Order record places a button on the sales order page named Email CS. Once this button is clicked, an email message window popup will be opened with predefined values of recipient and template category. We could pass many field values through the URL parameters. For those values… Continue reading Open Email Message Popup Window using a custom button and set default values

Reallocate Items using SuiteScript

Reallocate committed items from Sales Order using SuiteScript. Please Note: NetSuite SuiteAnswer says scripting is not supported for Reallocate Items record, but this is possible via Suitescript. So this might become available in future NetSuite releases as a new feature. So I advise everyone to use this with precaution for now.

Proposal For Custom Page to Send Invoice Email

Proposal summary The proposal summarizes the details about the custom suitelet page which helps the user to preview invoice print and send mail to the user based on the invoice record. It includes email template creation and automatic email sending for specific customers. Prerequisites Macrofin needs to ensure that all the invoice via checkbox in… Continue reading Proposal For Custom Page to Send Invoice Email

Issue in iterating search results

Scenario: While creating saved searches, after getting its result we may need to iterate the result sometimes after the iteration only one item may show in the console(or any output platform). Solution: The searchResults.run() method need a return true statement to continue the iteration. In Suite script, there is no break statement to break the… Continue reading Issue in iterating search results

Auto journal creation & application in Payment

Scenario: Create a journal for applying in the credit section of the payment. Ultimate need is to capture the credit info from the custom record, need to create a journal or custom transaction of journal type then apply the same in the payment record.We have seen a limitation of once payment is saved the credit… Continue reading Auto journal creation & application in Payment

Comparing Two dates

Scenario: We have a start date and a Due date and need to a validation where Due date date should be a date after the Start date. Solution: Usually we can use the JavaScript Date() function. But you can’t compare two dates using that. Better approach to make comparison between dates is to use getTime() function. This… Continue reading Comparing Two dates

When you can’t add details in every fields in Suitelet

Suitelet scripts can be executed with any client scripts. Sometimes in such situations, the suitlet page(interface) mayn’t be working perfectly. There will be some conditions where some fields may not be working or sometime you can’t enter values to all (necessary) fields. In such situations, output also won’t be perfect. In the client script, almost… Continue reading When you can’t add details in every fields in Suitelet

Sublist Line Item not Committing via SuiteScript 2.0 Client Script

Sometimes the user is not able to commit a line item via SuiteScript 2.0 Client Script. The reason why the line item is not committed on the script is because the forceSyncSourcing parameter retains its default value is false.We can resolve this by making forceSyncSourcing true. The forceSyncSourcing parameter indicates whether to perform field sourcing synchronously. If set to… Continue reading Sublist Line Item not Committing via SuiteScript 2.0 Client Script