Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

Copy my notes from sales order to Enquiry and enquiry to sales order

Posted on by 200

Note: When I create a new sales order it also gets created in my enquiry card also.

With this function I am able to copy notes my sales order to enquire:

    if rec_SalesHeader.HasLinks then

                       recEnquiries.CopyLinks(rec_SalesHeader);

                  recEnquiries.Insert();

                 InsertSalesLine(recEnquiries.No);

              end

              else begin

                  if rec_SalesHeader.HasLinks then begin

                      recordlink.SetRange("Record ID", recEnquiries.RecordId);

                      if recordlink.FindSet() then begin

                          recEnquiries.DeleteLinks();

                      end;

                    recEnquiries.CopyLinks(rec_SalesHeader);

                  end;

              end;

But I want to copy notes from enquiry to sales header(vise versa), how it's possible, I used the same function just change the table name,still not getting copied,so what can be done.

Please suggest any solution.

Thankyou

Categories:

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,104 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans