Salesforce Asked by The Chinese Filipino on November 4, 2020
We have an email linked to a CloudPage that has a smartcapture feature. The DE that is used for the email contains customer info which is exposed to the Cloudpage via ampscript:
%%[
var @emailaddress,@FirstName
set @emailaddress = AttributeValue("emailaddress")
set @emailaddress = Lookup("VisaAcquiDeJuly","emailaddress", "emailaddress", _subscriberKey )
set @FirstName = Lookup("VisaAcquiDeJuly","FirstName", "emailaddress", _subscriberKey )
]%%
Everything works fine and custom URL strings show for each customer, but if I add a new record to the original DE (Contact Builder > Add Record), their data doesn’t get passed to the cloudpage when clicking the email’s Link to Cloudpage button, and there is no custom URL string that shows up when redirected. How may I get the cloudpage working for new records?
Your lookup logic looks strange. You are both passing email address in your cloudpagesurl as an Attribute, and looking it up in VisaAcquiDeJuly based on subscriber key (which also seems to be the email address)?
Normally, I would just use email address which is automatically included as a parameter in CloudPagesURL (without you need to add it explicitly), as per this answer: Parameters passed in CloudPagesURL This will make your solution much cleaner:
%%[
var @FirstName
set @FirstName = Lookup("VisaAcquiDeJuly","FirstName", "emailaddress", AttributeValue("emailaddr"))
]%%
You must add the new record to the Data Extension, with a value in emailaddress column, which matches the subscriber key of the email preview/send which you are testing.
Answered by Lukas Lunow on November 4, 2020
2 Asked on November 23, 2021 by yogesh-d
1 Asked on November 20, 2021 by michael-yocca
1 Asked on November 20, 2021 by pankaj-mishra
1 Asked on November 20, 2021 by nano
1 Asked on November 20, 2021 by edukondalu
1 Asked on November 20, 2021
button custom object javascript controller list view search layout
1 Asked on November 19, 2021
1 Asked on November 19, 2021 by wilson-kwok
5 Asked on November 19, 2021 by oleh-berehovskyi
2 Asked on November 19, 2021 by pranav-mandlik
2 Asked on November 19, 2021 by milio
2 Asked on November 19, 2021 by rameshkumar-sakthivel
0 Asked on November 19, 2021 by nevrekar_amey
2 Asked on November 19, 2021 by vishal-kumar-c-v
1 Asked on November 19, 2021 by sfdcprgmr
1 Asked on November 17, 2021 by kamilk
1 Asked on November 17, 2021
3 Asked on November 17, 2021 by xl-zhang
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP