PayPack logo
PayPack logo

All articles

Email NotificationsUpdated 6 months ago

PayPack is able to deliver email notifications to customers using native NetSuite’s email templates. This ensures that any customer notifications are aligned with NetSuite workflows.

Send Automated Email on Successful Sales Order Payment

Choose Your Automation Method

  1. SuiteFlow Workflow: In the context of NetSuite, workflows are a fundamental tool that allows businesses to automate, streamline, and manage their processes more effectively.
    • Workflows are designed to guide data through a series of defined stages, actions, and conditions, ensuring that tasks are completed in a consistent and efficient manner.
  2. SuiteScript User Event Script: Offers more control, customization, and integration with other systems.

SuiteFlow Workflow

  1. Create a Workflow:
    1. Go to Customization > Workflow > Workflows.
    2. Click New Workflow.

  2. Basic Information:
    1. Name the workflow.
    2. Select the Record Type as "Transaction"
    3. Select “Customer Deposit” from “Sub Types”
    4. Select “Released” from Release Status drop down
    5. Set Initiation as “Event Based”

  3. Event Definition:
    1. Check the checkbox for “On Create”
    2. Select the “After Record Submit” in the “Trigger Type” drop down field
    3. Select the “Visual Builder” as Use option
    4. In the Condition option, click on open button and select “Stripe Charge Id (PayPack)” from the Field dropdown and select the “not empty” from the CompareType drop down and save the Workflow condition
    5. Finally click on the Save button to save the Workflow

  4. Define Workflow States and Actions:
    1. Click on the “State 1” from Workflow Workspace
    2. Click on the “New Action” under the State tab on the right handside.
    3. Select the “Send Email” type from the New Action popup screen

  5. Workflow Action:
    1. Select the Sender from the Sender drop down under Sender section
    2. Select the Email Template in the Content section that you created on the above
    3. Check the “From Field” from the Recipient section
    4. Select the “Sales Order” from the Record (Join Field) drop down field
    5. Then select the “Email” from Field the drop down
    6. Save the Workflow action

From now on, whenever the conditions you define in the workflow are satisfied—for instance, when a Stripe Charge ID (PayPack) is added or updated—the workflow will automatically initiate, sending the customer the email constructed using your chosen template.

SuiteScript User Event Script

  1. Create User Event Script:
    1. Go to Customization > Scripting > Scripts > New.
    2. Select User Event script type.
  2. Implement beforeSubmit Function:
    1. Check for Customer Deposit record, and context.UserEventType.CREATE.
    2. Stripe Charge Id (PayPack) is not empty (This means this field is added by PayPack solution)
    3. Use the N/email module to send email with relevant details.
  3. Deploy Script:
    1. Save and deploy the script.
    2. Attach it to the Customer Deposit record type.

Send Automated Email on Successful Invoice Payment

Choose Your Automation Method

  1. SuiteFlow Workflow: In the context of NetSuite, workflows are a fundamental tool that allows businesses to automate, streamline, and manage their processes more effectively.
    • Workflows are designed to guide data through a series of defined stages, actions, and conditions, ensuring that tasks are completed in a consistent and efficient manner.
  2. SuiteScript User Event Script: Offers more control, customization, and integration with other systems.

SuiteFlow Workflow

  1. Create a Workflow:
    • Go to Customization > Workflow > Workflows.
    • Click New Workflow.

  2. Basic Information:
    • Name the workflow.
    • Select the Record Type as "Transaction"
    • Select “Customer Payment” from “Sub Types”
    • Select “Released” from Release Status drop down
    • Set Initiation as “Event Based”

  3. Event Definition:
    • Check the checkbox for “On Create”
    • Select the “After Record Submit” in the “Trigger Type” drop down field
    • Select the “Visual Builder” as Use option
    • In the Condition option, click on open button and select “Stripe Charge Id (PayPack)” from the Field dropdown and select the “not empty” from the CompareType drop down and save the Workflow condition
    • Finally click on the Save button to save the Workflow

  4. Define Workflow States and Actions:
    • Click on the “State 1” from Workflow Workspace
    • Click on the “New Action” under the State tab on the right handside.
    • Select the “Send Email” type from the New Action popup screen

  5. Workflow Action:
    • Select the Sender from the Sender drop down under Sender section
    • Select the Email Template in the Content section that you created on the above
    • Check the “From Field” from the Recipient section
    • Select the “Customer (Payments and Deposits)” from the Record (Join Field) drop down field
    • Then select the “Email” from Field the drop down
    • Save the Workflow action

From now on, whenever the conditions you define in the workflow are satisfied—for instance, when a Stripe Charge ID (PayPack) is added or updated—the workflow will automatically initiate, sending the customer the email constructed using your chosen template.

SuiteScript User Event Script

  1. Create User Event Script:
    • Go to Customization > Scripting > Scripts > New.
    • Select User Event script type.
  2. Implement beforeSubmit Function:
    • Check for Customer Payment record, and context.UserEventType.CREATE.
    • Stripe Charge Id (PayPack) is not empty (This means this field is added by PayPack solution)
    • Use the N/email module to send email with relevant details.
  3. Deploy Script:
    • Save and deploy the script.
    • Attach it to the Customer Payment record type.


Was this article helpful?
Yes
No