Last active
August 26, 2020 12:55
-
-
Save jamigibbs/c43830c3b77fd42de58108c4ee1f53c4 to your computer and use it in GitHub Desktop.
SOQL query for profile image from FeedItem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feedItemsList = [ | |
SELECT Id, Body, Title, Parent.Name, CreatedDate, | |
TYPEOF InsertedBy WHEN User THEN Name, MediumPhotoUrl END | |
FROM FeedItem | |
WHERE CreatedDate = LAST_N_DAYS:30 | |
ORDER BY CreatedDate DESC | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment