Use Case
- Initializing a NetSuite Workflow using a button
within a view function.
- Reproducing NetSuite Workflow button
actions within eXtendMobile
functions.
Overview
Prerequisites
- 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):
- Permission: Setup →
Workflow.
- "Full" permission for the record
type of the view function where
you want to add a button to
trigger a workflow.
- Permission: Setup →
Workflow.
- 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:
- The Release Status must be "Not
Initiating".
- Do not add an "Add Button" action,
as it will be triggered directly
and isn't necessary to
include.
- Since you currently cannot display
the button conditionally in the
eXtendMobile function, ensure all
required criteria are applied
directly in the workflow.
- Use "Before Record Submit"
triggers.
- The Release Status must be "Not
Initiating".
Configuration
To configure the button in eXtendMobile,
follow the steps below:
Log in as an eXtendMobile Admin user in either the mobile app or eXtendMobile Web.
Go to the view function where you want to add the workflow button, then open it in edit mode.
In the eXtendMobile app, you will see an Initialize Workflow button on the main function details page.
On eXtendMobile Web, this button is in the Advanced Settings section.
- Specify the workflow details.
- In the eXtendMobile app, a page will open where you can add workflow details using the floating add (+) icon.
- On eXtendMobile Web, clicking this button opens a modal where you can specify workflow details.
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.
In the field Button Label, specify the button label that will appear on the function.
If needed, you can add multiple workflow trigger buttons. Repeat the above steps to add more buttons.
After setting up the workflow details, save the settings.
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.
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.