SAP Knowledge Base Article - Public

2526456 - Sales Campaign E-mail Template Cannot Contain <script> Tag. An error appears-HTML tag 'script' is not allowed

Symptom

While preparing a Sales Campaign you wish to upload an e-mail template. If the template was used with other systems or is a standalone they sometimes us Java script to work. This requires that the main html file for the template would have a <script> tag to run the Java script code. However this is a potential security issue as this would allow the introduction of unknown code into the system that could be potentially harmful. For this reason tags such as <script> and <audio> are not allowed for upload to the system.

Environment

SAP Cloud for Customer

Reproducing the Issue

  1. Go to the Sales Campaign Workcentre.
  2. Select Content View.
  3. Click New and select E-mail Template.
  4. Fill in the details and select Save and Open.
  5. Click Add in the top right corner of the Details facet.
  6. Select the HTML file to upload.
  7. The HTML file that is uploaded is scanned to ensure its integrity.
  8. if the file contains the <script> tag the error -- HTML tag 'script' is not allowed  -- appears.

Cause

This is a security precaution enforced by C4C to ensure the system cannot be compromised by 3rd party code.

Resolution

As a resolution it is advised to create a template that is not reliant on the <script> tag.

See Also

Help Centre: Sales Campaign

Keywords

KBA , LOD-CRM-MKT-CAM , Campaigns , Product Enhancement

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions