You need to sign in to do that
Don't have an account?
FeedItem Bug
I'm doing something simple with FeedItem (API version 23.0)
for(FeedItem fi:[select id from FeedItem]) {
// do something
}
and when I want to save, I got this error: "Loop variable must be an SObject or list of FeedItem". !?
The same if I want to make something like that:
list<FeedItem> FI = new list<FeedItem>([select id from FeedItem]);
and the error: "Invalid initial value type LIST<FeedItem> for LIST<FeedItem>" .... This does not make much sense!
If I indeed use an SObject to init, then it's ok, but getting a blob from a SObject (ContentData field) is impossible...
This is obviously a bug.
You probably have a class called FeedItem, which is hiding the schema FeedItem type, either rename the class, or use the fully qualified schema feedItem name.
All Answers
You probably have a class called FeedItem, which is hiding the schema FeedItem type, either rename the class, or use the fully qualified schema feedItem name.
thank you ... I forgot that ...