Deploying the Script for Bulk Scheduled Certification of E-Documents

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

For more details about E-Document Certification in general, please refer E-Document Certification in the Outbound Process

Note:

By default, you can view, edit, and run the Automatic Certify E-Document MR script included in the SuiteApp only if you are an administrator. 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 certify outbound e-documents.

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

  1. Go to Customization > Scripting > Script Deployments

  2. Click the Edit link of the Automatic Certify 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:

    • Testing

    • Not Scheduled

    • Scheduled

    For more information, see Setting Script Deployment Status

  5. Choose an event type on the Schedule subtab:

    • Single Event – The script sends outbound e-documents for certification 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 certify 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 certify 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 certification of e-documents .

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

    • Repeat – Select how often you want the script to certify 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 for certification.

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

      If you are scheduling a repeat event, e-documents will be sent for certification 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 certify 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 Certification, and then sends them for certification. After the outbound e-documents are sent for certification, their status is changed to one of the e-document statuses denoting a successful certification (Ready for Sending) or a failure in certification (Certification Failed or Certification Data Error), depending on how the Certification Sending Method implementation is configured. For more details, please refer Updating E-Document Certification Statuses.

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.

General Notices