Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@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; }
@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; }