Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Nav 2017 - Posting an Item Journal from Visual Studio 2015 using CodeUnit 22

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I am currently trying to use codeunit 22 in visual studio 2015 to post an item journal, but I am unsure of how to use the methods provided by the codeunit to achieve this. I appreciate the support.

*This post is locked for comments

  • my-screen-name Profile Picture
    my-screen-name 5 on at
    RE: Nav 2017 - Posting an Item Journal from Visual Studio 2015 using CodeUnit 22

    Same issue here... Is there really no way to post an Item Journal Entry (without making my own codeunit)?

    The codeunit is literally called "Item Jnl.-Post Line" so you'd think it'd do what it says it does in the name...

    I checked if I could do it via the "Item Jnl.-Post Batch" (codeunit 23), but it doesn't seem to have it either.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Nav 2017 - Posting an Item Journal from Visual Studio 2015 using CodeUnit 22

    To do this I will have to obtain a developers license but thank you for the support.

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Nav 2017 - Posting an Item Journal from Visual Studio 2015 using CodeUnit 22

    Publish the Page 40 and create the Item Journal and then create a function to post the item similar in the below example and then call the Post Function

    Extend the Page add the function using the below example

    https://blogs.msdn.microsoft.com/freddyk/2009/11/17/extending-page-web-services-and-creating-a-sales-order-again/

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Nav 2017 - Posting an Item Journal from Visual Studio 2015 using CodeUnit 22

    This is a list of functions I received from CodeUnit 22:

    SetSkipApplicationCheck

    ClearApplicationLog

    UndoApplications

    ApplicationLogIsEmpty

    SetCalledFromApplicationWorksheet

    SetPostponeReservationHandling

    CheckItemTracking

    SetCalledFromInvtPutawayPick

    SetCalledFromAdjustment

    RedoApplication

    CostAdjust

    AnyTouchedEntries

    SetValuationDateAllValueEntrie

    SetServUndoConsumption

    SetProdOrderCompModified

  • Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Nav 2017 - Posting an Item Journal from Visual Studio 2015 using CodeUnit 22

    What functions do you see ?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Nav 2017 - Posting an Item Journal from Visual Studio 2015 using CodeUnit 22

    I've checked the service in the browser and on Visual Studio, but it doesnt seem to have a 'RunWithCheck' function.

  • Suresh Kulla Profile Picture
    Suresh Kulla 43,749 on at
    RE: Nav 2017 - Posting an Item Journal from Visual Studio 2015 using CodeUnit 22

    You need to create the item journal line record first then and pass that to the function in the codeunit 22 RunWithCheck

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans