+ Start a Discussion
CodeFinderCodeFinder 

Invalid type: FeedPost error

Compile Error: line 1, column 19: Invalid type: FeedPost

 

Can you please let me know where am I going wrong.

 

I get this error when I am trying to execute the same post. Can you please help me?

FeedPost fp = new FeedPost();

fp.Body = '@Bharath Ammanamanchi Hello';

fp.parentId = userinfo.getUserId();

insert fp;