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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

My notes count is getting increased whenever I visit my new enquiry sales order page

(0) ShareShare
ReportReport
Posted on by 200

1070.notes-goes-on-incrawing.png

Here I create a enquiry card which is when I create a new sales order it gets added in my enquiry list,

But when I add note in sales order and I revisit enquiry page its count is increasing, why it's happening.

Need it's solution please very urgent.

//Procedure code part where I added copylinks function 

                  recEnquiries.Description := rec_SalesHeader."External Document No.";

                    // recEnquiries."Internal Notes" := rec_SalesHeader.customDeliveryNotes;

                    recEnquiries.isArchive := false;

                    recEnquiries.DateCreated := DT2DATE(rec_SalesHeader.SystemCreatedAt);

                    recEnquiries."Sell-to Customer No." := rec_SalesHeader."Sell-to Customer No.";

                    recEnquiries."Location Code" := rec_SalesHeader."Location Code";

                    recEnquiries.Status := rec_SalesHeader.Status;

                    if rec_SalesHeader.HasLinks then // here I added

                        recEnquiries.CopyLinks(rec_SalesHeader);

                    recEnquiries.Insert(true);

                    InsertSalesLine(recEnquiries.No);

                end;

            until rec_SalesHeader.Next() = 0;

        end;

// Called this procedure in open page trigger

trigger openpage

Var

cd_enq : codeunit enquiry

Begin

cd_enq.insertsalesorder

End;

As I used openpage that's why my notes count is increasing on each visit? Please any solution.

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,786 Moderator on at

    Hi, You can check if recEnquiries has already links so dont copy the link

     if rec_SalesHeader.HasLinks then

                 if not recEnquiries.haslinks then

                           recEnquiries.CopyLinks(rec_SalesHeader);

  • Dividutt Profile Picture
    200 on at

    It's working,same note is not coming but if I want add different notes or update that note that is  not coming now I need to add different notes, so how we also can optimise that?

  • Nitin Verma Profile Picture
    21,786 Moderator on at

    You can write another procedure to check and update the notes only on your enquire table.

  • Dividutt Profile Picture
    200 on at

    Write the same function in new procedure? And modify() ?

  • Nitin Verma Profile Picture
    21,786 Moderator on at

    Not same, only for update Links or notes.

    Thanks

  • Dividutt Profile Picture
    200 on at

    Hi, Nithin Verma Can you please show some example with my code, how u meant?

    Not getting the required output after creating new procedure?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,161 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,046 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 932 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans