select ter.territoryId from tbl_TER_Territories ter where ter.ownerId = and ter.fsl_tablecode = and exists ( select * from tbl_OPR_ClientOperators opr where opr.territoryId = ter.territoryId ) and exists ( select * from tbl_CDR_Distributors cdr where cdr.cdr_territoryId = ter.territoryId )
Exported #_exportCount# #_partnerTypeName# opportunities
The following files have beed added to the Document Library: #_exportFile#