You need to sign in to do that
Don't have an account?
Robert Wynter
Ampscript attachment using data extension to determine which PDF file to attach
Trying to switch out the static attachment in an email to dynamic based on a Data Extension(DE).
The Static:
%%[
%%=AttachFile("FTP","AIDI.pdf")=%%
]%%
And what I'm tried to replace it with:
%%[ var @Program,@ColumnProgramCode set @ColumnProgramCode = Lookup("Program_Interest_G", "ProgramCode", "ProgramOfInterest", @Program)]%%
%%[
%%=AttachFile('FTP',%%@ColumnProgramCode%% +'.pdf')=%%
]%%
The DE is Program_Interest_G
the filed name is ProgramCode
The Static:
%%[
%%=AttachFile("FTP","AIDI.pdf")=%%
]%%
And what I'm tried to replace it with:
%%[ var @Program,@ColumnProgramCode set @ColumnProgramCode = Lookup("Program_Interest_G", "ProgramCode", "ProgramOfInterest", @Program)]%%
%%[
%%=AttachFile('FTP',%%@ColumnProgramCode%% +'.pdf')=%%
]%%
The DE is Program_Interest_G
the filed name is ProgramCode
Please try this. Kindly mark this as solved if it's resolved.
Thanks,
Nagendra
All Answers
Please try this. Kindly mark this as solved if it's resolved.
Thanks,
Nagendra