0

Is there any way in Apex to fetch custom object's record Owner's(not CreatedBy) SmallPhotoUrl to be displayed in LWC?

1 Answer 1

2

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; } 
1
  • Most Welcome!!! Commented Dec 19, 2019 at 9:25

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.