Skip to main content
added 16 characters in body
Source Link
Rahul Gawale
  • 12.5k
  • 6
  • 35
  • 71

Yes, you can get that using a wired apex method.

@AuraEnabled(cacheable=true) public static string getSmallPhotoUrl(String userId){ return [SELECT u.SmallPhotoUrl From User u where u.id=:userId].SmallPhotoUrl; } 

Yes, you can get that using a wired apex method.

@AuraEnabled public static string getSmallPhotoUrl(String userId){ return [SELECT u.SmallPhotoUrl From User u where u.id=:userId].SmallPhotoUrl; } 

Yes, you can get that using a wired apex method.

@AuraEnabled(cacheable=true) public static string getSmallPhotoUrl(String userId){ return [SELECT u.SmallPhotoUrl From User u where u.id=:userId].SmallPhotoUrl; } 
deleted 1 character in body
Source Link
Rahul Gawale
  • 12.5k
  • 6
  • 35
  • 71

Yes, you can get that using a wired apex method.

@AuraEnabled public static string getSmallPhotoUrl(String userId){ return [SELECT u.SmallPhotoUrl From User u where u.id=:Userinfo.getUserid()]userId].SmallPhotoUrl; } 

Yes, you can get that using a wired apex method.

@AuraEnabled public static string getSmallPhotoUrl(){ return [SELECT u.SmallPhotoUrl From User u where u.id=:Userinfo.getUserid()].SmallPhotoUrl; } 

Yes, you can get that using a wired apex method.

@AuraEnabled public static string getSmallPhotoUrl(String userId){ return [SELECT u.SmallPhotoUrl From User u where u.id=:userId].SmallPhotoUrl; } 
Source Link
Rahul Gawale
  • 12.5k
  • 6
  • 35
  • 71

Yes, you can get that using a wired apex method.

@AuraEnabled public static string getSmallPhotoUrl(){ return [SELECT u.SmallPhotoUrl From User u where u.id=:Userinfo.getUserid()].SmallPhotoUrl; }