RE: How to Store RESTlet Response in NetSuite WMS State
I’m currently working on a NetSuite WMS project and I’ve hit a roadblock. I need to store the response from a RESTlet into the state within a mobile action. My RESTlet is set up and returning the expected result, but I’m unsure how to capture this response in the mobile action’s state for later use.
The RESTlet returns a simple object { mypo: result }, and I’ve set up an output parameter in the mobile action. However, the step to actually store this response in the state is where I’m struggling.
I’ve reviewed the documentation and tried to configure the action accordingly, but I’m missing something. If anyone has experience with this process or can offer some insight into what I may be doing wrong, your help would be greatly appreciated.
Thank you!
there is no such function as setState I think you are refering to react function but here I am talking about the netsuite wms state