1%%[ Var @eventId, @emailaddr, @SendLogEID, @SendLogEM, @SubLookup, @JobLookup,@BatchLookup
2Set @SubLookup = SubscriberID
3Set @JobLookup = JobID
4Set @BatchLookup = _JobSubscriberBatchID
5Set @SendLogEID = lookup("SendLog","EventID","SubID",@SubLookup,"JobID",@JobLookup,"BatchID",@BatchLookup)
6Set @SendLogEM = lookup("SendLog","EmailAddress","SubID",@SubLookup,"JobID",@JobLookup,"BatchID",@BatchLookup)
7]%%
8
9%%[ if _MessageContext == "VAWP" or _MessageContext == "Social" or _MessageContext == "FTAF" then ]%%
10
11%%[ Set @eventId = @SendLogEID
12Set @emailAddress = @SendLogEM ]%%
13
14%%[ ELSE ]%%
15
16%%[
17Set @eventId = [EventID]
18Set @emailAddress = [emailAddress]
19]%%
20
21%%[ ENDIF ]%%