I'm trying to retrieve Mobile List attribute using ampscript in Mobile Push Message and trying to insert a row based on that information in Data Extension.
But when I try to send message, it gets failed. Below code I'm using in Mobile Push Outbound message.
%%[
var @ContactKey = AttributeValue("Contact Key")
var @MobileNumber = AttributeValue("Mobile Number")
var @DeviceID = AttributeValue("Device ID")
var @Source = AttributeValue("Source")
var @Channel = AttributeValue("Channel")
set @insert= InsertData('POC_Geofence', 'ContactKey', @ContactKey, 'MobileNumber', @MobileNumber, 'DeviceID', @DeviceID, 'Source', @Source, 'Channel', @Channel, 'Geofence', 'False')
]%%
Contact Key : %%=v(@ContactKey)=%%