Generating Bar Codes

There has been quite a bit of talk about Asset Barcode Scanning but lets back up a little. How do you generate barcodes?

Barcodes are basically a “font” that you can apply. So anywhere you can use fonts, you can convert a field’s entry to a bar code.

Sound easy right? It’s a little tricky with Ivanti Service Manager as you have limited access to fonts.

You can use an HTML field with that utilizes the Google Font API, for example:

<!DOCTYPE html>

<html>

<head>

<link href=’https://fonts.googleapis.com/css?family=Libre Barcode 39′ rel=’stylesheet’>

<style>

body {

  font-family: ‘Libre Barcode 39’;font-size: 22px;

}

</style>

</head>

<body>

<h1>Libre Barcode 39</h1>

<p>$(YOURFIELDNAME)</p>

</body>

</html>

OR

<!DOCTYPE html>

<html>

<head>

<link href=’https://fonts.googleapis.com/css?family=Libre Barcode 128′ rel=’stylesheet’>

<style>

body {

  font-family: ‘Libre Barcode 128’;font-size: 22px;

}

</style>

</head>

<body>

<h1>Libre Barcode 128</h1>

<p>$(YOURFIELDNAME)</p>

</body>

</html>

The result will look like this:

Ivanti Service Manager Generate Barcode

Of course replace $(YOURFIELDNAME) with the field holding the value you want to display as a bar code, for example $(AssetTag)

Finally you need to either create a quick action button that pastes the html code into an HTML field or you can use business rules to update the html field.

Last but not least, you could use url injection and open a new tab or workspace with the resulting url, for example:

https://fonts.google.com/specimen/Libre+Barcode+128?preview.text=a19ConsultingIvantiPodcast

Notice the preview.text=, replace a19ConsultingIvantiPodcast with your field, $(AssetTag) for example.

Of course you will need to find a site that generate a very clean results or host your own.

This Ivanti Service Manager (HEAT ISM) Podcast Episode clears up some misconceptions about UAT Test Scripts and is based on my blog post from February 18, 2021 which you can visit at https://ivantiservicemanagerconsultant.wordpress.com/2021/02/18/who-owns-uat-test-scripts/
  1. Who owns UAT Test Scripts
  2. Ivanti Neurons Tenants – Holy Trinity
  3. Email Summaries
  4. Ivanti Neurons Update
  5. Email: Productivity Tool or Time-Waster?

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s