You need to sign in to do that
Don't have an account?
90210high
Reply Object Trigger
Hello,
I've created a trigger on Reply (Community) object to capture the changes in the UpVote field. I was hoping that if someone "Likes" a Reply, the trigger will fire, but it does not.
trigger myReplyTrigger on Reply (after update) { for(Reply r : Trigger.new) { System.debug('~~~ Logging replies ' + r.UpVotes); // do some code here ... } }
Does anyone know how to capture changes in the UpVote field?
Thank you!
Michael
After doing some research, it looks like UpVote is a formula field and you can't have a trigger on the formula field because values computed by formulas are not stored in the database.
http://boards.developerforce.com/t5/Apex-Code-Development/How-to-detect-changes-in-formula-field-value/td-p/201108
So, I tried creating a trigger on the Vote object, which is most likely related to Reply object via ParentId, but Vote object doesn't allow triggers.
http://na11.salesforce.com/help/doc/en/ideas_tips.htm
Any ideas?