Function - COPYLINKS

navuser1navuser1 Member Posts: 1,329
from C/SIDE Reference I have seen the Function- COPYLINKS



COPYLINKS (Record)
Use this function to copy all the links from a particular record.

COPYLINKS(FromRecord)

Comments
You use this function to copy all the links from a specified record and paste the links to the current record.

The link can be a link to a Web site, a file stored on the local or on a remote computer, or a link to a Navision form.



but how to use this & where.....??
Now or Never

Comments

  • kinekine Member Posts: 12,562
    It is used e.g. when posting order to trnsfer all linked documents from the order to the created posted invoice and shipment... :wink:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • navuser1navuser1 Member Posts: 1,329
    kine wrote:
    It is used e.g. when posting order to trnsfer all linked documents from the order to the created posted invoice and shipment... :wink:


    When I try to write code with it...it throughs a error
    unknown variable ](*,)
    Now or Never
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Have a look at Codeunit 80, to see how it's used.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • kinekine Member Posts: 12,562
    navuser1 wrote:
    kine wrote:
    It is used e.g. when posting order to trnsfer all linked documents from the order to the created posted invoice and shipment... :wink:


    When I try to write code with it...it throughs a error
    unknown variable ](*,)

    Which NAV version?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • BeliasBelias Member Posts: 2,998
    :-k the links are not copied from sales order to shipment...why?
    (I already checked the copy comments...in sales setup)
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • kinekine Member Posts: 12,562
    Try to use debugger... are the comments copied correctly? he COPYLINKS is in same block with this functionality...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • BeliasBelias Member Posts: 2,998
    yes, i already debugged it, and i found that only header links are copied :mrgreen:
    thanks anyway!
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.