For the complete documentation index, see llms.txt. This page is also available as Markdown.

Frequently Asked Questions

How can I make my labels print in alphabetical order?

Labels will be generated in the order they are filtered, according to the Order By field on the Data Source condition. In the case of scripted Data Sources, you can set the order using a query.orderBy() term in the GlideRecord query.

When generating a batch of labels, I see an error about an incorrect closing tag for <img> (or another HTML attribute). How do I fix this?

ServiceNow auto-reformat and auto-sanitizes content in the TinyMCE editor to improve efficiency & compatibility. Unfortunately, this can occasionally make the content incompatible with the PDF generation engine. To work around this, you can replace the offending piece of content with a Merge Map containing the HTML code you need.

For example, to insert an image in your label, use a scripted Merge Map containing the code below, and then insert the Merge Map's key into your label template.

return '<img src="My_Logo.jpg" alt="My Logo" height="30" />';

Last updated