• Sathia Aran 9
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
I added the below lines of code for upsert operation to record the duplicate record set.But I face compile time error .Please note that the dmloptions work for database.insert and database.update.Please help
Lines of Code:
Database.DMLOptions dml1 = new Database.DMLOptions();
  dml1.DuplicateRuleHeader.AllowSave = true;
  Database.upsert(lstOfEqup1, dml1);

Error message :
Method does not exist or incorrect signature: void upsert(List<Account>, Database.DMLOptions) from the type Database