Glycosyltransferase that glucosylates benzoic acid and derivatives. Substrate preference is benzoic acid > salicylic acid (SA) > 3-hydroxybenzoic acid > 4-hydroxybenzoic acid. Catalyzes the formation of both SA 2-O-beta-D-glucoside (SAG) and SA glucose ester (SGE). Has high affinity for the tryptophan precursor anthranilate. Catalyzes the formation of anthranilate glucose ester. Is the major source of this activity in the plant. Expressed in seedlings. By auxin, abscisic acid, salicylic acid and the bacterial pathogen P.syringae. Plants overexpressing UGT74F2 show increased susceptibility to the bacterial pathogen P.syringae and reduced accumulation of free SA upon infection. Belongs to the UDP-glycosyltransferase family.