Skip to main content
10 votes
Accepted

Developing and testing CloudPages

I use the HTTPGET() AMPScript function to pull in the content from an external web server when developing pages. Like this: %%=TreatAsContent(HttpGet(Concat("http://example.com/your-page.html?x=",...
Adam Spriggs's user avatar
  • 30.8k
10 votes
Accepted

Parameters passed in CloudPagesURL

I'd say most (if not all) of the Email, Email Date, Subscriber, and Sender personalization strings are included -- as are any attributes or data extension column names passed over in the send context....
Adam Spriggs's user avatar
  • 30.8k
10 votes
Accepted

Marketing Cloud - callout from CloudPage to MC API - where to store credentials

Not a bullet proof solution, but I have implemented an increased level of security by using EncryptSymmetric and DecryptSymmetric, so you avoid storing the id and secret directly in Ampscript. First ...
Lukas Lunow's user avatar
  • 21.7k
8 votes
Accepted

Accessing subscriberkey from a Cloud Page

If you're arriving at a CloudPage from a CloudPagesURL() link in an email, then you can retrieve the _subscriberKey personalization string with AttributeValue(): %%[ set @Id = AttributeValue("...
Adam Spriggs's user avatar
  • 30.8k
8 votes

Is it possible to host a Custom JB Activity and all associated resources on a CloudPage instead of an external web server?

Not entirely. It's mostly feasible, but there are some limitations. Firstly, you'll need to purchase the installation of SSL Certs on your CloudPages from Salesforce. Secondly, you'd not be able to ...
Macca's user avatar
  • 8,266
8 votes

Passing data from Email DE to Cloud Page

You have a space in the url, and you need to include name and value pairs for all parameters that you want to pass from email to a CloudPage: %%=CloudPagesURL(ID, 'CampaignCode', @CampCode, '...
zuzannamj's user avatar
  • 14.4k
8 votes
Accepted

Problem using Subscriber | WSProxy inside a CloudPage

This behavior started occurring in a recent Marketing Cloud release. It occurs when you preview the CloudPage before publishing. It appears that Salesforce has changed the way that CloudPages are ...
Eliot Harper's user avatar
  • 16.6k
7 votes

Upload custom font on Marketing Cloud

I was able to get the method from @brad to work, but with a few tweaks. First, as mentioned by @MarkP, there's no need for the %%=v(@DecodeFont)=%%);. Second, I wasn't able to get the base64 ...
tklives's user avatar
  • 171
7 votes
Accepted

Pre-populating checkbox fields in a CloudPage in Marketing Cloud

@TCassa, your approach appears correct. I've taken this approach many time before. I suspect it is just something minor in your code like a syntax issue or undefined variable. Suggestion: I've ...
David Devoy's user avatar
  • 2,615
7 votes

How to use drag and drop in visualforce

Here's a simple drag-drop example written in pure Visualforce: <apex:page controller="DragDrop"> <script> var dragStartId; function cancel(event) { event.preventDefault(); ...
sfdcfox's user avatar
  • 497k
7 votes
Accepted

Difference between RequestParameter and QueryParameter

The "query" of a page's life cycle is the stuff after the "?" character in a URL, while a request parameter is one placed in the body of the request (a "form post"). Let's look at an example of what a ...
sfdcfox's user avatar
  • 497k
7 votes

Linking local custom .otf font to Cloudpage

I recently helped a client with this very issue. There are additional file type uploads that can be enabled by SFMC Support, including .svg, .otf, .eot, .ttf, .woff and .woff2. My case number was #...
Adam Spriggs's user avatar
  • 30.8k
7 votes
Accepted

Salesforce Marketing Cloud cloud pages favicon

It's no different than adding it to any other HTML page. <link rel="icon" type="image/png" href="https://forums.oscommerce.com/favicon.ico"/> This example code piece seems to work fine for ...
Rain's user avatar
  • 5,785
7 votes
Accepted

Clarification - AttributeValue with CloudPagesURL

AttributeValue() only works on defined in sendable data, which is why your 3rd option still worked. The second option also worked because of this, not because of the passed values. Your first one ...
Gortonington's user avatar
  • 30.7k
7 votes
Accepted

Insert sales cloud record upon submit in smart capture form cloud page

You can't add SSJS into validation script, as it is executed in the front-end only. I would very much recommend moving away from Smart Capture and build a custom solution, which will use Ampscript ...
Lukas Lunow's user avatar
  • 21.7k
7 votes
Accepted

How to avoid BLANK records created by UpsertDE function, on PUBLISHING the cloud page!

So, I actually was inspired by this question to do some more digging. I found out that the URL fetched by RequestParameter('PageURL') differes, depending on whether the page is presented in the "...
Lukas Lunow's user avatar
  • 21.7k
7 votes

How to prevent other people to unsubscribe on behalf of the subscriber?

You can't prevent this. Should I forward my email to you, you will indeed be able to click the Unsubscribe link, and unsubscribe on my behalf. There are no recommended ways of preventing it, but there ...
Lukas Lunow's user avatar
  • 21.7k
6 votes

Using AMPscript to retrieve content from CloudPages

For cloud pages you have to pass the accepted encoding var targetSite = "https://pub.s7.exacttarget.com/f42z3hbhzzzz" var result = HTTP.Get(targetSite,['Accept-Encoding'],['gzip, deflate, sdch, br']);...
sforce's user avatar
  • 233
6 votes
Accepted

Using AMPscript on Landing Pages

You need to print the variable using %%=v(@id)=%% And not %%[=v(@id)=]%%
zeljazouli's user avatar
  • 1,088
6 votes
Accepted

Custom Profile Center Page hosted in Cloudpage

We built a Cloud Page set that updates the master-subscribe (AllSubscribers) and Publication Lists and passes/retrieves information from Sales Cloud as well, so this is surely possible. Processing ...
Rain's user avatar
  • 5,785
6 votes

Email address lookup

Taking a stab in the dark and assuming this is hosted on a cloud page, here is what I would do: Have the page post to itself Have a lookup inside AMPScript to see if the emailaddress already exists ...
Gortonington's user avatar
  • 30.7k
6 votes
Accepted

Email : Cloud Pages URL

Linking with CloudpagesURL automatically inserts the subscriberkey to the landingpage with the QS parameter that salesforce attaches (its hashed with more values but subscriberkey is in it). The way ...
Johannes Schapdick's user avatar
6 votes
Accepted

Data from Cloudpage to another Cloudpage

You can use the CloudPagesURL pass data from the email to the CloudPage and use the RequestParameter AMPscript function to retrieve the data (GET and POST method). Or you can use QueryParameter ...
Jackson Chen's user avatar
  • 4,725
6 votes
Accepted

What does the Domain Whitelist feature in Marketing Cloud actually do?

Domain whitelist is intended to store domains to which you can perform redirects on form submission in Cloud Pages or in Smart Capture forms. Let's say you host a form on Cloud Page hosted on e.g. ...
Lukas Lunow's user avatar
  • 21.7k
6 votes
Accepted

Triggered Send testing - how to exclude All Subscribers?

I really wouldn't recommend this, as it is going to likely be slow - but as this is for testing only, you could reference the _Subscribers Dataview in the lookup: ROWCOUNT(LOOKUPROWS('_Subscribers','...
Gortonington's user avatar
  • 30.7k
6 votes
Accepted

Connect SMFC to Github

I have been using this approach to host my Cloud Page code in a private GitHub repo. You should create this private repo, along with a personal token, so Cloud Pages can fetch the code while this is ...
Lukas Lunow's user avatar
  • 21.7k
6 votes
Accepted

Retrieve Request Method from HTTP Request Header

You're looking for Platform.Request.Method(), that's listed in the HTTP Properties Functions article. Here's an example snippet that will extract most of the data you might need: <script runat=&...
Rafał Wolsztyniak's user avatar
5 votes
Accepted

Created a landing page as code resource for CSS in Marketing cloud Cloud pages. I need to find out the page ID for this page

1. Classic Editor Within CloudPages collection the page ID for CSS can be found by inserting the CSS resource into a landing page. Here are the steps involved: First create a landing page through the ...
Brad Sapkota - altus.digital's user avatar
5 votes
Accepted

CloudPageURL via SMS broken link

Well then, got this issue solved. When using CloudPagesURL ampscript function link creation via MobileConnect, then the Contact this SMS is sent to, needs to exist in Email channel AllSubscribers ...
Rain's user avatar
  • 5,785
5 votes
Accepted

AMPScript dynamic value for UpsertData function

You need to output the value using the v-Function in order to achieve that. As you are already within an AMPscript-Block, you don't need the starting and ending codes %%= and =%%. This code will work: ...
Markus Dang - formerly Slabina's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible