Add recipient-data to SMS delivery

lukkyluke

02-04-2020

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?

Accepted Solutions (1)

Accepted Solutions (1)

wodnicki

MVP

02-04-2020

Hi,

 

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

 

Thanks,

-Jon

Answers (0)