Missing '' at 'if' error in apex in salesforce

 you cant have code outside your class , your class ends at line  where it show error. if you remove that extra curly brace then error will go-away.

Missing '<EOF>' at 'if' error in apex salesforce.

Comments

Popular posts from this blog

How to get sessionid and salesforce org base url in salesforce

salesforce - sf - sfdx - cli - commands

Multi currency in Salesforce - Revenue Cloud Advance - Revenue Lifecycle Management