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


Report
All responses (
Answers (