In order to personalize our SMS - Journey Builder sentsend, we need to use the values of the fields of the Data Extension that trigger de Journey Builder.
So
So that, we are using an AMPScript code in the SMS in Mobile ConnectMobileConnect outbound SMS. We have tried with this:
%%[ SET @idSubscriber = _subscriberkey SET @rows = LookupOrderedRows("DE", 1, "ID_SUBSCRIBER Desc", "ID_SUBSCRIBER", @idSubscriber) SET @RowCount = RowCount(@rows) IF (Rowcount(@rows) > 0) THEN VAR @ILRow, @name, @limit SET @ILRow = row(@rows,1) SET @name = Field(@ILRow, "DES_NOMPILA") SET @limit = Field(@ILRow, "LIM_MC") ENDIF ]%% 1= %%=v(@idSubscriber)=%% 2= %%=v(@RowCount)=%%
We
%%[
SET @idSubscriber = _subscriberkey
SET @rows = LookupOrderedRows("DE", 1, "ID_SUBSCRIBER Desc", "ID_SUBSCRIBER", @idSubscriber)
SET @RowCount = RowCount(@rows)
IF (Rowcount(@rows) > 0) THEN
VAR @ILRow, @name, @limit
SET @ILRow = row(@rows,1)
SET @name = Field(@ILRow, "DES_NOMPILA")
SET @limit = Field(@ILRow, "LIM_MC")
ENDIF
]%%
1= %%=v(@idSubscriber)=%% 2= %%=v(@RowCount)=%%
We have recieved the SMS but the value of @idSubscriber@idSubscriber
is null. We have tried then with changing the Personalization string (found in ExacttargetExactTarget documentation WEB):
%%[ SET @idSubscriber = CONTACT_KEY SET @rows = LookupOrderedRows("DE", 1, "ID_SUBSCRIBER Desc", "ID_SUBSCRIBER", @idSubscriber) SET @RowCount = RowCount(@rows) IF (Rowcount(@rows) > 0) THEN VAR @ILRow, @name, @limit SET @ILRow = row(@rows,1) SET @name = Field(@ILRow, "DES_NOMPILA") SET @limit = Field(@ILRow, "LIM_MC") ENDIF ]%% 1= %%=v(@idSubscriber)=%% 2= %%=v(@RowCount)=%%
but in
%%[
SET @idSubscriber = CONTACT_KEY
SET @rows = LookupOrderedRows("DE", 1, "ID_SUBSCRIBER Desc", "ID_SUBSCRIBER", @idSubscriber)
SET @RowCount = RowCount(@rows)
IF (Rowcount(@rows) > 0) THEN
VAR @ILRow, @name, @limit
SET @ILRow = row(@rows,1)
SET @name = Field(@ILRow, "DES_NOMPILA")
SET @limit = Field(@ILRow, "LIM_MC")
ENDIF
]%%
1= %%=v(@idSubscriber)=%% 2= %%=v(@RowCount)=%%
In this case we have not recievedreceived the SMS.
Could
Could you help us on how to access to the values of the Data Extension within Mobile Connect SMS, triggered by Journey Builder?
Than
Than you very much.