Deploying the Script for Scheduled Sending of E-Documents

Like the script for generating e-documents in bulk, the Electronic Invoicing SuiteApp also has a script for automatic scheduled sending of outbound e-documents. The script sends only outbound e-documents whose status is Ready for Sending.

Note:

By default, only the administrator can view, edit, and run the Automatic Send E-Document MR script included in the SuiteApp, because the administrator has the permission to view, edit and run Script Deployment records.

For bulk processing using the MR script, the first active administrator gets automatically selected as the owner.

By default, the script’s status is set to Not Scheduled. The administrator can set a schedule for the script to send outbound e-documents.

To deploy the script for scheduled sending of e-documents:

  1. Go to Customization > Scripting > Script Deployments

  2. Click the Edit link of the Automatic Send E-Document MR script.

  3. Clear the Deployed box if you do not want to deploy the script yet. A script will not run in NetSuite until the Deployed box is selected.

  4. Select a status in the Status field:

  5. Choose an event type on the Schedule subtab:

    • Single Event – The script sends outbound e-documents only one time.

    • Daily Event – Enter the interval between days if this event should occur every day or every few days, or select every weekday if this event should occur every day except Saturdays and Sundays. For example, enter 1 as the interval if this event should occur every day, or enter 2 if the event should occur every other day.

    • Weekly Event – Enter the interval between weeks, and select the day of the week this event should be repeated.

    • Monthly Event – If you want to send e-documents on the same day of every month or every few months, enter the date when you want e-document sending to repeat and then select the interval between months. If you want to send e-documents on the same day of the week every month or every few months, select the week, the day of the week, and enter the interval between months.

    • Yearly Event – If you want to send e-documents one time every year, select the month and day, or select the week, day, and month.

    • Start Date – You must enter the date when you want to schedule the sending of e-documents .

    • Start Time – Enter the time when you want the sending of e-documents to start.

    • Repeat – Select how often you want the script to send e-documents. On the day the script is scheduled to run, e-documents will be sent at the specified Start Time and the process repeats every n hours until midnight.

    • End By – Set the date when the script should stop sending e-documents.

      If you are scheduling a single event, e-documents will be sent on the date entered in the Start Date field.

      If you are scheduling a repeat event, e-documents will be sent according to the schedule you set, starting from the date entered in the Start Date field and ending on the date entered in the End By field.

    • No End Date – Check this box if you want to repeat the schedule indefinitely.

  6. Click Save and Execute to send e-documents immediately. Click Save to send e-documents according to the schedule you chose.

The script automatically searches for outbound e-documents whose status are Ready for Sending, and then sends them. After the outbound e-documents are sent, their status is changed to either Sent or Sending Failed. Details of any error during sending are recorded in the E-Document Audit Trail. Error notification is sent to the Recipient of E-Document Notifications. If Recipient of E-Document Notifications has not been defined yet, the notifications are sent to active administrators. The notification has a CSV file attached containing details of the error.

Related Topics

Electronic Invoicing Administrator Guide
Installing and Setting Up Electronic Invoicing
Defining the E-Document Country for Free Use
Advanced PDF/HTML Template
Granting Access Permission to the E-Documents Portlet
Understanding E-Documents and E-Document Packages
Creating E-Document Packages
Multi-subsidiary Support in the Outbound Process
Creating E-Document Templates
Editing E-Document Templates
E-Document Certification in the Outbound Process
E-Document Network Status Overview
Creating E-Document Sending Methods
E-Document Email Custom Templates
Selecting a Designated E-Document Sender
Setting Up Custom Roles to Send E-Documents
Customizing Roles to Restrict E-Document Generation or Sending
Deploying the Bulk Generation Script for E-Documents
Scheduled Script for Getting Network Status of E-Documents
Updating E-Document Certification Statuses
Processing E-Documents Automatically for Individual Transactions
Electronic Invoicing Inbound Email Capture
Using SOAP Web Services for Inbound Processing
Setting Up Custom Roles that can Convert Inbound E-Documents
Inbound Validation Plug-ins
Deploying Automatic Bulk Conversion Script for Inbound E-Documents

General Notices