Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to create a log file in NAV by C/AL?

Posted on by Microsoft Employee

Hey guys,

I have created a new report, with which I can change my demo gl/entries.

Now I would like to log that changes.

Therefore I want to create a log file, which contains the changes.

pastedimage1563881464460v2.png

Do you think that this is the right way?^^

Thank you :)

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: How to create a log file in NAV by C/AL?

    If that is working then you should be good, each have a different way of programming.  

    You don't need to use OutStream, you can just use TempFile.WRITE('Success') 

    CLEAR(TempFile);

    TempFile.TEXTMODE := TRUE;

    TempFile.WRITEMODE := TRUE;

    TempFile.CREATE(FileName);

    TempFIle.WRITE('Success');

    TempFile.CLOSE;

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans