Last active
May 21, 2020 15:23
-
-
Save jamigibbs/ac0307c1a7ec07c1b97a024e81cd3eaa to your computer and use it in GitHub Desktop.
Bad Feed Item SOQL query for profile image
This file contains 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, CreatedDate, Parent.Name, Parent.MediumPhotoUrl | |
FROM FeedItem | |
WHERE CreatedDate = LAST_N_DAYS:30 | |
ORDER BY CreatedDate DESC | |
]; | |
feedItemsList = [ | |
SELECT Id, Body, Title, CreatedDate, Parent.Name, Parent__r.MediumPhotoUrl | |
FROM FeedItem | |
WHERE CreatedDate = LAST_N_DAYS:30 | |
ORDER BY CreatedDate DESC | |
]; | |
feedItemsList = [ | |
SELECT Id, Body, Title, CreatedDate, Parent.Name, Parent.Photo.mediumPhotoUrl | |
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