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
  • 6927 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
April 3, 2020

Hi Jon and thanks for your advice,

This is the first time I am working with js-typologies. Do you know what kind of objects that are available in the context (apart from delivery)?
Is the recipient-data-table available in this context (so I can just refer to recipient.[columnName])? The optimal solution would be to get the data at the same time I get the other recipient-data in the workflow (to avoid unnecessary DB calls).