mibuso.com

Microsoft Business Solutions online community
It is currently Mon Dec 22, 2014 2:16 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Add Record Link via webservice?
PostPosted: Fri Apr 19, 2013 9:22 pm 
Offline

Joined: Fri Apr 19, 2013 9:07 pm
Posts: 1
Country: United States (us)
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.


Top
 Profile E-mail  
 
 Post subject: Re: Add Record Link via webservice?
PostPosted: Mon Apr 29, 2013 2:24 am 
Offline

Joined: Tue Feb 05, 2013 1:52 am
Posts: 11
Country: Australia (au)
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


Top
 Profile E-mail  
 
 Post subject: Re: Add Record Link via webservice?
PostPosted: Tue Feb 18, 2014 12:19 am 
Offline

Joined: Tue Feb 18, 2014 12:16 am
Posts: 2
Country: Portugal (pt)
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?


Top
 Profile E-mail  
 
 Post subject: Re: Add Record Link via webservice?
PostPosted: Tue Feb 18, 2014 11:11 pm 
Offline

Joined: Tue Feb 05, 2013 1:52 am
Posts: 11
Country: Australia (au)
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
Code: Select all
PurchHeader.GET(YourPurchaseNumber);
PurcHeader.ADDLINK(URL,Description);


Hope it makes sense


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: