• naveen p
  • NEWBIE
  • 10 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
Hi Everyone,

i m new to SFDC. I m writing a basic trigger by using handler class for avoiding duplicate values but it is giving an error.
my code is
 trigger AvoidingDuplicateValues1 on Account (Before Insert,Before Update)
{
    DuplicateValue dup=new DuplicateValue();
}

Error: Compile Error: Invalid type: DuplicateValue at line 3 column 28

Pls help.
Hi Everyone,

i m new to SFDC. I m writing a basic trigger by using handler class for avoiding duplicate values but it is giving an error.
my code is
 trigger AvoidingDuplicateValues1 on Account (Before Insert,Before Update)
{
    DuplicateValue dup=new DuplicateValue();
}

Error: Compile Error: Invalid type: DuplicateValue at line 3 column 28

Pls help.