My Products
Help

Links to documents in VN

by Thomas Adrian - Consili

Hello, 

I am composing an email that should contain links to different documents in VN. i.e Invoices, customers, payments etc. All recipients of the email is logged in to VN.

 

How can I compose these links programmatically using the API (or any other way)

 

Example url, (missing some info)

https://finance.visma.net/<?>/<?>/Main?CompanyID=<companynamn>&ScreenId=AR301000&DocType=INV&RefNbr=214079

 

 

Thanks

Thomas

2 REPLIES 2
Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen

Hi,

Is there anything specific you need this for?

In the URL you would need to set the correct version number, the third part of the URL seems to be referring to window, as far as we know this can be set to any number and it will open the correct window:
https://finance.visma.net/0898001007/(W(0))/Main?CompanyID=Magnus+SE+Test&ScreenId=AR301000&DocType=INV&RefNbr=100034

 

The easiest way to set the version number would most likely be to get it from the swagger documentation and set it after every update.

Apart from that, you'd need to get the remaining parts of the URL's by finding the corresponding URL from the UI, as far as I know we don't have anything available to link to the correct UI screen just from the document reference number and for example documentTypes do not necessarily correspond to the same name.

For example:

supplierInvoice/creditadj/200029 would be ScreenId=AP301000&DocType=ACR&RefNbr=200029 

thingsio
CONTRIBUTOR ***

by thingsio

Hi, we also have a need to link directly to for example: purchase receipt orders, inventory adjustments etc. Because we pull information from Visma API's in other apps. we also want to link directly from other apps. to make it more convenient for users. For me the second part of the URL is pretty unclear:

 

https://finance.visma.net/1011011001

 

This number changes once and a while and I don't think it's a version number which can be found in the Swagger documentation.

 

If it can be found in the swagger, to what exactly are you referring in that documentation? A method or something else?