This example shows how to record, save and play a basic script. This script will automatically create a new invoice.
Click Record Script(Alt+F1) to start recording. Your actions will now be recorded in the script.
Go to Navigator > Tasks > Invoicing System > Enter Invoices. Select Invoice.
Click Stop Recording (Alt+F1) to turn off the script recorder. The Script Editor will open with the recorded code:
Dim frmINInvoice1 as Object frmINInvoice1 = CreateObject("Accredo.INInvoiceEntryForm") frmINInvoice1.InsertInvoice
Click Save(CTRL+S) to save the script.
Name the script NewInvoice1.pfs then click Save. Scripts are usually saved in the \AccredoSaturn\Scripts folder and are available to all Companies. Accredo Script files have the extension .pfs.
Click Run Script(Ctrl+R) to run the script from Script Editor. This will create a new invoice.
Close the Script Editor.
Click Play a script (Alt+F3) on the toolbar. Open the saved script NewInvoice1.pfs. Running the script will repeat the actions recorded before, and will create a new invoice.