I'm trying to create customer orders using REST web service calls to SLCos and SLCoitems IDOs. I can get both populated and return values indicate success. I also see the resulting data for both the header and the lines afterwards. The problem is that the insert of the SLCoitems records didn't update the header total values. The SLCoitems records also didn't get their item descriptions or costs automatically populated by the insert.
Any ideas? Things to try?
For the total values to fill in I found you need these minimum properties filled in to the SLCoitems:
CoNumCoLineItemUMQtyOrderedConvQtyOrderedPriceConvCostCostConvPriceShipSiteTaxCode1TaxCode2
You shouldn…
RCostello,
I was missing the item description and the cost numbers and added them. The manually created orders didn't have taxcode1 and taxcode2 set, but I tried that as well.
Then my fun started.
Is this for CSI? What does the REST POST command look like?
Yes, it is CSI.
Url like:
/IDORequestService/ido/update/SLCoitems?refresh=true
With content like (only showing one line, but rest look similar):
Hmm.... Does the account you are connecting with have Insert/Update permissions for the IDO/Object in question?
Yes, both the SLCos and SLCoitems records are getting created and calls return successful status. The order totals are not updated and the line item descriptions and costs are not pulled in.