Play Games

Search This Blog

Sunday, January 3, 2016

How to get Last Modified By Name of a record - Salesforce Globe For You

Apex Piece of Code:
List <Account> accountList = [select id,name,LastModifiedBy.name from Account ];
if(accountList.size() > 0) {
system.debug('LastModifiedByName :'+accountList[0].LastModifiedBy.Name);
}
Output :

No comments:

Post a Comment