9 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=",...
user avatar
  • 27.7k
9 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 ...
user avatar
  • 16.9k
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, '...
user avatar
  • 10.3k
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 ...
user avatar
  • 2,585
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(); ...
user avatar
  • 429k
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 ...
user avatar
  • 429k
7 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....
user avatar
  • 27.7k
7 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 ...
user avatar
  • 7,706
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 ...
user avatar
  • 27.9k
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 ...
user avatar
  • 16.9k
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 ...
user avatar
  • 16.9k
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']);...
user avatar
  • 253
6 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 ...
user avatar
  • 161
6 votes
Accepted

Using AMPscript on Landing Pages

You need to print the variable using %%=v(@id)=%% And not %%[=v(@id)=]%%
user avatar
  • 1,036
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 ...
user avatar
  • 5,287
6 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 #...
user avatar
  • 27.7k
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 ...
user avatar
  • 27.9k
6 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 ...
user avatar
  • 5,287
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 ...
user avatar
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. ...
user avatar
  • 16.9k
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','...
user avatar
  • 27.9k
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 ...
user avatar
  • 3,052
5 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(): %%[ var @Id, @firstName, @lastName, @...
user avatar
  • 27.7k
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: ...
user avatar
5 votes
Accepted

Is there an end of support plan for Classic Content | Microsites?

I think that means "until [you're ready to] move to CloudPages" (i.e., CloudPages aren't missing any features that I need). From the Content Builder FAQ: What if I Want to Create Content for ...
user avatar
  • 1,457
5 votes
Accepted

Passing subscriber values from Marketing Cloud Cloud Page to Marketing Cloud Preference Cloud Page

From a functionality point of view, this is definitely approachable. You will be extensively using the CloudpageURL function to pass parameters onto cloudpages. Step 1: (Passing values from email to ...
user avatar
  • 3,052
5 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 ...
user avatar
  • 4,333
5 votes

Republish http cloudpages to keep existing ID and introduce SSL

When setting up the SSL, normaly the support will ask you some questions amongst which are the questions: Will you require references made directly to HTTP to be force redirected to HTTPS? ...
user avatar
  • 3,676
5 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 ...
user avatar
  • 16.9k
5 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 ...
user avatar
  • 15.6k

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