You need to create a Transaction saved search and apply the criteria as mentioned by Maven. (which I assume you figured)
For future reference this is not a "SuiteScript" question and better to ask in one of these :"General" , "Beginners" , "Integrations" or "Administration"
(No biggy, but to reach the correct audience. 🙂)