Hi guys. Was anyone able to use the Rest Web Servi...
# suitetalkapi
i
Hi guys. Was anyone able to use the Rest Web Service to transform PO to Item Receive? There is almost no documentation on it. When using the Rest Transform api, we are getting the error "Error while accessing resource: You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist. The po exists. The item is receivable. Work fine from the UI. Sample Post : Post /purchaseOrder/1542/!transform/itemReceipt
Copy code
{
  "trandate": "2020-01-14",
  "item": {
    "items": [
      {
        "item": {
          "id": "6"
        },
        "quantity": 1
      }
    ]
  }
}
b
Working with Sublists will involve mastery of matching keys
💯 1
you dont have the key field set, so the api assumes you are trying to add a line, which is invalid
i
Thanks, that's exactly what I was looking for, how to link the keyed line in Rest Web Services.
b
usually experimentation, usual guess is the line
i
It looks as if it's orderLine for transform, and line for update. At least in SOAP. In Rest there is zero documentation.
b
thats the life of the beta guinea pigs
i
Haha, for sure. I just love using the Beta features.
Even after you are able to make stuff work, a month later the API just changes.
Just an update: It's indeed orderLine for transform.