First, clone the process to be customized (eg.NSWMS_POReceiving_1)
View the cloned process (eg.NSWMS_TOReceiving_6)
From the Mobile Process, view the Mobile – Page where the custom page element will be created (eg. poReceiving_enterBin_6)
Under Page Elements subtab, create a new Mobile – Page Element, making sure to provide the ff in the element:
Record name (eg. purchaseorder) //internal ID of the record as per Records Browser
Field name (eg. tranid) //Custom NetSuite transaction body field internal ID
After saving the page element, one is redirected to the Mobile – Page. Under the Page Elements subtab, view the Mobile – Page Element for the Action Button (eg. poReceiving_enterBin_nextBtn).
Look for the On Click Action link (eg. poReceiving_enterBin_validateBinAndSubmit)
Edit the Mobile – Action page poReceiving_enterBin_validateBinAndSubmit, and supply the ff values:
Type = Submit Form
HTTP Method = POST
On the right side of the After Action Restlet dropdown field, click the plus (+) sign to create a new custom Restlet (eg. Add Additional Details).
Upon click of the plus sign, a popup to create a Mobile – Action appears. Supply it with the following values:
Type = Restlet (Notice how the page displays lesser fields once you do this)
HTTP Method = POST
Name = AddAdditionalDetails
Script ID = customscript3635637_restletwmsmobile*
Deployment ID = customdeploy1
Save the pop up Mobile – Action, and note that the After Action Restlet field is now populated with AddAdditionalDetails
Save the Mobile – Action page
To apply the changes, view the to Script Deployment: Mobile – Generate App Config (id: customdeploy_mobile_rl_generate_app_conf).
Click on the URL, and click on the link to view the scheduled script status.
Once the customdeploy_mobile_ss_ondemand_app_conf completes, test the WMS app (Setup > Custom > Mobile App > Begin New Session)
One should now successfully be able to save the value from the WMS page element to the NS body field in the Purchase Order.