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
0 Asked on November 20, 2020 by jairam
css lightning datatable lightning web components salesforcedx
2 Asked on November 20, 2020 by c0depirate
1 Asked on November 12, 2020 by devforce
1 Asked on November 11, 2020 by crm-guy
2 Asked on November 8, 2020 by johannes-schapdick
1 Asked on November 4, 2020 by the-chinese-filipino
1 Asked on November 4, 2020 by degmo
pre chat service cloud console servicecloud snap ins visualforce
1 Asked on November 3, 2020 by sankhadeep-biswas
1 Asked on October 27, 2020 by chaithra-k-n
0 Asked on October 26, 2020 by vignesh-waran
0 Asked on October 25, 2020
1 Asked on October 11, 2020 by r-rothwell
1 Asked on October 8, 2020 by itai-shmida
1 Asked on October 3, 2020 by nandy
1 Asked on October 3, 2020 by dsk
1 Asked on September 30, 2020 by sfdc-in
1 Asked on September 19, 2020 by naveen-vm
Get help from others!
Recent Answers
© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP