You need to sign in to do that
Don't have an account?
Maros Sitko
insert vote object
Hi, I have issue with inserting vote object. My code in controller is
Vote newVote = new Vote(ParentId = articleId, Type = myvote); try{ insert newVote; } catch(DmlException e) { ApexPages.addmessage(new ApexPages.Message(ApexPages.Severity.WARNING, e.getMessage())); }
and I get error
sfdcfox
It would appear you've already voted on that record. That's what DUPLICATE_VALUE means.