How to hide the 'request link' in email message body for a Catalog Request.
search cancel

How to hide the 'request link' in email message body for a Catalog Request.

book

Article ID: 19729

calendar_today

Updated On:

Products

CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER Service Accounting SERVICE ASSURE CA Service Catalog CA Service Management - Service Desk Manager CA Unicenter NSM

Issue/Introduction

Sending notifications, some clients may need to hide a link inserted in mail content by the system.

 

Environment

Service Catalog:  all supported versions

Resolution

Steps to be performed to get this accomplished:

  1. cd C:\Program Files\CA\Service Catalog\view\webapps\usm\explorer\request

  2. select 'requestemailprofile.xsl'

  3. copy into %USM_HOME%\filestore\custom\explorer\request the folder 'request' may not exist yet. If so, then you may create it

  4. cd C:\Program Files\CA\Service Catalog\view\webapps\usm\locale\icusen\request

  5. select 'requestemailprofile.xml'

  6. copy into %USM_HOME%\filestore\custom\explorer\request

  7. edit requestemailprofile.xsl (e.g. with notepad) and apply this change:

    .....
    <xsl:template match="xmlRoot" mode="body_content">
    <span class="msg" style="display:none">##msg##</span>
    <xsl:choose>
    <xsl:when test="$includeRequestDetails='false'">

    <!--
    <a href="{concat($uri, 'wpf?Node=icguinode.requestprofile&amp;Args=', /
    xmlRoot/COLLECTION/usm_request/request_id/LITERAL)}"><xsl:value-of select="$x
    slcontent/view_request"/> <xsl:value-of select="/xmlRoot/COLLECTION/usm_reque
    st/request_id/LITERAL"/></a>
    -->
    </xsl:when>
    .....

  8. save the file

  9. stop the catalog service

  10. empty the folder %USM_HOME%/view/translets
    Delete the files in this folder and keep the folder itself

  11. start the catalog service

  12. open a request, click the 'email' button.

  13. set 'Include Request Snapshot:' to No

  14. click 'Send'

  15. check the email content