function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cfahertycfaherty 

FYI delete of ContentPost record gives error on API < 21.0

An FYI, here's something fixable by moving to the next API.

 

I was just debugging something and realized that on API 20.0 deleting a NewsFeed record which is a ContentPost fails.

 

 

message=sObject type 'FeedItem' is not supported.
statusCode=INVALID_TYPE
success=false
Using API 21.0 succeeds.

 

Best Answer chosen by Admin (Salesforce Developers) 
cfahertycfaherty

Just to clarify, evidently it is occurring on all post types since the last update. I get that 'FeedItem' is not supported when attempting to delete NewsFeed records using API 20.0. Moving to API 21.0 fixes it.