Skip to Content
avatar image
Former Member

Message templates, html, http:// not supported?


Hello,

we got

SAP NetWeaver Identity Management 7.2 SP9

IDENTITY CENTER DESIGNTIME 7.2 SP9 patch 7

IDENTITY CENTER RUNTIME 7.2 SP9 patch 5

VIRTUAL DIRECTORY SERVER 7.2 SP9 patch 3

In the admin UI I use register "Message Templates" I create and maintain message templates e.g. for approvals (Template Category: MX_APPROVALS).

And here I use HTML with stylesheets.

While I put following HTML code in

    <tr style="vertical-align: top;">

      <td>URL:</td>

      <td>http://support.sap.com/swdc</td>

    </tr>

the text starting with http:// including the next tag (here </td>) dissappears.

So following insufficient HTML code is left:

    <tr style="vertical-align: top;">

      <td>URL:</td>

      <td>

    </tr>

Similar if I try to add a reference to a link like

All other cases <a href="http://company.appl.net/Home?OpenPage">call COMPANY IT Service Desk</a> / open an incident at <a href="https://serviceportal.company.com/Services.aspx">COMPANY IT Service Desk Portal.</a>

all what is left after saving is:

All other cases <a href="">call COMPANY IT Service Desk</a> / open an incident at <a href="">COMPANY IT Service Desk Portal.</a>

Has anybody seen something similar?

Is there a workaround?

Isn't it supported that I put http:// or https:// to the HTML code of the message template?

with kind regards

Michael Schäfer

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Feb 23, 2015 at 10:42 AM

    At least SAP came up with a recommendation to encode specific characters that the template parser does not remove parts of the HTML code.

    From my understanding it is a work around which can be applied. The slightest it should be stated in documentation ...

    There is a way to insert links with http:// or https:// or mailto: in the template.

    Before saving/updating template you have to encode the :// or : characters accordingly.

    character(s) encoded : &#x003A; / &#x002F; :// &#x003A;&#x002F;&#x002F;

    Examples:

    not encoded encoded mailto:my.support@mycompany.com mailto&#x003A;my.support@mycompany.com http://support.sap.com/swdc http&#x003A;&#x002F;&#x002F;support.sap.com/swdc

    kind regards

    Michael Schäfer

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 24, 2014 at 01:31 PM

    Hi Michael,

    From my notes, we achieved creating links using Global or Local constants. Here it goes,

    1) Create a global or local job/task constant and assign the http/https address

    2) While editing your template in admin UI, use a template parameter attributes (PAR_*) in <a href> like below,

    <a href = "PAR_URL">click here</a>

    3) Your notification ordered task should have two tasks, 1 - to set context variables, 2 - to send email using SMTP

    In "set context variable" task, assign PAR_URL = (Global or local contant)
    Then in notification task, you read the context variable PAR_URL and template text, do a search for PAR_URL in text and replace it with the value of context variable.

    let me know if it works. Thanks.

    Kind regards,

    Jaisuryan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Jai,

      yes I know that I could have worked with PARAMETERs.

      That is a a possible workaround, right.

      But what I was after is to find out whether there is a reason to cut out a string from template source as soon as there is http:// (or the same with mailto:).

      At this moment I use following code to avoid the URL is cut out:

      <a href="link_without_http">text_to_appear_as_link</a>
  • Feb 12, 2015 at 01:55 PM

    Hi Experts,

    Any help on the above? I have a similar requirement to add background image using css stylesheet and image URL is stripped off every time I save the template. I wouldn't pass parameters to css stylesheet like we can for template body. TIA

    Kind regards,

    Jaisuryan

    Add comment
    10|10000 characters needed characters exceeded