An asset link to Calem can be used to load an asset in a browser. For instance, paste the link to Safari browser: "https://example.calemeam.com/index.php?raid=wfAS11__0041241d-38bf-2b53-0ddf-b3c9ba385f65". It will bring up your Calem site and display the asset after login to Calem.
1. The Algorithm to Create Asset Links
Here are the steps to create an asset link:
- Get the Id of an asset. For instance, an asset's tag is "H23510" with Id "0041241d-38bf-2b53-0ddf-b3c9ba385f65".
- Asset Id can be exported from Asset List Report (Asset | Report | Asset List Report) with customization to include "Id" in the list report.
- Calculate the "raid" and use it to form a link by the following algorithm in PHP. You may use your preferred language to create links.
- The prompt "wfAS" is used to tell Calem to load an asset object.
- The function "crc32" generates a 32-bit integer representing the CRC32 checksum of the input string.
- The function sprintf("%u", $crc) turn the integer "$crc" into an unsigned decimal representation.
- "raid" is used to tell Calem to load an object based on its value.
- See the code snippet in PHP below.
- The final link for the asset is https://example.calemeam.com/index.php?raid=wfAS11__0041241d-38bf-2b53-0ddf-b3c9ba385f65.
- Assume your site link is: https://example.calemeam.com/index.php
Additional Resources