A blog containing Salesforce coding examples in detail.It's a place where you can find solutions to the problems that you may face in your daily salesforce coding. Apex classes,visual force page,we services,Integration,plugins,extensions,Lightning web components,Aura components,Email Messages,Sales cloud,service Cloud,Marketing Cloud.
Amazon Affliate Link: https://amzn.to/43zNb70
Play Games
▼
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