The SalesOrderSvcContract uses SalesOrderTableset rather than OrderTableset. The methods you use GetNewOrderHedMsc and GetMiscChargeDefaults don’t look like they exist for the SalesOrderSvcContract. There’s a GetNewOrderMsc method that may do what you’re after.
You are about 90% there. Just needed to clean up your references to the correct services, tablesets, and methods. I believe you can find the names of these objects in the customization using the content assist feature (control + spacebar after entering namespace) in the customization editor screen. Unfortunately, the editor has a number of flaws and you pretty much have to work top down because the content assist feature fails as soon as it encounters invalid syntax. Once you get heavy duty into this, if you have VisualStudio, it is not very difficult to set up a project and load the BPM code in for better syntax checking. I believe there are threads on the forum that describe how to do this.
I see you have this working now using BPM widgets based on your response. You can also review the generated code which is under the server’s website folder in the BPM/Sources/BO/[BO Method]/ subfolders.
I have come across your post as I am trying to do the same thing but in a BPM and seem to be struggling.
This is a Post Processing, condition where docamt is not more than 150, invoking getnewohmisc then invoking changemisccode then setting the fields finishing off with invoking masterupdate.
I am receiving an error that says
“There are no records in the table ttOrderDtl
OHOrderMsc record not available.
There are no records in the table ttOrderDtl”