公告板
版本库
filestore
活动
搜索
登录
main
/
OlyMEBGProduct
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
RentalApplyFault
sunxia
2023-03-09
7b0e5c8b8de9968e32dd7f84d41dc2eaa0e868b3
[OlyMEBGProduct.git]
/
force-app
/
main
/
default
/
triggers
/
CheckChatterPosts.trigger
1
2
3
4
5
6
7
trigger CheckChatterPosts on FeedItem (before insert) {
for (FeedItem f: trigger.new) {
if (f.parentId == Userinfo.getUserId()) {
f.addError(System.Label.Error_ChatterPostToMyFollowers);
}
}
}