HolySN

Attachments and versions

Reading every attachment of a record in one place, checking and fixing a data file, the version history of a record, and who a highlighted name belongs to.

Three things on a classic form that the platform makes you leave the page for.

Paste to attach

Press Ctrl+V with a file on the clipboard while a record is open, on a classic form or in Workspace, and it becomes an attachment of that record. Any type of file works: a screenshot, a PDF, an Office document, a video, a zip.

Nothing is sent straight away. A card at the top of the screen shows the file first, with a preview where the browser can draw one: pictures, the first page of a PDF, the text of a Word file, the first rows of a sheet, the picture Office saves inside a presentation, the first seconds of a video, the first lines of a text file. The name can be changed there; the extension stays. Upload, or Enter, sends it; Cancel, or Escape, drops it. Paste several files at once and Upload all sends them together.

A screenshot has no name of its own, so it is called screenshot_ followed by the date and time. If the record already has a file with that name, the new one is saved as name (2) and the card says so. A file the instance would refuse, because of its type or its size, is stopped before it is sent, and so is an empty file. When an upload or an Undo fails, the card says what happened in plain words; the instance's own message, if it sent one, is in the tooltip.

A paste inside an HTML field or a script editor is left to that field. In a text field, a paste that also carries text (cells copied from Excel, for example) is left to the field as well.

On Workspace you can also drag files onto the page: a Drop here zone appears while you drag. Classic forms already take dropped files on their own, so there the zone does not appear and ServiceNow uploads the file as usual.

Once uploaded, the card offers Open and Undo. What you pasted is then listed on the record in a small "pasted on this record" pill, with Open and Undo for each file and Undo all to take every one back at once. Undo all goes on past a file it cannot delete; that file stays in the list with the reason and Retry. Undo deletes only the file you pasted, and only if it is still on that record.

The list lasts until you reload the page. Saving a classic form reloads it too, so after a save the pill is gone and the files stay. On Workspace, moving to another record and back keeps it.

The switch is Paste to attach in the widget's settings, under Editing.

The attachment viewer

An eye before Manage Attachments opens every attachment of the record in an overlay over the page. It is hidden when the record has none, and comes back when one is uploaded.

The list has a filter, sorting, a gallery for images, and duplicates found by content rather than by name. Select several at once, and open, download, copy a link to, rename or delete them.

A text file opens in the same editor as the rest of the extension, with highlighting for XML, JSON, JavaScript, CSS, SQL, logs and CSV: find, folding (XML without indentation too), word wrap, pretty-printing for XML and JSON, and a summary of a log. A large file is read up to 64 MB, never whole.

The viewer asks the extension's worker for the files, and the worker answers only that viewer, and only for the record it was opened on.

The data check

Pro. The check reads a CSV, XML, JSON or .xlsx file and marks what is broken, with a squiggle in the editor and a list that jumps to each one.

For a CSV it traces a column that slid sideways by the type each column holds. For an .xlsx it checks the zip, its checksums and the sheet XML. In CSV, XML and JSON it also reports invisible characters: zero-width characters, text-direction controls, control characters, and spaces that only look like spaces. The editor highlights them.

The auto fixer

Pro. For a CSV, XML or JSON file, the fixer offers a list of repairs. The safe ones are ticked, and the guesses are not. A diff shows the result before anything is written.

Replace uploads the fixed file under the same name, and deletes the original only once the upload is in. Undo puts the original back.

A CSV as a sheet

Pro. A CSV attachment opens as a table, with Excel-style filters on each column, sorting that knows a number from a date, and search. Only the rows on screen are drawn, so a long file stays quick.

Versions

On a classic form without the Versions related list, Versions (N) appears under Related Links, only when the record has versions. It opens a viewer over the page: every version, newest first; the fields that changed against the one before, or against any other you pick; a side-by-side diff of the chosen field; and the stored payload as XML.

Who is this user

Highlight a name, a login, an email address or a sys_id on an instance page, and the toolbar popup answers with that user: state, login, email, title, department, location, manager, last login, time zone and sys_id, with buttons to open the record or impersonate.

The same selection adds one item to the browser's own right-click menu, which opens that card as a drawer in the page. Two capitalised words look like a name to it, so the item sometimes appears for a phrase that is not one. The card says when nobody matched.

The card is for reading. Nothing on it reaches the assistant, the chat or any server of ours.

Attachments and versions | HolySN