Advertisements

SF Marketing Cloud: How to add QR Code in Email or Cloud Page

Currently Salesforce Marketing Cloud not supports QR Code hence I have created custom SSJS code using the Google QR API. Please find below same.

<script language="javascript" runat="server">
  Platform.Load("Core", "1");
  var emailId = Platform.Recipient.GetAttributeValue("emailaddr");
  var QRAPIURL = "http://www.google.com/chart?chs=200x200&chld=M&cht=qr&chl=";
  var imgURL = QRAPIURL+emailId;
   Write("<img src='" + imgURL + "'/>");
</script>
Advertisements


Categories: Salesforce Marketing Cloud, Siebel

Tags: , , , , , , , , , , , , , , , ,

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: