- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2025 02:01 PM
We would like to generate a hyperlink to an asset page on on-prem system like:
https://lansweeper.company.local/asset.aspx?AssetID=8717
while we get asset information through Lansweeper API.
We can't find out the way how to get that AssetID number from Graph API response. Is it possible and how?
Maybe it is possible to generate a hyperlink by using other fields like asset type and serial number?
We are aware that we can get the asset hyperlink redirecting to Lansweeper cloud instance, but we need a hyperlink specifically to on-prem.
Solved! Go to Solution.
- Labels:
-
API & Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 10:47 PM
Unfortunately you can't get the assetID - its a different key in cloud/sites vs on-prem. however, you could use the quicksearch.aspx and querystring as a workaround: https://yourserver.whatever.local:82/quicksearch.aspx?q=SERIALNUMBERHERE that will pull up the asset page if there's an asset with the serial number. you can put whatever you want in that querystring just like you're searching in the search bar for on-prem. I Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 02:46 PM
Hello @-gytis-
You sample you provided is accurate but is missing the port number. In my sample below, you can see port 82 is being used -- this is the default HTTPS port used by Lansweeper.
https://server.mylab.lab.local:82/asset.aspx?AssetID=496
See if adding that port number works for you.
Lansweeper Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 02:58 PM
Hi Tim,
thank you for the response.
However the question was not about accessing the on-prem lansweeper instance, we can access successfully both instances.
We just can't find a way how to generate on-prem url (actually how to get the dynamical part: AssetId), when the asset information is received from Lansweeper API. We are struggling to find assetid value in getAssetResources API response.
Regards
Gytis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 10:47 PM
Unfortunately you can't get the assetID - its a different key in cloud/sites vs on-prem. however, you could use the quicksearch.aspx and querystring as a workaround: https://yourserver.whatever.local:82/quicksearch.aspx?q=SERIALNUMBERHERE that will pull up the asset page if there's an asset with the serial number. you can put whatever you want in that querystring just like you're searching in the search bar for on-prem. I Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-13-2025 04:28 PM
Many thanks Jakob! Not exactly what we were looking for, but it is definitely helpful.
