Hi,
I'am trying to update the Number Sequence "Next" value using OData
var sequence = context.SequenceTables.Where(x => x.NumberSequenceCode == "Inve_184" && x.Company == "USMF").Select(e=> e);
DataServiceCollection<SequenceTable> dscSequence = new DataServiceCollection<SequenceTable>(sequence);
foreach(var i in dscSequence)
{
i.Next = i.Next + 1;
context.UpdateObject(i);
}
context.SaveChanges(SaveChangesOptions.PostOnlySetProperties);
It throws an error that I can't update it when the Number Sequence is "In Use"
Is there any way to update the Next value via OData or REST API?
Regards,
John Carlo