Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Do a cyclecount using webservices in navision

Posted on by 115

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);

  • yoandy Profile Picture
    yoandy 115 on at
    RE: Do a cyclecount using webservices in navision

    Thank you marco ill post a question on that forums then.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Do a cyclecount using webservices in navision

    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.

    www.yammer.com/dynamicsnavdev

    dynamicsuser.net/.../developers

    I will open this up to the community in case they have something to add.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans