SAP Knowledge Base Article - Public

2418418 - Item-specific instruction for Free-Floating Item Syntax Tag is displaying HTML tags in Notifications

Symptom

  • An Item has a custom Item Notification Text
  • The Item Notification Text is added to the ApmTrainingExpiration or ApmTrainingOverdue Notifcation using the <FLOATING_CPNT_INSTRUCTIONS/> Syntax Tags
  • The email Notification received displays the HTML tags from the Item Notification Text

Environment

  • SAP SuccessFactors
  • Learning Management System (LMS)

Reproducing the Issue

  1. Add an Item Notification Text entry to a Learning Item
    1. Item > Related > Notifications > click the Edit link under Item Notification Text
  2. In the Learning Expiration or Learning Overdue Notification Template, add in the Syntax Tag for Item-specific instruction for Free-Floating Item
    • In the Editor, it's "Item-specific instruction for Free-Floating Item"
    • In the "plain text" message body, it's <FLOATING_CPNT_INSTRUCTIONS/>
  3. Save the changes
  4. When an Item with a Due Date falls within the threshold for the Learning Expiration Automatic Process, the ApmTrainingExpiration or ApmTrainingOverdue Notification is sent to assigned Users
  5. That notification displays the HTML tags of the Item Notification Text

Cause

  • This has been identified as a defect under LRN-16298
  • If the HTML tags are being displayed for other Syntax Tags (such as "Item-specific instruction"), this is because the Notification Message Body is missing HTML & BODY tags

Resolution

LRN-16298 is corrected in release 1702 for the "Item-specific instructions for Free-Floating Item" Syntax Tag for ApmTrainingExpiration and ApmTrainingOverdue

For other Syntax Tags for rich text entries, the issue is due to the HTML and BODY tags missing from the Notification Message Body.  To correct this:

  1. Navigate to System Admin > Configuration > Notification Templates
  2. Search for Template ID = ApmTrainingExpiration
  3. Open it in Edit mode
  4. Click "Messages" tab
  5. At the very top, add:
    • <HTML><BODY>
  6. At the very bottom, add:
    • </BODY></HTML>
  7. Click "OK" to save the changes
  8. Example:
    1. <HTML><BODY>
    2. <LOOP>
    3. Existing body text...
    4. <CPNT_INSTRUCTIONS/>
    5. </LOOP>
    6. </BODY></HTML>

 

Workaround for LRN-16298:

Use the Item-specific instructions" Syntax Tag in place of the "Item-specific instructions for Free-Floating Item" Syntax Tag

If using the Editor:

  1. Login as a Learning Admin
  2. Navigate to System Admin > Configuration > Notification Templates
  3. Search for Template ID = ApmTrainingExpiration
  4. Open it in Edit mode
  5. Click "Messages" tab & Click the "Launch Editor" hyperlink
  6. In the Message Body, replace "Item-specific instructions for Free-Floating Item" with "Item-specific instructions"
  7. Save the changes
  8. Test the Notification

If using the Plain Text message:

  1. Login as a Learning Admin
  2. Navigate to System Admin > Configuration > Notification Templates
  3. Search for Template ID = ApmTrainingExpiration
  4. Open it in Edit mode
  5. Click "Messages" tab
  6. In the Message Body, replace <FLOATING_CPNT_INSTRUCTIONS/> with <CPNT_INSTRUCTIONS/>
  7. Save the changes
  8. Test the Notification

Keywords

SF SuccessFactors Success Factors Learning Management System LMS HTML tags notification rich text editor rte Item-specific instruction free float item syntax tag CPNT_INSTRUCTIONS FLOATING_CPNT_INSTRUCTIONS cpnt instruction exposed show display render appear code expiration overdue apmtrainingexpiration apmtrainingoverdue automatic process apm , KBA , LOD-SF-LMS-NOT , Notifications , Bug Filed

Product

SAP SuccessFactors Learning 1611