Quantcast
Channel: creating Chatter FeedItem with sites user - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 5

creating Chatter FeedItem with sites user

$
0
0

is it possible to create a chatter FeedItem with a sites user with public access, is there any workaround to get this done?

I tried to insert it with "insert" and also with the ConnectApi but I got the same error message:Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, Entity is read-only: FeedItem: [].

it works with the standard salesforce user but not by creating the item through a salesforce sites user with public access.

    FeedItem                                        FInew                           = new FeedItem();                                                    FInew.parentId                  = qu.Id;                                                    FInew.Body                      = FeedBody;    insert                                          FInew;

or:

ConnectApi.ChatterFeeds.postFeedItem( null, ConnectApi.FeedType.Record, string.ValueOf(ALI.Id), FeedBody);

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>