9
votes
Accepted
Accessing data from journey object/event in Emails using Journey Builder
You can access data from your entry event like this:
First you need to find out the path of the data you like to access:
Go to Email Studio -> Subscribers -> Data Extensions
Find the automatically ...
9
votes
Accepted
Upload PDF to Content Builder using REST
As per your post I was able to upload a pdf file into sfmc content builder. It took me a little while to gather all the necessary attributes but it is all available in REST Reference API.
Here are ...
9
votes
Accepted
Content builder HTTPS
You’ll need an SSL certificate and the images that you host on Marketing Cloud will also be secure if you purchase 2 SSL certificates.
There are two configuration options for the SSL certificate:
...
7
votes
Accepted
Responsive width on ContentImagebyKey
As I inspected, the ampscript function outputs the very basic image html attributes.
<img title="xxxx" alt="xxxxx" src="public url of content" border="0">
I found the best way to add ...
6
votes
Accepted
Can I change email content without stopping a journey?
You don't need to stop the journey in that case. Each email activity in Journey Builder creates a triggered email interaction in the background, that you can publish the changes to.
There are two ...
6
votes
Accepted
Attach a file in email from Content builder
Yes you can, but you have to first ask support to turn it on:
Contact your account representative to have this feature enabled for
your account. You must be familiar with AMPscript to send emails ...
6
votes
Accepted
Timeout HTTP.Get
The window/document setTimeout function's browser based. This is SSJS and there's no window or document object to provide this functionality.
You can use the Script.Util.HttpRequest() function to set ...
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 ...
5
votes
How do I pull a Content Block into my email
You'll need to use ContentArea() or ContentAreaByName() in Classic Content.
5
votes
Accepted
Using AMPscript to populate inline style attribute values
I think the output() function in your content block is causing the extra divs. I'd code the content block like this:
%%[
var @color
if @colorName == 'head' then
set @color = '#CD6155'
elseif @...
5
votes
Change email content when email is in actived jounery
Using content builder or editing the e-mail node within the journey, you can update content (even when the journey is active). Anyone new entering the journey or who hasn't received that e-mail yet ...
4
votes
Accepted
Background images in Content Builder
No, it's not possible in SFMC.
There are several ways to approach this. The best way I've seen is to break up the email components into Content Areas.
You could do something like this:
Upload ...
4
votes
Accepted
Automate Content Builder Asset Creation
You have a typo in your endpoint. Try changing your endpoint from
https://www.extracttargetapis.com/asset/v1/content/assets
to
https://www.exacttargetapis.com/asset/v1/content/assets
4
votes
Accepted
How do I call a Content Block into an Email built with Content Builder?
For content stored inside of ContentBuilder, you will need to use the 'new' AMPscript functions. Not sure on the details of why, but in building Content Builder / Email Studio, they completely ...
4
votes
Accepted
AmpScript Block with Content Builder
AMPScript is definitely supported in Content Builder. AMPScript typically does jack up the code in the editor.
Here's a little trick I use to "pretty up" the AMPScript:
%%[/* Modify to view ...
4
votes
Accepted
How would you use ampscript to determine the 1st Friday, 2nd Friday etc. of the month?
It is a bit 'wonky', but this should do it (and it includes the possibility for a fifth Friday):
%%[
SET @SubDay = SUBTRACT(DatePart(Now(), 'Day'), 1)
SET @Negative = SUBTRACT(@SubDay, ADD(...
4
votes
Accepted
All my javascript gets stripped away in Content builder / Cloud pages / Content areas
I did a bit of research and found that this appears to be a common issue and is likely due to some issue with the HTML editor for the WYSIWYG (I believe it is TinyMCE) and the browser that is clearing ...
4
votes
Accepted
How do I create a customized Content Block
The Content SDK is complete. As per the readme, it exposes the following five JavaScript methods to use in your Custom Blocks:
getContent(callback) - callback gets passed a content string
setContent(...
4
votes
Accepted
Why are all AMPScript links broken when "Track all links in this email" is selected?
Your link example is malformed.
You need to call the AMPScript variable via v() in order to insert the value into the 'live' HTML. There are other functions that will also output the value, for ...
4
votes
TreatAsContent, Tracking, and Errors in Templates - an AMPscript riddle
There are a couple solutions to this:
Using single quote (but keep in mind, this limits the content as well, e.g. Ronald's car would cause the same issue as your current double quote issue.
SET @...
4
votes
Accepted
Update the image in folder using REST API
To create a new asset inside of Contact Builder utilizing the REST API, you will need to use the POST /asset/v1/content/assets endpath.
This will require you to provide a JSON with all the values you ...
4
votes
Accepted
AMPHTML In Marketing Cloud
This would require SFMC servers to support a third MIME type. So there is not a way to send out of SFMC. You can help vote for the idea here 'Support Google AMP for Email or AMPHTML as a MIME version ...
3
votes
Accepted
Marketing cloud content builder - possible to change tab name when opening mail in browser?
You need the change the "Title" element in the head section of your email/template code to change what's shown on the browser tab...
<head>
<title>What I Want to Show On The Tab Title&...
3
votes
Accepted
File size limits in Marketing cloud emails
To Content Builder, you can upload file types up to 5 MB per file.
Some of the standard file types it supports are below
DOCUMENT IMAGE AUDIO VIDEO ARCHIVE CODE
.csv .bmp .mp3 ....
3
votes
Accepted
Calling content areas new content builder
For Content Builder Blocks, you need to use ContentBlockByID or ContentBlockByKey to call them. The Content area functions are only for classic email editor.
3
votes
Accepted
How to get FromEmail in _Job in Email Content?
You can not get the FromEmail during previewing the email because JobID will generate after completion of email sent and your AmpScript code is not coded properly. Also, I don't think so there is any ...
3
votes
Accepted
Email Width and Outlook 2013
This is not actually anything from SFMC, but an Outlook issue. See below for more information on this issue.
Your best two solutions are to:
Resize the actual hosted image to the maximum width/...
3
votes
How to query by asset type in Content Builder Api
Here's information about the assetType property, and here is a list of the asset types. There hasn't been documentation released yet regarding filtering for these routes, but this should work in the ...
3
votes
How to Approve the Emails automatically
You need to disable Approvals in your account in order to enable sending unapproved emails. As far as I know automatic approval on a per user basis isn't available and if this feature is enabled, ...
3
votes
Accepted
Marketing Cloud, changes to template after content blocks added
Updating all emails using the template is currently not available in Content Builder, however you can update the emails one by one instead of creating new emails. You can find a detailed guide in the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
content-builder × 316marketing-cloud × 289
ampscript × 90
email × 48
email-template × 30
rest-api × 25
email-studio × 22
dataextensions × 20
html × 20
journeybuilder × 18
ssjs × 15
cloudpage × 12
soap-api × 10
api × 9
content × 7
url × 6
fuel-sdk × 6
approval-process × 5
marketingcloudapi × 5
css × 4
marketing-cloud-connect × 4
mobileconnect × 4
send-email × 4
sfmc-business-unit × 4
gtl × 4