How to select a single element from an array of results returned by a substitution string RRS feed

  • Question

  • Hello all,

    I'm trying to solve the problem of including hyperlinks in an SCSM notification email that lead to a WorkItem's attached files.  The following works fine for an work item with a single attachment:

    <a href="https://domain.com/FileAttachment/ViewFile/




    TypeConstraint='CustomSystem_SupportingItem_Library!System.FileAttachment']$?$DisplayName$? </a>

    How can I ensure that the substitution strings only return a single value in the case that there are multiple file attachments?  Is there a way to specify an array index using this syntax?

    Friday, February 23, 2018 12:14 AM