Force.com-Toolkit-for-PHP
Force.com-Toolkit-for-PHP copied to clipboard
Cannot add Pricebook2Id to an Order when creating a new Order
Reference: http://salesforce.stackexchange.com/questions/101218/php-soap-client-cannot-set-price-book-to-an-order
When I tried to create a first OrderItem for the Order, it said that I need to assign a price book for the order I created (what I did before but no succeed).
The error message returned from the server: "Order: bad field names on insert/update call: Pricebook2Id"
Have you solved the problem? EDIT: I solved the problem by updating the WSDL file to the newest version.
@matejbasic I think I did the same thing like you said and it worked! Thanks for replying.