Day 4 of my AMPscript journey.
I'm going to keep this one short... Maybe
The goal of today was to figure out how to use the Lookup Function to grab two data extension fields from a non-sendable data extension and put it in a Nike email I created.
(ps - I don't work for Nike... I'm just creating an email that looks like a Nike email because I like Nike clothes)
The problem today
I was putting this HTML code below the 3 images.
And I tried everything!!!!!
The %%=v(@Nikecouponcode)=%% wasn't rendering and neither was the %%=v(@whereyoubought)=%% below the 2 images on the right side.
I was so frustrated...
It took HOURS to figure it out.
And guess what the answer was!!!
All I had to do was move the HTML body above the 3 images and everything rendered perfectly and it ended up looking like this.
The final email looked like this in the "Preview and Test" area.
So needless to say, I was highly frustrated but also really happy to finally figure it out.
The learning lesson today was:
- Research everything until you find the answer because it makes you 10x smarter
- Troubleshoot with a friend because it makes the process enjoyable
- Move things around little by little until you find the answer
- The answer isn't always what it seems to be
And always remember that if it was easy, then everybody would be doing it.
Theres a reason not everyone knows how to code.
It takes GRIT to code, but the epiphanies are soooo worth it!
Here are the videos and websites I went to
In no particular order
AMPscript Pitfalls to Avoid in Salesforce Marketing Cloud (I didn't actually read this today, but I had the tab open the whole time and thought I'd share it with you). Who knows... Maybe it'll help you with your journey
Maintain Your Marketing Cloud Administrator Certification for Winter ’23 (I thought this would help with why my AMPscript wasn't rendering, but it didn't).
My homework for the day
I read 5 pages of the book "Automating Salesforce Marketing Cloud," again and learned some new things about the concept of automation and the importance of sticking to your objectives.
Anyways, that's it for day 4!
Kaelan Moss - MinuteAdmin out ✌🏽