APIs to Call RESTlets

The following APIs enable you to call RESTlets and primary mobile actions:

callRestlet(scriptId, deploymentId, restletParams, callback)

Use this method to call or execute a custom RESTlet. You can add parameters and a callback function to which you can pass the RESTlet’s response.

Parameters

  • scriptId {string} [required] – ID of the custom script record associated with the RESTlet you want to call

  • deploymentId {string} [required] – ID of the custom deployment record for the script

  • restletParams {Object} [optional] – Any parameters that you want to pass to your RESTlet

  • callback {string} [optional] – Name of the function to which you want to pass the RESTlet’s response

Returns

  • void

callPrimaryAction()

Use this method to call the action associated with the Action Button element that is tagged as the primary action. In standard mobile processes, the primary action usually performs a data validation or submission, along with a move to the next page.

Note:

The Action Button element of the primary action must be located at the footer of a mobile page.

Parameters

  • None

Returns

  • void

Related Topics

NetSuite WMS Setup
Mobile App Setup
Mobile Device Basics for NetSuite WMS
Customizing Mobile Processes
Mobile Configuration and Customization

General Notices