Loading
Salesforce now sends email only from verified domains. Read More

Marketing Cloud Engagement | How to Store LINE Send Logs in a Data Extension

Publish Date: Apr 27, 2026
Description

Marketing Cloud Engagement does not provide per-contact delivery logs for LINE messages. Use the AMPscript InsertData function to store send logs in a data extension. Note that logs are recorded before the send completes and do not confirm delivery to the user's device.

Resolution

Step 1: Prepare a data extension to store LINE send logs

Example data extension configuration:
 
Data Extension Name: LINE_Send_Log
Fields
  • Attribute 1: AddressID / Text / 100 chars / Nullable
  • Attribute 2: SendDate / Date / Nullable
  • Attribute 3: ContactKey / Text / 254 chars / Nullable

 

 

Step 2: Add AMPscript to the LINE message

・Implementation Example 1: Simple implementation
With this implementation, the AMPscript also executes during Subscriber Preview in Content Builder and Journey Builder, logging a record at preview time.
%%[
SET @addressid = LINE_ADDRESS_ID
InsertData('LINE_Send_Log', 'AddressID', @addressid, 'SendDate', SystemDateToLocalDate(Now()))
]%%
 
・Implementation Example 2: Exclude logging during Subscriber Preview
%%[
if _messagecontext != 'PREVIEW' then
SET @addressid = LINE_ADDRESS_ID
InsertData('LINE_Send_Log', 'AddressID', @addressid, 'SendDate', SystemDateToLocalDate(Now()))
endif
]%%
 
・Implementation Example 3: Store both LINE_ADDRESS_ID and ContactKey
%%[
if _messagecontext != 'PREVIEW' then
SET @addressid = LINE_ADDRESS_ID
SET @contactkey = Lookup('_MobileLineAddressContactSubscriptionView', 'ContactKey', 'AddressID', @addressid)
InsertData('LINE_Send_Log', 'AddressID', @addressid, 'SendDate', SystemDateToLocalDate(Now()), 'ContactKey', @contactkey)
endif
]%%
 
Note: The above are sample scripts. Modify them as needed to fit your requirements.

 

Step 3:

Send a LINE message containing the AMPscript from Step 2. Send logs are stored in the data extension created in Step 1.
 
 
 
 

Notes and Considerations


Important: Do not set a primary key on the data extension used to store LINE send logs. If a primary key duplicate error occurs, the send log cannot be recorded — and depending on the implementation, the send itself may stop. If you choose to set a primary key, conduct thorough testing beforehand.

Important: Plan for data extension growth. Configure a Data Retention Policy or periodically rotate the data extension to manage data volume.

Note: The records stored by this implementation reflect the LINE send processing stage — they do not guarantee that the LINE message was received on the user's device. Use this data as reference information only.

Note: To check whether LINE sends succeeded or failed, refer to the Delivered Messages count versus the Addressable Audience size in the GroupConnect Summary Reports.
Knowledge Article Number

005131990

 
Loading
Salesforce Help | Article