web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Narration

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

  I have Document No & Narration Data in CSV format.

I want after every Document No Line no should start from 10000 in Voucher Narration

Document No     Narration

a                            aaaaaaaaaaa

a                            bbbbbbbbb

c                            cccccccccccccccc

d                            dddddddddddd

It should be like this

a                            aaaaaaaaaaa                               10000

a                            bbbbbbbbb                                 20000

c                            cccccccccccccccc                          10000

d                            dddddddddddd                          10000

Below is the Code


Gen. Journal Narration - OnAfterImportRecord()
"Journal Template Name" := 'GENERAL';
"Journal Batch Name" := 'Default';
"Line No." := "Line No." + 10000;

Thanks

*This post is locked for comments

I have the same question (0)
  • manish.yadav Profile Picture
    1,893 on at

    Hello Dear,

    1. Your Primary Key should be  Line No....

    Go to last line of page designer and select blank line below last line and click Shift+F4 or View-->Properties

    1. You MUST set AutoSplitKey property of your page to Yes

    2. Also I strongly recommend you to set DelayedInsert property of your page to Yes

    Hope it will resolve your issue.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans