Is there any way in Apex to fetch custom object's record Owner's(not CreatedBy) SmallPhotoUrl to be displayed in LWC?
1 Answer
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; } - Most Welcome!!!Rahul Gawale– Rahul Gawale2019-12-19 09:25:18 +00:00Commented Dec 19, 2019 at 9:25