SlideShare a Scribd company logo
1 of 21
Download to read offline
AMPscript BASICS
Pankaj Namdeo
@mess_edUp
https://www.linkedin.com/in/pankajnamdeo/
Happy Poush Sangkranti or Sakrain
Agenda
Programmatic languages in SFMC
Syntax of AMPscript
Use cases for AMPscript
Examples of AMPscript
Demo Time
What, Why & How of AMPscript
What is AMPscript
AMPscript is Salesforce Marketing Cloud's proprietary scripting language, available for
use in Email messages, Landing pages, SMS messages, and Push messages.
It is one of the language for Salesforce Marketing Cloud use cases. Use cases can span
from simple personalization to moving around larger amounts of data.
Since AMPscript can interact with most every facet of Marketing Cloud, it's a good
general-purpose tool to accomplish tasks within messages or landing pages.
What, Why & How of AMPscript
Use cases of AMPscript
● Personalize emails using subscriber or contact data e.g. Names, city, DOB etc
● Create complex, highly dynamic emails using conditional logic.
● Add real-time information to emails such as date or time.
● Track impressions.
Personalization strings
A personalization string lets you insert subscriber attributes, such as subscriber name, into
your emails. Personalization strings can appear in the subject line, preheader, or in the
content of the email. You may hear personalization strings referred to as merge fields or
substitution strings.
Email
Date, Setting, job & subs data
Email URL
Profile centre, VAWP, Un subs links
Category of AMPscript functions
Order of Execution
● Interpreted language
● Order of Execution in Email
○ Pre header
○ HTML body
○ Text body
○ Subject
What, Why & How of AMPscript
Types of AMPscript
● Inline AMPscript
%%=function goes here=%%
● AMPscript block
%%[
Code goes here
]%%
● AMPscript tag
<script runat=server language=ampscript>
Code goes here
</script>
What, Why & How of AMPscript
What, Why & How of AMPscript
What, Why & How of AMPscript
AMPscript Functions -Date functions
%%=Now()=%%
%%=Now(1)=%%
%%=Format(Now(), "MMMM d, yyyy")=%%
%%=FormatDate(Now(), "MMMM d, yyyy")=%%
%%=DateAdd(@today, '30','D')=%%
%%=DateDiff(@today, @tomorrow, 'D')=%%
AMPscript Functions - Misc functions
%%=Trim(' hobby ')=%%
%%=Replace(@footer, '2020', '2021')=%%
%%=Length(@password)=%%
%%=Substring(‘1234567890’, 7, 4)=%%
%%=Indexof(@over18, “adult”)=%%
AMPscript Functions - Maths function
Add function
%%=Add("10","20")=%%
Subtract function
%%= Subtract("10","20")=%%
Multiply function
%%= Multiply ("10","20")=%%
Divide function
%%= Divide("10","20")=%%
AMPscript Functions - For Loop function
FOR @i = 1 TO 10 DO
/* Code goes here */
ENDIF
NEXT @i
AMPscript Functions - Lookup functions
AMPscript Functions - Data extension function
%%=Lookup('NTOProducts', name, 'price', 54.95)=%%
%%=LookupRows('NTOProducts', name, Leap Wireless Earbuds)=%%
Demo Time
ধন্যবাদ

More Related Content

What's hot

How to create a developer org for salesforce
How to create a developer org for salesforceHow to create a developer org for salesforce
How to create a developer org for salesforceMyGuide By Edcast
 
Salesforce.com Training - navigation course
Salesforce.com Training - navigation courseSalesforce.com Training - navigation course
Salesforce.com Training - navigation courseMauroSFDC
 
How Salesforce Uses Marketing Cloud
How Salesforce Uses Marketing Cloud  How Salesforce Uses Marketing Cloud
How Salesforce Uses Marketing Cloud Dreamforce
 
final-spam-e-mail-detection-180125111231.pptx
final-spam-e-mail-detection-180125111231.pptxfinal-spam-e-mail-detection-180125111231.pptx
final-spam-e-mail-detection-180125111231.pptxinfotowards
 
Dive Deep into Apex: Advanced Apex!
Dive Deep into Apex: Advanced Apex! Dive Deep into Apex: Advanced Apex!
Dive Deep into Apex: Advanced Apex! Salesforce Developers
 
AEM Sightly Deep Dive
AEM Sightly Deep DiveAEM Sightly Deep Dive
AEM Sightly Deep DiveGabriel Walt
 
Introduction to Salesforce CRM Reporting
Introduction to Salesforce CRM ReportingIntroduction to Salesforce CRM Reporting
Introduction to Salesforce CRM ReportingMichael Olschimke
 
Salesforce Marketing Cloud Training | Salesforce Training For Beginners - Mar...
Salesforce Marketing Cloud Training | Salesforce Training For Beginners - Mar...Salesforce Marketing Cloud Training | Salesforce Training For Beginners - Mar...
Salesforce Marketing Cloud Training | Salesforce Training For Beginners - Mar...Edureka!
 
Choosing domain and IP address for Salesforce Marketing Cloud
Choosing domain and IP address for Salesforce Marketing CloudChoosing domain and IP address for Salesforce Marketing Cloud
Choosing domain and IP address for Salesforce Marketing CloudArek Rafflewski
 
HTML 5 Tables and Forms
HTML 5 Tables and FormsHTML 5 Tables and Forms
HTML 5 Tables and FormsDoncho Minkov
 

What's hot (20)

CSS Basics
CSS BasicsCSS Basics
CSS Basics
 
How to create a developer org for salesforce
How to create a developer org for salesforceHow to create a developer org for salesforce
How to create a developer org for salesforce
 
Salesforce.com Training - navigation course
Salesforce.com Training - navigation courseSalesforce.com Training - navigation course
Salesforce.com Training - navigation course
 
How Salesforce Uses Marketing Cloud
How Salesforce Uses Marketing Cloud  How Salesforce Uses Marketing Cloud
How Salesforce Uses Marketing Cloud
 
final-spam-e-mail-detection-180125111231.pptx
final-spam-e-mail-detection-180125111231.pptxfinal-spam-e-mail-detection-180125111231.pptx
final-spam-e-mail-detection-180125111231.pptx
 
Pardot presentation
Pardot presentationPardot presentation
Pardot presentation
 
Dive Deep into Apex: Advanced Apex!
Dive Deep into Apex: Advanced Apex! Dive Deep into Apex: Advanced Apex!
Dive Deep into Apex: Advanced Apex!
 
AEM Sightly Deep Dive
AEM Sightly Deep DiveAEM Sightly Deep Dive
AEM Sightly Deep Dive
 
Introduction to Salesforce CRM Reporting
Introduction to Salesforce CRM ReportingIntroduction to Salesforce CRM Reporting
Introduction to Salesforce CRM Reporting
 
Salesforce Marketing Cloud Training | Salesforce Training For Beginners - Mar...
Salesforce Marketing Cloud Training | Salesforce Training For Beginners - Mar...Salesforce Marketing Cloud Training | Salesforce Training For Beginners - Mar...
Salesforce Marketing Cloud Training | Salesforce Training For Beginners - Mar...
 
Learning HTML
Learning HTMLLearning HTML
Learning HTML
 
Javascript
JavascriptJavascript
Javascript
 
Css font properties
Css font propertiesCss font properties
Css font properties
 
Intr To Html & Xhtml
Intr To Html & XhtmlIntr To Html & Xhtml
Intr To Html & Xhtml
 
Portfolio website
Portfolio websitePortfolio website
Portfolio website
 
Choosing domain and IP address for Salesforce Marketing Cloud
Choosing domain and IP address for Salesforce Marketing CloudChoosing domain and IP address for Salesforce Marketing Cloud
Choosing domain and IP address for Salesforce Marketing Cloud
 
Amazon Simple Email Service 101
Amazon Simple Email Service 101Amazon Simple Email Service 101
Amazon Simple Email Service 101
 
Lab#7 CSS Box Model
Lab#7 CSS Box ModelLab#7 CSS Box Model
Lab#7 CSS Box Model
 
Sightly - Part 2
Sightly - Part 2Sightly - Part 2
Sightly - Part 2
 
HTML 5 Tables and Forms
HTML 5 Tables and FormsHTML 5 Tables and Forms
HTML 5 Tables and Forms
 

Similar to Learn AMPscript basics with Champion-Pankaj Namdeo

Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...Amazon Web Services
 
Build Deep Learning Applications Using Apache MXNet - Featuring Chick-fil-A (...
Build Deep Learning Applications Using Apache MXNet - Featuring Chick-fil-A (...Build Deep Learning Applications Using Apache MXNet - Featuring Chick-fil-A (...
Build Deep Learning Applications Using Apache MXNet - Featuring Chick-fil-A (...Amazon Web Services
 
Mca5010 web technologies
Mca5010 web technologiesMca5010 web technologies
Mca5010 web technologiessmumbahelp
 
iZeno SMS Module for SugarCRM 6
iZeno SMS Module for SugarCRM 6iZeno SMS Module for SugarCRM 6
iZeno SMS Module for SugarCRM 6Benny Ng
 
Mca5010 web technologies
Mca5010 web technologiesMca5010 web technologies
Mca5010 web technologiessmumbahelp
 
Lecture 6 Footnotes&amp; Answers
Lecture 6  Footnotes&amp; AnswersLecture 6  Footnotes&amp; Answers
Lecture 6 Footnotes&amp; Answersis4030.ray
 
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...Amazon Web Services
 
Getting Started with ML in AdTech - AWS Online Tech Talks
Getting Started with ML in AdTech - AWS Online Tech TalksGetting Started with ML in AdTech - AWS Online Tech Talks
Getting Started with ML in AdTech - AWS Online Tech TalksAmazon Web Services
 
Build Machine Learning Applications with AWS Lambda & Amazon SageMaker (SRV42...
Build Machine Learning Applications with AWS Lambda & Amazon SageMaker (SRV42...Build Machine Learning Applications with AWS Lambda & Amazon SageMaker (SRV42...
Build Machine Learning Applications with AWS Lambda & Amazon SageMaker (SRV42...Amazon Web Services
 
Amazon SageMaker Deep Dive for Builders
Amazon SageMaker Deep Dive for BuildersAmazon SageMaker Deep Dive for Builders
Amazon SageMaker Deep Dive for BuildersAmazon Web Services
 
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...Mahbubur Rahman
 
Scale - Amazon SageMaker Deep Dive for Builders
Scale - Amazon SageMaker Deep Dive for BuildersScale - Amazon SageMaker Deep Dive for Builders
Scale - Amazon SageMaker Deep Dive for BuildersAmazon Web Services
 
Mazda Use of Third Generation Xml Tools
Mazda Use of Third Generation Xml ToolsMazda Use of Third Generation Xml Tools
Mazda Use of Third Generation Xml ToolsCardinaleWay Mazda
 
Save the Date for Quality Data: Making Use of DateTime
Save the Date for Quality Data: Making Use of DateTimeSave the Date for Quality Data: Making Use of DateTime
Save the Date for Quality Data: Making Use of DateTimeSafe Software
 
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...Amazon Web Services
 
End to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMakerEnd to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMakerAmazon Web Services
 
Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)Julien SIMON
 
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...Amazon Web Services
 
Augmenting Web Services with SMS and XMPP
Augmenting Web Services with SMS and XMPPAugmenting Web Services with SMS and XMPP
Augmenting Web Services with SMS and XMPPSam Keen
 
Build, train and deploy your ML models with Amazon Sage Maker
Build, train and deploy your ML models with Amazon Sage MakerBuild, train and deploy your ML models with Amazon Sage Maker
Build, train and deploy your ML models with Amazon Sage MakerAWS User Group Bengaluru
 

Similar to Learn AMPscript basics with Champion-Pankaj Namdeo (20)

Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
Build Deep Learning Applications Using Apache MXNet, Featuring Workday (AIM40...
 
Build Deep Learning Applications Using Apache MXNet - Featuring Chick-fil-A (...
Build Deep Learning Applications Using Apache MXNet - Featuring Chick-fil-A (...Build Deep Learning Applications Using Apache MXNet - Featuring Chick-fil-A (...
Build Deep Learning Applications Using Apache MXNet - Featuring Chick-fil-A (...
 
Mca5010 web technologies
Mca5010 web technologiesMca5010 web technologies
Mca5010 web technologies
 
iZeno SMS Module for SugarCRM 6
iZeno SMS Module for SugarCRM 6iZeno SMS Module for SugarCRM 6
iZeno SMS Module for SugarCRM 6
 
Mca5010 web technologies
Mca5010 web technologiesMca5010 web technologies
Mca5010 web technologies
 
Lecture 6 Footnotes&amp; Answers
Lecture 6  Footnotes&amp; AnswersLecture 6  Footnotes&amp; Answers
Lecture 6 Footnotes&amp; Answers
 
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
Capture Voice of Customer Insights with NLP & Analytics (AIM415-R1) - AWS re:...
 
Getting Started with ML in AdTech - AWS Online Tech Talks
Getting Started with ML in AdTech - AWS Online Tech TalksGetting Started with ML in AdTech - AWS Online Tech Talks
Getting Started with ML in AdTech - AWS Online Tech Talks
 
Build Machine Learning Applications with AWS Lambda & Amazon SageMaker (SRV42...
Build Machine Learning Applications with AWS Lambda & Amazon SageMaker (SRV42...Build Machine Learning Applications with AWS Lambda & Amazon SageMaker (SRV42...
Build Machine Learning Applications with AWS Lambda & Amazon SageMaker (SRV42...
 
Amazon SageMaker Deep Dive for Builders
Amazon SageMaker Deep Dive for BuildersAmazon SageMaker Deep Dive for Builders
Amazon SageMaker Deep Dive for Builders
 
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
 
Scale - Amazon SageMaker Deep Dive for Builders
Scale - Amazon SageMaker Deep Dive for BuildersScale - Amazon SageMaker Deep Dive for Builders
Scale - Amazon SageMaker Deep Dive for Builders
 
Mazda Use of Third Generation Xml Tools
Mazda Use of Third Generation Xml ToolsMazda Use of Third Generation Xml Tools
Mazda Use of Third Generation Xml Tools
 
Save the Date for Quality Data: Making Use of DateTime
Save the Date for Quality Data: Making Use of DateTimeSave the Date for Quality Data: Making Use of DateTime
Save the Date for Quality Data: Making Use of DateTime
 
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
Building Your Own ML Application with AWS Lambda and Amazon SageMaker (SRV404...
 
End to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMakerEnd to End Model Development to Deployment using SageMaker
End to End Model Development to Deployment using SageMaker
 
Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)Building Machine Learning Inference Pipelines at Scale (July 2019)
Building Machine Learning Inference Pipelines at Scale (July 2019)
 
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...Machine learning for developers & data scientists with Amazon SageMaker - AIM...
Machine learning for developers & data scientists with Amazon SageMaker - AIM...
 
Augmenting Web Services with SMS and XMPP
Augmenting Web Services with SMS and XMPPAugmenting Web Services with SMS and XMPP
Augmenting Web Services with SMS and XMPP
 
Build, train and deploy your ML models with Amazon Sage Maker
Build, train and deploy your ML models with Amazon Sage MakerBuild, train and deploy your ML models with Amazon Sage Maker
Build, train and deploy your ML models with Amazon Sage Maker
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 

Recently uploaded (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 

Learn AMPscript basics with Champion-Pankaj Namdeo

  • 3. Agenda Programmatic languages in SFMC Syntax of AMPscript Use cases for AMPscript Examples of AMPscript Demo Time
  • 4. What, Why & How of AMPscript What is AMPscript AMPscript is Salesforce Marketing Cloud's proprietary scripting language, available for use in Email messages, Landing pages, SMS messages, and Push messages. It is one of the language for Salesforce Marketing Cloud use cases. Use cases can span from simple personalization to moving around larger amounts of data. Since AMPscript can interact with most every facet of Marketing Cloud, it's a good general-purpose tool to accomplish tasks within messages or landing pages.
  • 5. What, Why & How of AMPscript Use cases of AMPscript ● Personalize emails using subscriber or contact data e.g. Names, city, DOB etc ● Create complex, highly dynamic emails using conditional logic. ● Add real-time information to emails such as date or time. ● Track impressions.
  • 6. Personalization strings A personalization string lets you insert subscriber attributes, such as subscriber name, into your emails. Personalization strings can appear in the subject line, preheader, or in the content of the email. You may hear personalization strings referred to as merge fields or substitution strings. Email Date, Setting, job & subs data Email URL Profile centre, VAWP, Un subs links
  • 8. Order of Execution ● Interpreted language ● Order of Execution in Email ○ Pre header ○ HTML body ○ Text body ○ Subject
  • 9. What, Why & How of AMPscript Types of AMPscript ● Inline AMPscript %%=function goes here=%% ● AMPscript block %%[ Code goes here ]%% ● AMPscript tag <script runat=server language=ampscript> Code goes here </script>
  • 10. What, Why & How of AMPscript
  • 11. What, Why & How of AMPscript
  • 12. What, Why & How of AMPscript
  • 13.
  • 14. AMPscript Functions -Date functions %%=Now()=%% %%=Now(1)=%% %%=Format(Now(), "MMMM d, yyyy")=%% %%=FormatDate(Now(), "MMMM d, yyyy")=%% %%=DateAdd(@today, '30','D')=%% %%=DateDiff(@today, @tomorrow, 'D')=%%
  • 15. AMPscript Functions - Misc functions %%=Trim(' hobby ')=%% %%=Replace(@footer, '2020', '2021')=%% %%=Length(@password)=%% %%=Substring(‘1234567890’, 7, 4)=%% %%=Indexof(@over18, “adult”)=%%
  • 16. AMPscript Functions - Maths function Add function %%=Add("10","20")=%% Subtract function %%= Subtract("10","20")=%% Multiply function %%= Multiply ("10","20")=%% Divide function %%= Divide("10","20")=%%
  • 17. AMPscript Functions - For Loop function FOR @i = 1 TO 10 DO /* Code goes here */ ENDIF NEXT @i
  • 18. AMPscript Functions - Lookup functions
  • 19. AMPscript Functions - Data extension function %%=Lookup('NTOProducts', name, 'price', 54.95)=%% %%=LookupRows('NTOProducts', name, Leap Wireless Earbuds)=%%