Add Record Link via webservice?

pizzacopizzaco Member Posts: 2
edited 2014-02-18 in NAV Three Tier
I'm trying to create a program to automatically add URL links to G/L and Vendor Journal entries. Since the program will be "outside" of Navision, I want to do this via a webservice. So far, I haven't found a Page or CodeUnit that provides functionality to create a Record Link.

Is there any way I can get at the Record Links via a webservice?

Just to be clear, the links I'm trying to add should end up in table 2000000068, "Record Link". This for NAV 2009.

Comments

  • mathieukmathieuk Member Posts: 15
    Hi,
    You could create a new codeunit and add it to the web service table.
    Then, you just need to create a function in the codeunit to add the link to your record by using the addlink function.
    record.addlink(url,description)

    Cheers
  • coutacouta Member Posts: 3
    there is not possible to add it just on c#?

    can you send a sample code to have on codeunit..

    i need to add a file to attach on Purchase Header on record link..

    do you know a easy way?
  • mathieukmathieuk Member Posts: 15
    Hi,
    Just create a new codeunit and add it to the web service table.
    Then, create a new function in the codeunit called something like "AddPurchHeaderLink" with the Purchase Number, the description of the link and the url of the link as parameters.
    Then, you only need to do something like that
    PurchHeader.GET(YourPurchaseNumber);
    PurcHeader.ADDLINK(URL,Description);
    

    Hope it makes sense
Sign In or Register to comment.