[SalesForce] Exacttarget Contact AMPScript

I am trying to customize an Push Notification template in ExactTarget by using AMPScript. Can you please let me know how can I retrieve "Contact key" value from Contact using AMPScript.
I have tried with the below AMPscript:
%%contactKey%%
%%ContactKey%%
%%[Contact Key]%%

Best Answer

You cannot access the ContactKey / SubscriberKey in MobilePush.

The only way to have access to this value is to create a new custom attribute with this value for the MobilePush Demographics. For whatever reason we can only query the ContactID (which is system defined) from the _PushAddress data view.

In fact, even in MobileConnect outbound SMS, the ability to actually use the ContactKey of a Contact was added just two weeks ago with the June 2018 release.

EDIT (OCT 2018) - with latest October 2018 release there is now an option to use Journey Attributes in the MobilePush messages. This includes the ContactKey attribute.

Related Topic