I'm starting to work with RESTlets and am able to ...
# suitescript
m
I'm starting to work with RESTlets and am able to run GETs fine and POSTS against simple records such as tasks. I want to be able to POST sales orders, but I haven't found any decent docs for sales orders and line items in regards to required fields. Are their any JSON schemas or samples for POSTs available? So far, my approach has been to take the results from my GET and strip it down to what my best guess is for a POST. Thanks.
b
Basic answer is to make a sales order in the ui. The fields you set there are the ones you should set in script
n
you need to create the sales order from suitescript
m
Thanks for the replies. I already have the script written to write the values from my POST into NS. My question was what fields and the configuration of those fields in the JSON that's used in the POST. I've taken the GET JSON from a salesorder and am working with that. My challenge now is how multiple items are handled in the JSON for a single order.