I’m just starting out in REST and have had some fantastic help from @RJM.
I’m using @josecgomez excellent EpicorRESTAPI (thanks Jose!) and am struggling to understand BoPost.
A few things that I need a little help with:
When we do a “BoPost” we pass in an empty dataset - this is then filled and we can access the records directly using the table name structure e.g. [“OrderHed”] -
~~dynamic dOH = dNewOrdH.ResponseData.parameters.ds; ~~ Hope my understanding is correct.
When we use “BoGet” we get a dynamic object that has a responsedata - but I can’t access this in the same way. I am also trying to get a particular record but it’s bringing back another:
I thought I would be able to access this ‘dataset’ (I appreciate it isn’t a real dataset - more a dynamic object).
Hope this makes sense to someone. Any suggestions very much appreciated.
I’m thinking I can do a get, bind the data to controls, change the data and then do a “BoPost” to update the data. Is that the way other people are going about this?
Thanks for taking the time to read my babbling post!
Mark
Thanks for the quick response Jose.
Apologies for me babbling.
First thing - I passed the order number in and thought that this would only show the one order not 100 of them:
Thanks - can now access data at the orderhed level -but what about lower down e.g. OrderDtl?
I used to use the external dll - getByID - update some data and then update this DS - Am i going about this all wrong in REST? I presumed I would BOGet - update data in the object and then PUT back ?