Add recipient-data to SMS delivery | Community
Skip to main content
lukkyluke
Level 2
April 2, 2020
Solved

Add recipient-data to SMS delivery

  • April 2, 2020
  • 1 reply
  • 6929 views

Hi,

I would like to add data from the recipient-schema to each SMS-delivery, without using a personalization-block in the message GUI. The added data should not be a part of the text message, it will be used for logging purposes. The only workaround I found is adding it as a personalization block and then remove it in the smsConnector script. The reason I don't want to do like that is it could be deleted by the user and would probably effect the length validation of the message. 

This is what the data (input parameter to the function processDeliveryPart) looks like in the smsConnector-script (when adding lastName as a personalization block):

 

<deliveryPart IPAffinity="" contentModTime="" delivery-id="" hostname="" id="" lang="" mobileConnector="1" mobileType="0" nextPass="" processId="" rcpCount="" retry="" startDate="" validityDate=""> <message address="" id="" recipient-id="" released="" sourceAddress="" targetCode=""> <custom> <recipient lastName=""/> </custom> <text></text> <source></source> </message> <delivery/> <options appType="" class="" codepage="" extAccountId="" forceCodepage="" maxSmsPerMessage="" mbloxServiceId="" priority="" serviceType=""/> <login account="" password="" port="" server=""> <params defaultMoCharset="" defaultMtCharset="" deliverIdEncode="" submitRespIdEncode=""> <oauthParams thirdPartyApplication=""/> <facebookParams marketingURL="" realtimeSubStatus=""/> <mscrm crmDeploymentType="" crmVersion="''"/> <salesforce apiVersion="''"/> </params> </login> </deliveryPart>

 

 

Ideally I would like to modify the message-tag, and add an attribute there.

Any ideas?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

Hi,

 

You should be able to append to the delivery content using a control typology, ahead of the length validation.

 

Thanks,

-Jon

1 reply

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
April 3, 2020

Hi,

 

You should be able to append to the delivery content using a control typology, ahead of the length validation.

 

Thanks,

-Jon

lukkyluke
lukkylukeAuthor
Level 2
August 27, 2020

Hi again, I would really like to find a better solution then the one I am using now. I am currently adding the data to the message it self (delivery.content.sms.source+="exampledata") with a typology rule. I would like to put this data in another variable. How do I know which variables which are available both in typology-rule context and in the xmlDeliveryPart-object, in the connector-script? Where is the mapping made? Could I make my own variable in the typologyrule and use it in the connector-script? @jonathon_wodnicki