AddOrders API - Does it set the OrderId?
Hi,
I tried to create a campaign and add an Order to it. The CampaignManagement.AddOrders() API accepts a Campaign ID and Order array. Yet post the call being made, I find that the Order[x}.OrderId field is not set by this call
I could find the OrderId from the EntityResultType which is an array of Success objects with their IDs. Is this the way the API is supposed to behave or am I missing something?
Here is my code snippet.
myOrder.OrderName =
"Bollywood Order" + rndObj.Next();myOrder.OrderStartDate =
DateTime.Parse("11/15/2006");myOrder.OrderEndDate =
DateTime.Parse("12/25/2006");myOrder.MSNDistributionSite =
MSNDistributionSiteType.UnitedStates;myOrder.KwdLanguage =
LanguageType.English;myOrder.orderTarget =
null;myOrder.CountryCode =
"US";// Add the Order to the campaignEntityResultType result = cmObj.AddOrders(0, campaignId, orders);myOrder.OrderId = result.SuccessRow[0].Id;
(Note the above line to set my OrderId)

