ECMS-4304 [SANITIZATION] some changes for script & action type function to adapt with requirement