Guest User

Untitled

a guest
May 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. %%[
  2. set @jobid = 13132277 /* a value from my sendlog DE */
  3. set @subID = 93394271 /* a value from my sendlog DE */
  4. set @rows = LookupRows("SendLog","JobID", @jobid,"SubID",@subID)
  5. set @rowCount = rowcount(@rows)
  6.  
  7. if @rowCount > 0 then
  8.  
  9. for @i = 1 to @rowCount do
  10.  
  11. var @Value1, @Value2
  12. set @row = row(@rows,@i)
  13. set @Value1 = field(@row,"SubID")
  14. set @Value2 = field(@row,"Client") /* a custom attribute */
  15.  
  16. ]%%
  17.  
  18. Value 1: %%=v(@Value1)=%%, Value 2: %%=v(@Value2)=%% <br>
  19.  
  20. %%[
  21. next @i
  22.  
  23. else ]%%
  24.  
  25. No rows found
  26.  
  27. %%[ endif ]%%
Add Comment
Please, Sign In to add comment