Adding the Plug-in Implementation

When you have finished creating the plug-in implementation script file, create a new plug-in implementation. When you create the plug-in implementation, you upload the script file and other utility files as required.

To add the script files and create the plug-in implementation:

  1. Go to Customization > Plug-ins > Plug-in Implementations > New.

  2. In the Script File field, open the script file or add a new file.

  3. Click Create Plug-in Implementation.

    Select Plug-in Type page
  4. On the Select Plug-in Type page, click Custom GL Lines Plug-in.

  5. On the New Plug-in Implementation page, enter the following information:

    Option

    Description

    Name

    User-friendly name for the implementation. The plug-in implementation appears in the following locations:

    • Manage Plug-ins page. Page used by administrators to enable/disable the plug-in implementation in their account.

    • Bundle Builder. Select this name in the Bundle Builder to distribute the plug-in implementation to other accounts.

    • GL Impact page. For each custom lines added by the plug-in implementation, the Custom Script column on the GL Impact page lists the plug-in implementation name.

    ID

    Internal ID for the implementation for use in scripting. If you do not provide an ID, NetSuite will provide one for you when you click Save.

    Status

    Current status for the implementation. Choose Testing to have the implementation accessible only to the owner of the implementation. Choose Released to have the implementation accessible to all users in the account.

    Log Level

    Logging level you want for the script. Select Debug, Audit, Error, or Emergency. These messages appear on the Execution Log subtab for the plug-in implementation.

    Execute As Role

    Role that the script runs as. The Execute As Role field provides role-based granularity in terms of the permissions and restrictions of the executing script. The Current Role value indicates that the script executes with the permissions of the currently logged-in NetSuite user.

    Note:

    You can create the custom role during testing to test the plug-in implementation with the proper role. The role requires the SuiteScript permission. You can then bundle the custom role to distribute it with the plug-in implementation. See Test the Plug-in Implementation and Bundle the Plug-in Implementation.

    Description

    Optional description of the implementation. The description appears for the implementation on the Plug-In Implementations page.

    Owner

    User account that owns the implementation. Default is the name of the logged in user.

    Inactive

    Indicates the plug-in implementation does not run in the account. Inactivate a plug-in implementation, for example, to temporarily disable it for testing purposes.

  6. On the Scripts subtab, from the Implementation list, select the script file that contains the implementation of the plug-in.

  7. On the Scripts subtab, from the Library Script File list, select any utility script files required by the plug-in script file.

  8. On the Unhandled Errors subtab, select which individuals will be notified if script errors occur. By default the Notify Script Owner box is checked.

    To enter multiple email addresses in the Notify Emails box, separate email addresses with a semi-colon.

  9. Click Save. You can access the list of implementations by going to Customization > Plug-ins > Plug-in Implementations.

Before you can test the plug-in implementation, configure the plug-in implementation and then enable it. See Configuring the Custom GL Lines Plug-in Implementation and Enabling the Custom GL Lines Plug-in Implementation.

Note:

You can use SuiteCloud Development Framework (SDF) to manage saved custom GL lines plug-in implementations as part of file-based customization projects. For information about SDF, see SuiteCloud Development Framework.

You can use the Copy to Account feature to copy an individual custom GL lines plug-in implementation to another of your accounts. When you edit a custom GL lines plug-in implementation, a clickable Copy to Account option is available in the upper right corner. For information about Copy to Account, see Copy to Account.

Related Topics

General Notices