Hello, denuo
Denuo is Latin for “again”, “anew”. That’s the spirit here: coming back to subjects, exploring, writing to understand. Mostly Marketing Cloud, but also Salesforce, security and AI.1
This post is also a test of everything the blog can do.
Code
A bit of AMPscript to personalize a greeting:
%%[
SET @name = AttributeValue("FirstName")
IF Empty(@name) THEN
SET @name = "friend"
ENDIF
]%%
<p>Hello, %%=v(@name)=%%!</p>
The same, server-side, in SSJS:
<script runat="server">
Platform.Load("core", "1.1.1");
var de = DataExtension.Init("Customers");
var rows = de.Rows.Lookup(["Status"], ["active"]);
Write(Stringify(rows.length));
</script>
And an Apex trigger:
trigger ContactOptOut on Contact (before update) {
for (Contact c : Trigger.new) {
if (c.HasOptedOutOfEmail && !Trigger.oldMap.get(c.Id).HasOptedOutOfEmail) {
c.Opt_Out_Date__c = Date.today();
}
}
}
Inline code works too: Lookup(), Platform.Load.
Callouts
Note
Useful information worth highlighting.
Tip
Use LookupOrderedRows when order matters.
Important
What a reader needs to know to succeed.
Warning
Sendable Data Extensions need a subscriber relationship.
Don’t do this in production
A custom title works too.
An image

Table
| Channel | Tool |
|---|---|
| Email Studio | |
| SMS | MobileConnect |
| Push | MobilePush |
That’s it. Until next time.2