Guys am trying to do a cyclecount using webservices in navision this web service exactly PhysInventoryJournal but when i do it i have this error Phys. Inventory must be equal to 'Yes' in Item Journal Line: Journal Template Name=INVENT. FÍ, Current value is 'No'. That is because the line needs to be generated by navition using the calculate inventory tool BUT i dont see any way to do this using web services any of you have an idea. Thank You. This is my code var journal = new PhysInventoryJournal.PhysInventoryJournal();
physInventoryJournalService.Create("LACEUPINV", ref journal);
journal.Entry_Type = PhysInventoryJournal.Entry_Type.Positive_Adjmt; journal.Document_No = "LACEUP" + session.Id.ToString(); journal.Document_Date = DateTime.Today; journal.Location_Code = GetlocationCode(session); journal.Item_No = count.Product.OriginalId;
//maybe this is not nesessary //journal.Qty_Calculated = a.Inventory; journal.Qty_Phys_Inventory = Convert.ToDecimal(count.Counted);// journal.Qty_Phys_Inventory = Convert.ToDecimal(dif); journal.Qty_Phys_InventorySpecified = true; physInventoryJournalService.Update("LACEUPINV", ref journal);
Thank you marco ill post a question on that forums then.
Hello,
We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
dynamicsuser.net/.../developers
I will open this up to the community in case they have something to add.
Thanks.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156