I am able to retrieve both out of the box and standard data entities from my dev instance if D365FO
I now want to submit Sales journals and have setup the following code but I get a 401 returned.
context.AddToOpenSalesPriceJournalLines(new OpenSalesPriceJournalLine()
{
//populate journal entry
});
var response = context.SaveChanges();
Any idea what could be causing the 401?
I can successfully retrieve a collection of journals, just not submit them