You need to sign in to do that
Don't have an account?

Create new order and add products AND Add products to existing Order
Hi
I'm using salesforce REST API for web app
creating orders for an Account.
I can create the order just fine(without products)
My problem is,
add a product to the order when creating
and
Updating an existing order.
Does anyone have the correct json POST / PATCH for that ?
using v20 API and PHP btw.
I'm using salesforce REST API for web app
creating orders for an Account.
I can create the order just fine(without products)
My problem is,
add a product to the order when creating
and
Updating an existing order.
Does anyone have the correct json POST / PATCH for that ?
using v20 API and PHP btw.
Using REST API.
I'll look for the bulk api.
But I get error from server saying my json is incorrect somehow, I'm following the same things I did when creating Contact / Account, and I can't get to work when creating a new Order with Products inside.
I can create the order just fine without adding product to it, if I try to put an Array to "OrderItems" I get an error. (400).
If I use v31 I get error that AccountId or EffectiveDate and other fields aren't recognized.