String beforedz = ‘doozy-spot’;
String afterdz= StringName.substringAfter(‘-‘);
System.assertEquals( ‘spot’, afterdz);
Related Articles
Salesforce Batch apex Start did not return a valid iterable object
I have below batch apex code when I try to pass certain parameters through parameterized Constructor, I am getting apex batch error as “Start did not return a valid iterable object” Here is the apex batch code. Got it fixed by below change in the Apex Batch Class Constructor
Salesforce Retire | End of life (EOL) of Permissions on Profiles
Salesforce announcing the end of life (EOL) of permissions on profiles/ Retire Permissions on Profile that will be the Spring ’26 releaseProfiles will still exist; however, permissions on profiles will EOL and permissions will be available only on permission sets. Before we dive into what’s new with Spring ‘23, here’s a quick reminder of what […]
Salesforce – what is the difference between Trigger and Workflow?
Trigger – Custom Code Workflow – Configuration – no code approach