====== ====== EFax is a service that allows you to email to a fax machine. Once setup, you can send an email to
update AccountContactUserField
set eFax_Number = (Select
case when Substring(FaxNumber, 1, 1) not in ('0', '1')
then '1'+FaxNumber
else FaxNumber
end + '@eFaxSend.com'
from
(
select ID as ContactID, AccountID,
SecondaryNumber, SecNumberTypeID, SecNumberTypeText,
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(SecondaryNumber, '(', ''),')', ''), '-', ''),' ', ''), '.', ''), '011+', '011'), '+', '011')
as FaxNumber
from AccountContact AC
where SecondaryNumber is not null
and LEN(RTrim(SecondaryNumber)) > 12
and SecNumberTypeID = 11
) TempFax
where ContactID = ID
)
where ID in (Select ID
from AccountContact AC
where SecondaryNumber is not null
and LEN(RTrim(SecondaryNumber)) > 12
and SecNumberTypeID = 11
)
===== Source =====
Contributor: Team Cyrious
Date: 5/2010
Version: Control 5.0+