AMPscript Academy – Interactive Salesforce Marketing Cloud Learning Hub
Master Salesforce Marketing Cloud (SFMC) AMPscript with AMPscript Academy. Work through 6 structured chapters, 11 interactive lessons, and 44 hands-on coding challenges directly in your browser with no Salesforce license required.
Why Learn AMPscript with AMPscript Academy?
Traditional SFMC documentation and static articles only provide theory. Practicing code in a real Salesforce Marketing Cloud instance traditionally requires an enterprise subscription. AMPscript Academy removes this barrier by providing an instant-execution simulation sandbox directly in your browser.
Structured 6-Chapter, 11-Lesson Curriculum (44 Hands-On Coding Challenges):
- Chapter 1: Beginner Foundations & Syntax Mastery – Lesson 1.1: AMPscript Delimiters, Blocks & Output (4 tasks, free); Lesson 1.2: Subscriber Attributes &
AttributeValue() (4 tasks); Lesson 1.3: String Functions (ProperCase, Concat, Uppercase, Lowercase, Trim) (4 tasks).
- Chapter 2: Conditional Logic & Dynamic Branching – Lesson 2.1:
IF / ELSEIF / ELSE / ENDIF Control Flow (4 tasks); Lesson 2.2: Advanced String Parsing (Substring, Replace, IndexOf) (4 tasks).
- Chapter 3: Math, Dates & Localization Formatting – Lesson 3.1: Math Operations & Discount Calculations (4 tasks); Lesson 3.2: Date & Time Formatting (
Now, DateAdd, DateDiff, FormatDate) (4 tasks).
- Chapter 4: Data Extension Lookups & Relational Data – Lesson 4.1: Single Value Queries with
Lookup() (4 tasks); Lesson 4.2: Rowsets with LookupRows(), Row(), Field(), & RowCount() (4 tasks).
- Chapter 5: Advanced Loops & Dynamic HTML Receipts – Lesson 5.1:
FOR Loop Control & Rowset Iteration (4 tasks).
- Chapter 6: Data Writes, CloudPages & Enterprise Architect – Lesson 6.1: Data Extension Modifications (
InsertDE, UpsertDE, DeleteDE) & RequestParameter (4 tasks).
Sample AMPscript Code Practice:
%%[
VAR @subscriberKey, @orders, @rowCount, @i, @row, @itemTotal
SET @subscriberKey = AttributeValue("SubscriberKey")
SET @orders = LookupRows("Order_History", "SubscriberKey", @subscriberKey)
SET @rowCount = RowCount(@orders)
IF @rowCount > 0 THEN
FOR @i = 1 TO @rowCount DO
SET @row = Row(@orders, @i)
SET @itemTotal = Field(@row, "TotalAmount")
]%%
<p>Order %%=v(@i)=%%: %%=FormatCurrency(@itemTotal, "en-US")=%%</p>
%%[
NEXT @i
ELSE
]%%
<p>No previous orders found for this subscriber.</p>
%%[ ENDIF ]%%
Frequently Asked Questions About Learning AMPscript
How does Academy access work?
Lesson 1.1 (all 4 foundational tasks) is completely free to practice. Unlocking Lessons 1.2 through 6.1 (all 11 lessons and 44 hands-on challenges) is included with Developer PRO, Developer ULTRA, or an eligible 7-Day Free PRO Trial.
Do I need a Salesforce Marketing Cloud account?
No. AMPscript Academy runs an SFMC simulation engine in your browser, allowing developers, email specialists, and job seekers to practice without an SFMC license.
Explore More AMPscript Resources: