Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 359

SMS AMPscript Text Response

$
0
0

Following the below thread, we have created AMPscript for a text response that is associated to a Next Keyword in an SMS Outbound message.Capture SMS response on Journey BuilderHowever no responses are being received or generated.Any thoughts?

%%[var @response, @validResponse, @generatedSurveyIdset @response = [MSG(0).NOUN(0)] /* Retrieve values from entry source data extension */set @PersonMobilePhone = AttributeValue("PersonMobilePhone") set @ContactId = AttributeValue("ContactId")set @Service_User__c = AttributeValue("Service_User__c")if @response=='yes' or @response=='no' then  set @validResponse = trueendifif @validResponse == true then   /* Generate a unique SurveyId */   set @generatedSurveyId = Concat('SURVEY_', Format(Now(), 'yyyyMMddHHmmssSSS'))   /* Insert data into DE_Survey_Test */   InsertData('DE_Survey_Test', 'PersonMobilePhone', @PersonMobilePhone, 'ContactId', @ContactId, 'Service_User__c', @Service_User__c,'Support_Session_taken_place__c', @response, 'SurveyId', @generatedSurveyId)]%%Thank you for responding!%%[ else ]%%Your response is invalid. Please reply 'yes' or 'no'.%%[ endif ]%%

Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>