I'm fetching Job ID, Subscriber key of a subscriber into a Data Extension who clicks the landing page.
Code in the Email
%%[ SET @Sub = _subscriberkey SET @CloudPageID = 1234]%%
Code in landing page
%%[
set @Subs = AttributeValue('_SubscriberKey')
set @JobId = AttributeValue('jobID')
set @memberid = AttributeValue("memberid")
set @member_busname = AttributeValue('member_busname')
Set @lookUp = LookupRows('Page Visits','Subscriber Key', @Subs,'jobid', @jobid)
SET @lookupvalue = LookupRows('BU Details','memberid', @memberid)
IF Rowcount(@lookupvalue) >0 THEN
SET @BURow = Row(@lookupvalue, 1)
Set @BUName = Field(@BURow, 'BUName')
ENDIF
IF RowCount(@lookUp) == 0 THEN
InsertData('Page Visits','Subscriber Key', @Subs,'jobid', @jobid,'memberid', @memberid, 'member_busname', @member_busname , 'Event Date', NOW())
ENDIF
]%%
I've created one DE called "Landing page" and fetching the LPNAME field and inserting into Page Visits DE. I'm using the below which is not working
SET @lookupvalue = LookupRows('landing page','LPNAME', @LPNAME)
IF Rowcount(@lookupvalue) >0 THEN SET @LPRow = Row(@lookupvalue, 1) Set @LPName = Field(@LPRow, 'LPName') ENDIF
Thanks In advance, Kiran