AMPScript - Day 7 focused Resource

Write an AMPScript block to add custom attributes to Send Log data extension

%%[
             set @utm_campaign = __AdditionalEmailAttribute1 
             set @utm_source = __AdditionalEmailAttribute2 
             set @SubscriberKey = _subscriberkey
             set @EventDate = GetSendTime()
             set @ViewLink = view_email_url
             set @EmailId = _emailid
             set @EmailName = emailname_
             set @Email = emailaddr
  ]%%         

**AMPScript variable name should match with the custom attribute you created for Send Log data extension

** System defined personalized strings gets auto added to send log

Reference :

要查看或添加评论,请登录

Shashi Prasad的更多文章

  • SSJS: Day 25 focused on Resource

    SSJS: Day 25 focused on Resource

    Write an SSJS block to Opt-Out from a specific Keyword from Mobile Connect Subscription

  • SSJS: Day 24 focused on Resource

    SSJS: Day 24 focused on Resource

    Write an SSJS block to Re-Opt-Infrom a specific Keyword from the Mobile Connect Subscription

  • SSJS: Day 23 focused on Resource

    SSJS: Day 23 focused on Resource

    Write an SSJS block to fetch customerkey for Publication List

  • SSJS: Day 22 focused on Resource

    SSJS: Day 22 focused on Resource

    Write an SSJS block to Upsert Subscribers to Publication List SSJS Code Snippets

    1 条评论
  • Query Activity - Day 12 focused Resource

    Query Activity - Day 12 focused Resource

    Extract distinct email domains from Contact Object for IP warm-up planning. SELECT DISTINCT REVERSE…

  • Query Activity - Day 11 focused Resource

    Query Activity - Day 11 focused Resource

    Could you write a query to fetch all the subscribers whose birthday is after 15 or 30 days? Use case: Send a birthday…

  • SSJS: Day 21 focused on Resource

    SSJS: Day 21 focused on Resource

    Write SSJS Code with Try-Catch-Throw and Handle Exception ? ? Platform.Load(core, 1);…

    5 条评论
  • SSJS: Day 20 focused on Resource

    SSJS: Day 20 focused on Resource

    Write an SSJS for Building Campaign-Specific Folder Structure in Marketing Cloud. https://www.

  • SSJS: Day 19 focused on Resource

    SSJS: Day 19 focused on Resource

    Who said we dont have UI for Transactional API? Not for Newbies Write SSJS to Create and Get List of Transactional APIs…

  • SSJS: Day 18 focused on Resource

    SSJS: Day 18 focused on Resource

    Write an SSJS script to create a folder under the data extension assets category. Leverage SimpleOperators to build a…

    4 条评论

社区洞察

其他会员也浏览了