How to get InstanceID to download a file attachment from a #SCSM 2012 self-service portal

Recently we have received a request from a customer that wanted to use our free product, SCUtils File Attachment, to let end users open file attachments related to the knowledge articles. Sometimes it is suitable to attach files like Word templates, scripts, large documents rather than place all these things into an internal content of a knowledge article. The customer planned to put direct links to the file attachments inside knowledge articles but did not want to query a SCSM SQL database each time to find InstanceID to create a link like this:


Instead, the client wanted to get the file attachment’s InstanceID by the knowledge article’s ID. That was a very reasonable request so I created a PowerShell script for this purpose.

psKeep reading and download the script here…


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.