Featured image of post Comando para Excluir Todo o Chatter do Salesforce

Comando para Excluir Todo o Chatter do Salesforce

Comando para Excluir Todo o Chatter do Salesforce

Este é um comando para excluir todas as postagens e anexos no Salesforce Chatter. Abra o Developer Console, selecione “Open Execute Anonymous Window” no menu Debug, cole o seguinte código e execute-o. Pessoalmente, uso isso quando a capacidade de armazenamento da organização está acabando.

1
2
3
4
5
6
delete [select id from FeedItem];
delete [select id from FeedAttachment];
delete [select id from ContentDocument];

// Esvaziar a lixeira
database.emptyRecycleBin([select id from ContentDocument where IsDeleted = true ALL ROWS]);
comments powered by Disqus
Hugo で構築されています。
テーマ StackJimmy によって設計されています。