• Umarani Akula 2
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
Patner account is missing in account ojbect 
and lookup field parnter to account is missing in Opportuninty object

Parent: Account

Child: Payment__c

 

trigger myPaymentTrigger on Payment__c (before delete, before insert, after update) {

 

List<Payment__c> obj =new List<Payment__c>();

 

//Account a = new Account();

 

 if(trigger.isInsert || trigger.isUpdate){

   obj = trigger.new;

   Account a = ; //Here i want to write Query that should return Parent Account of Payment__c

}

  if (trigger.isDelete) { }

}