I'm trying to configure dynamic from and reply Sender Profiles using AMPscript. The overview in the Support Portal leaves something to be desired:
Create a Dynamic RMM Configuration
I have two Data Extensions -
- CustomerContact (my main customer list - includes RepID field)
- SendasSalesRep (my Sales Rep table - SalesName, SalesFromeMail, SalesReplyeMail, RepID)
I have four Content Areas -
- %%=Lookup("SendasSalesRep","SalesReplyeMail","RepID",RepID)=%%
- %%=Lookup("SendasSalesRep","SalesName","RepID",RepID)=%%
- %%=Lookup("SendasSalesRep","SalesFromeMail","RepID",RepID)=%%
- %%=Lookup("SendasSalesRep","SalesName","RepID",RepID)=%%
Here are the iterations of AMPscript I have tried. All have failed.
1st Try: Will not save to Sender Profile - Throws this error:
(A problem occurred updating your sender profile. Please contact Customer Service for additional information. Name: Neutron Industries - Send as Rep External Key: 82 Invalid Sender Profile state. ClientID: 7296105 SenderProfileID: e5939ac4-fed1-e611-b70d-1402ec67bf94 Sender Profile Name: Neutron Industries - Send as Rep CustomerKey: 82The FromName AMPScript contains the following errorsInvalid Function Call - "ContentArea("SendasSalesRepSendNameDynamic")"The FromEmail AMPScript contains the following errorsInvalid Function Call - "ContentArea("SendasSalesRepSendAddressDynamic")"The FromEmail AMPScript contains the following errorsInvalid Function Call - "ContentArea("SendasSalesRepReplyAddressDynamic")"The FromName AMPScript contains the following errorsInvalid Function Call - "ContentArea("SendasSalesRepReplyNameDynamic")"
- From Name:
%%=ContentArea("SendasSalesRepSendNameDynamic")=%%
- From eMail:
%%=ContentArea("SendasSalesRepSendAddressDynamic")=%%
- Reply Name:
%%=ContentArea("SendasSalesRepReplyNameDynamic")=%%
- Reply eMail:
%%=ContentArea("SendasSalesRepReplyAddressDynamic")=%%
2nd Try: Saves without error - Gets canceled after send
- From Name:
%%=ContentAreaByName("my contents\SendasSalesRepSendNameDynamic")=%%
- From eMail:
%%=ContentAreaByName("my contents\SendasSalesRepSendAddressDynamic")=%%
- Reply Name:
%%=ContentAreaByName("my contents\SendasSalesRepReplyNameDynamic")=%%
- Reply eMail:
%%=ContentAreaByName("my contents\SendasSalesRepReplyAddressDynamic")=%%
3rd Try: Saves without error - Gets canceled after send
- From Name:
%%=ContentArea("1138")=%%
- From eMail:
%%=ContentArea("1137")=%%
- Reply Name:
%%=ContentArea("1136")=%%
- Reply eMail:
%%=ContentArea("1135")=%%
Any help will be very appreciated.