Another Salesforce blog!!!

Salesforce, Apex

Check InstanceOf of String or ID


 static public Boolean isValidId(String strId) {
    Boolean isValid = (strId InstanceOf ID) ? true : false ;
    return isValid ;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

*