function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
h0llyh0lly 

Force.com Order

When I create an Order and an OrderItem, I can retrieve ids for both but although it appears they have been created, they are not available or visible within the Salesforce Account/Orders entries.

Examples below

SalesforceOrderModel origOrder = new SalesforceOrderModel { AccountId = "001b000003cPNeNAAW", ContractId = "800b000000EI0oEAAT", Pricebook2Id = "01sb00000006K38AAE", OwnerId = "005b0000000FYGaAAO", Status = "Draft", BillingStreet = "My Street", TotalAmount = 656, Name = "Test" };
var createOrder = myforceclient.CreateAsync(SalesforceOrderModel.SObjectTypeName, origOrder);

 SalesforceOrderItemModel orderitem1 = new SalesforceOrderItemModel { OrderId = "801b0000001EhsbAAC", Description = "MY NEW TEST DESC", PricebookEntryId = "01ub00000017HbrAAE", Quantity = 88.00 };
var createOrderItem = myforceclient.CreateAsync(SalesforceOrderItemModel.SObjectTypeName, orderitem1);

Using the following as the basis
https://developer.salesforce.com/blogs/developer-relations/2014/11/nothing-but-net-crud-operations.html