You need to sign in to do that
Don't have an account?
Anil Meghnathi
Trigger is not fired while posting through Chatter Desktop
While i am posting any thing through Chatter Desktop,Trigger on FeedItem is not fired.
Any Idea??
How to fire that trigger???
Thanks
Anil
When posting through Chatter desktop, you code does work. It fired and stopped the posting, but just no error message pop-up window.
All Answers
My FeedItem Trigger fired for the UserFeed through Chatter Desktop,...
Will you please share your code?
Thanks
trigger ChatterMonitorKeywordFilterOnPost on FeedItem (before insert,after insert)
{
FeedItem[] f1 = Trigger.new;
User u;
u=[select Id,IsBlocked__c from User where id=:UserInfo.getUserId()];
if(u.IsBlocked__c==true)
{
f1[0].adderror('You are Blocked by Your Moderator');
}
}
This is the code of trigger which is fired when user post from login in org.But not fired when post through Chatter Desktop.
Please suggest me.
Anil
When posting through Chatter desktop, you code does work. It fired and stopped the posting, but just no error message pop-up window.
Thanks a lot.
Thats great.
So do you have any idea how to show that error message in chatter desktop???
Anil