Now, we're going to execute this code in the anonymous window, as follows:
- In the Developer Console, open the anonymous window through the top menu Debug | Open Execute Anonymous Window (or through the shortcut cmd + E, or Ctrl + E for Windows users).
- A little popup opens in your Developer Console. Enter the following code in the pop-up window:
MovieSelector ms = new MovieSelector('Lethal Weapon');System.debug(ms.getTheMovieTitle())
- Click the Execute button to execute the code. Check the Open Log checkbox, if it is not checked:
- At the bottom of the screen, you will find the rule with the logs. If you didn't check the ...