We are trying to import invoices from CRM to D365 for financials using web services. When trying to supply the document date, we are receiving the following error: 400: Data object not provided error.
We are passing the data through, and have tried to pass also the posting date. Overall we need to be able to have the invoices created the same way that they are in CRM.
Any information would be very helpful! thank you!
Just want to add some details for Kaydee.
We created an class named Invoice which has a field called Document_Date. Then we used DataContractJsonSerializer to serialize the class. here is the code:
var ser = new DataContractJsonSerializer(typeof(Invoice),
new DataContractJsonSerializerSettings
{
DateTimeFormat = new DateTimeFormat("MM/dd/yyyy")
}
);
Finally we called the ODataV4 web service to push the invoice in.
Without the Documnent_Date field, the response is 201: created. But with this field, we got a 400: Data object not provided.