• Preetichhanda Ray 7
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

So i am trying to do it in beforedelete trigger, but i am able to get only accountid of non-master contact from below query.
List<Contact> conAcc = [Select Account.Id from Contact where Id IN : Trigger.old]; 

i need to get master contact acountid as well for comparing the two. Can anyone please help on this.

Thanks.

So i am trying to do it in beforedelete trigger, but i am able to get only accountid of non-master contact from below query.
List<Contact> conAcc = [Select Account.Id from Contact where Id IN : Trigger.old]; 

i need to get master contact acountid as well for comparing the two. Can anyone please help on this.

Thanks.

How can i write an soql to fetch records from an object with created date as the most recent present in system?

 

 

  • April 22, 2013
  • Like
  • 0