SAP Knowledge Base Article - Public

3128992 - Links for EC Elements and Rules

Symptom

  • Request to add a link to warning message for EC Elements.
  • Links defined in the message definition are not working and displaying the HTML code, instead.
  
  

Environment

SAP SuccessFactors Employee Central

Resolution

  • It is not recommended to use HTML or BB code in Message Definitions, due to security vulnerability reasons. For more info see : 2087486 - How to enable HTML email notifications in SuccessFactors? 
    This KBA explains: "While you are free to add and test basic html tags and formatting within the body of email templates, please keep in mind that SuccessFactors does not support the use of these html elements, any javascript or other code and therefore will not provide support for any code added that does not work as expected, or that breaks functionality of the product. Any html or code in the body of email notifications have to be removed as SuccessFactors makes no commitment to enhance the product to support client code. "
    And handbook : Usage of HTML or Custom Code Within SAP SuccessFactors Application
    This documentation mentions: " You can add custom code and HTML into the system at your own risk. However, you're fully responsible for testing and validating that no unexpected results are impacted by code. Also, SAP SuccessFactors makes no representation to support this code, or commitments to change our product in any way to support the expected functionality you require. However, you may find that custom code and HTML function for a time and due to our regular product releases or updates, they may break or stop working as expected without warning. SAP SuccessFactors may release new updates to the product that negatively impact your custom code, as again we are not responsible for performing any tests on your code. We also make no commitments to update the product to support the previously working HTML as we don't consider these impacts as a product bug. "
  • Both HTML and BBcodes are not supported on MDF based object's UI for business rules to raise message on the UI. If any of them is configured in Message Definitions for URL and image then the HTML code will be displayed in the UI as a code/test instead of working code/image/URL. even when the message is raised.
  • There is no way to restrict adding HTML codes or BB codes but SAP recommendation is to avoid using HTML codes and BB codes. BB codes are preferred over HTML. For more info see: Rich Text Format in Help Texts for MDF Fields. This page mentions: "BB code is a safer way to format texts. Also, security concerns/risks of using HTML tags can be mitigated using BB code. You can format text, add hyperlinks, and render them as desired visually. "
  • For email notifications the HTML code will work provided: in SAP SuccessFactors > Admin Center > Company System and logo settings tool has "enable HTML email notifications" checked and the recipient server mailbox, for example MS outlook has HTML message processing enabled.

See Also

2092849 - How to create a Business Rule to validate data on change/save, and provide a Warning or Error message

3065907 - HTML Codes Displayed in Time Off UI

2090228 - How to Submit Ideas for SAP SuccessFactors Products

Keywords

Link, Hyperlink, URL, Warning Message, Message, Rule, UI, Message Definition, Text, HTML, BB, Code. , KBA , LOD-SF-EC-ADM , Admin Tools (EC Core only) , LOD-SF-EC-TIM , Time Off , LOD-SF-EC-ALR , Alerts & Notifications (saveAlert - EC Core only) , LOD-SF-EC-TMS , Time Sheet , Problem

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions