Creating a Script Deployment for the Auto-charge Credit Card Script

If you want the Auto-charge Credit Card script to run on different schedules for different parameters, you can create multiple script deployments.

To create deployments for the Auto-charge Credit Card script:

  1. Go to Customization > Scripting > Scripts.

  2. Click the Deployments link of the Auto-charge Credit Card MR script with the ID customscript_psgacc_mr_acc.

  3. In the Script Deployments list that shows the deployments available for the script, click New Deployment.

  4. In the Title field of the Script Deployment page, enter a descriptive name for the deployment. For example, Auto-charge Credit Card for New York Subsidiary.

  5. If you do not enter an ID in the ID field, the system will create an ID after you save the deployment record.

  6. In the Status field, select one of the following:

    • Not Scheduled – If you select Not Scheduled, the script will run when you click Save and Execute.

    • Scheduled – If you select Scheduled, the script will run according to the settings on the Schedule subtab.

  7. Ensure that the Deployed box is checked, otherwise the script will not run.

  8. In the Schedule subtab, define the schedule for executing the script:

    1. Choose Single Event, Daily Event, Weekly Event, Monthly Event, or Yearly Event. By default, the schedule is set to Single Event.

    2. In the Start Date field, select or enter the date when the script scheduler should start. Note that before the script runs, ensure the Status field is set to Scheduled and the Deployed box is checked. Today’s date is set as the default.

    3. (Optional) In the Start Time field, select the time the script will be placed into the NetSuite scheduling queue. This time isn't necessarily the time the script will run. It's only the time the script will be placed into the queue.

    4. (Optional) In the Repeat field, select how often want the script added to the NetSuite scheduling queue. On scheduled days, it’ll go into the queue at the specified Start Time and repeat every n hours until midnight.

    5. (Optional) If the script schedule is not set to Single Event, the following fields become available:

      • End By – Select or enter the last date that the script will run.

      • No End Date – Check this box if you do not want to set an end date.

  9. On the Parameters subtab, select values for optional fields as needed.

    • In the Subsidiary field:

      • If you are using a OneWorld account, select a subsidiary if you want to limit the search to sales orders under one subsidiary. To process sales orders for all subsidiaries, leave the Subsidiary field blank.

      • If you are using a non-OneWorld account, you must leave the Subsidiary field blank.

    • (Optional) In the Customer field, select a customer. If you don't select a customer, sales orders of all customers will be processed.

    • (Optional) In the Credit Card Processor field, select a credit card processor. You'll only be able to select payment processing profiles already set up in your account.

    • (Optional) In the Sales Order Bill Date field, select or enter the date to narrow the search. The value in this field refers to the value in the sales order’s Date field, not the creation date.

    • (Optional) In the Cash Sale Bill Date field, select or enter the date you want to display on the cash sale record. If no date is entered, today’s date is used. The system uses Pacific Time (UTC 8).

    • In the Report Recipient field, select the employee who will get error notifications. Only active employees are available for selection.

    • In the Report Sender field, select the employee whose email address will be used to send error notifications. Only active employees are available for selection.

    • In the Sales Order Search for Billing field, the Sales Orders for Billing saved search is selected by default. You can also create a customized saved search for any changes in payment methods and select it for redeployment.

  10. Click Save.

To see script deployments of the Auto-charge Credit Card script:

  1. Go to Customization > Scripting > Scripts.

  2. Click the View link of the Auto-charge Credit Card MR script (ID customscript_psgacc_mr_acc).

  3. On the Script page, click the Deployments subtab. The list includes a Title column where the names of the deployments are shown.

Related Topics

General Notices