AnswerBun.com

Marketing Cloud CloudpageURL() link not reading data from data extension for added records in the Data Extension

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?

One Answer

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

Add your own answers!

Related Questions

Create lead if contact does not exist live agent

2  Asked on November 20, 2020 by c0depirate

   

How to capture URL parameters

1  Asked on November 12, 2020 by devforce

       

lightning:carousel error

1  Asked on November 3, 2020 by sankhadeep-biswas

   

Hide Case Owner Field in Recently View Cases List view

1  Asked on October 27, 2020 by chaithra-k-n

   

Calling REST APIs from PHP with curl

1  Asked on October 9, 2020 by mike-lacourse

     

how to Get API Server Name in Apex code

4  Asked on September 16, 2020

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP