2
votes
Accepted
How to optimize the email AMPscript code that has a lot of lookups?
You can create one central Content Data Extension and then pull from it all the needed 30 fields based on the email name using LookupRows AMPScript function. That would be definitely more efficient ...
1
vote
Accepted
Pass the value from email to a content block using AMPscript
Ampscript gets evaluated top to bottom. So any declaration of variable further down in your code (whether it is within the email itself, or in a referenced content block) will always overwrite any ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
email-template × 1190email × 323
visualforce × 285
apex × 251
marketing-cloud × 154
visualforce-component × 61
html × 58
email-alert × 58
singleemailmessage × 55
apex-email-service × 52
merge-field × 52
ampscript × 51
community × 39
visualforce-template × 39
workflow × 35
lightning × 29
content-builder × 28
trigger × 27
approval-process × 23
formula × 19
css × 19
vf-email-template × 17
visual-workflow × 16
process-builder × 15
images × 15