SuiteApp Version: eXtendMobile 1.12 and above
Mobile App Version: eXtendMobile 1.12 and above
Audience: eXtendMobile Admin

Use Case

  • Initializing a NetSuite Workflow using a button within a view function.
  • Reproducing NetSuite Workflow button actions within eXtendMobile functions.

Overview

eXtendMobile allows you to add a button to your view function that triggers a workflow on the current record. In this article, we will demonstrate how to configure the triggering of workflows from eXtendMobile view functions.

Prerequisites

  1. Required Role Permissions: The necessary permissions will need to be applied to the eXtendMobile Server role (used in creating the M2M credentials), go to Setup → Integration → Manage Authentication → OAuth 2.0 Client Credentials (M2M) Setup. All M2M credentials created in your account will be listed here. Locate the credentials for eXtendMobile, and check the role applied to it. This is the role to which you need to apply the following permissions (if not already added):
    1. Permission: Setup → Workflow.
    2. "Full" permission for the record type of the view function where you want to add a button to trigger a workflow.
  2. Workflow Creation: Create a new workflow based on the original workflow applied to the record that you are wanting to reproduce in eXtendMobile. This new workflow should have the following characteristics:
    1. The Release Status must be "Not Initiating".
    2. Do not add an "Add Button" action, as it will be triggered directly and isn't necessary to include.
    3. Since you currently cannot display the button conditionally in the eXtendMobile function, ensure all required criteria are applied directly in the workflow.
    4. Use "Before Record Submit" triggers.

Configuration

To configure the button in eXtendMobile, follow the steps below:

  1. Log in as an eXtendMobile Admin user in either the mobile app or eXtendMobile Web.

  2. Go to the function where you want to add the workflow button, then open it in edit mode.

  3. In the eXtendMobile app, you will see a button called Initialize Workflow on the main function details page. On eXtendMobile Web, this button is under the Advanced Settings section.

    1. In the eXtendMobile app, a page will open where you can add workflow details using the floating add (+) icon.
    2. On eXtendMobile Web, clicking this button opens a modal where you can specify workflow details.


  4. Select the workflow you want to trigger using the button under the field Select Workflow.

    Only non-initiating workflows applied to the current function's record type will appear in the list.

  5. In the field Button Label, specify the button label that will appear on the function.

  6. If needed, you can add multiple workflow trigger buttons. Repeat the above steps to add more buttons.

  7. After setting up the workflow details, save the settings.

  8. When you execute the function, you will see a button on your function. For example, in the use case below, the button was added with the name Approve Order, and clicking this button will update the status of the Sales Order to approved using the configured NetSuite workflow.