You need to sign in to do that
Don't have an account?
Kishan Trambadiya
Is there any standard trigger for Cahtter Private message??
I want a trigger that is fire at the time when user send the private message to aother user. so through that trigger i can use a class to store private conversation. I have ChatterMessage Standard Object but i cant use any trigger on it. I also made the permission "Manage Chatter Messages" then after i am not able to make trigger on chattermessage sobject.
This works for me:
trigger onPrivateMessageAdded on ChatterMessage (before insert) {
ChatterMessage[] messages = Trigger.new;
for (ChatterMessage currentMessage : messages) {
system.debug(currentMessage.Body);
}
}
Please first make sure you have enabled the "Manage Chatter Messages and Direct Messages" permission under [Your Permission Set]->System Permissions.
Regards