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 view function where you want to add the workflow button, then open it in edit mode.

    1. In the eXtendMobile app, you will see an Initialize Workflow button on the main function details page.


    2. On eXtendMobile Web, this button is in the Advanced Settings section.

      Image Placeholder
  3. Specify the workflow details.
    1. In the eXtendMobile app, a page will open where you can add workflow details using the floating add (+) icon.
      Image Placeholder
    2. On eXtendMobile Web, clicking this button opens a modal where you can specify workflow details.
      Image Placeholder
  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.


Frequently Asked Questions (FAQs)

Q: What type of workflows can be used with eXtendMobile buttons?
A
: The workflows must be set as "Not Initiating", be of the same record type, and use "Before Record Submit" triggers. They should not include an "Add Button" action since the trigger is handled directly.

Q: Can I add multiple workflow buttons to a single function?
A
: Yes, you can add multiple workflow trigger buttons to your function.

Q: Can I add multiple workflow buttons to a single function?
A
: Yes, you can add multiple workflow trigger buttons to your function.

Q: Can workflow buttons be displayed conditionally?
A
: Currently, buttons cannot be displayed conditionally in the eXtendMobile function. All conditional logic should be handled within the workflow itself.

Q: Why are no workflows listed when opening Initialize Workflow?
A
: Verify that the workflows are set as "Not Initiating," match the record type, and use "Before Record Submit" triggers. Also check that the integration role has "Full" permissions for the record type and the "Workflow" permission.