SolverTech.Tasha.Plugins.IO.SmsService
With the help of this plugin you can send SMS to your customers with certain information, for example about the estimated time of arrival.
Config example:
<?xml version="1.0" encoding="utf-8"?> <SolverTechTashaSmsServiceSettings>
<Login>user</Login> <Password>heslo</Password> <SkipWarningIfCantSendSMSToThisNumber>false</SkipWarningIfCantSendSMSToThisNumber> <CustomerSmsFormatText> Vazeny zakazniku, Vasi objednavku {2} dorucime {0:dd.MM.yyyy} ({0:dddd}) v case {0:HH}:00 - {1:HH}:00. Prosime o potvrzeni terminu doruceni. Obchod. </CustomerSmsFormatText> <CustomerSmsTextParameters>
<string>routestop-eta</string>
<string>routestop-eta;+120;0800;2000</string>
<string>job-info1</string>
</CustomerSmsTextParameters> <DriverSmsFormatText>Řidiči {0:dd.MM.yyyy} vyjíždíš v {0:HH:mm} a končíš {1:HH:mm}. Obchod</DriverSmsFormatText> <DriverSmsTextParameters> <string>route-starttime</string> <string>route-endtime</string> </DriverSmsTextParameters> <SmsConfirmation>true</SmsConfirmation>
</SolverTechTashaSmsServiceSettings>
parameter | what will add |
location-address | delivery address |
routestop-eta | time of arrival |
vehicle-mobile | the driver's phone |
job-info1 | info1 |
routestop-eta;-30 | arrival time - 30 minutes |
routestop-eta;30 | arrival time +30 minutes |
job-nazevdynamickehosloupce | dynamic column from job |
route-nazevdynamickehosloupce | dynamic column from route in solution |
driver-mobile | mobile from driver |
SmsConfirmation - parameter that determines whether it is necessary to confirm before sending sms
Note: If more than one driver is assigned to a vehicle, the phone number of the first driver is taken.
Time formatting
If an ETA needs to be formatted, the following formatting (and their combination) can be used:
Format | Result |
{0:dd.MM.yyyy} | 03.11.2018 |
{0:dddd} | Tuesday |
{0:dd.MMMM} | 03. listopadu |
{0:HH:mm} | 06:45 |
{0:dddd dd.MM.yy HH:mm} | Tuesday 03.11.18 07:32 |
ETA Feature
in the config we can also specify ETA time with +- range (e.g. <string>routestop-eta;+120</string>)
We can also constrain that the ETA has a spread, but the earliest possible ETA is at a certain time and the latest possible ETA is at another time
Example 1)
we will have an ETA at 8:30 and the following set in the config:
<string>routestop-eta;-120;</string>
<string>routestop-eta;+120;</string>
in this case the text message will arrive between 6:30 and 10:30
example 2)
we will have an ETA at 8:30 and the following set in the config:
<string>routestop-eta;-120;0800;2000</string>
<string>routestop-eta;+120;0800;2000</string>
In SMS, the time range 8:00 - 10:30 will come up, because the minimum is limited to 8:00