• force novice
  • NEWBIE
  • 135 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 27
    Questions
  • 5
    Replies
In a Master Detail Relationship, when a parent record gets deleted the child record also gets deleted.The deleted parent record is seen in
Recycle Bin but the child record cannot be seen in Recycle Bin why?

Hi,

 

May I know the Top 10 useful Salesforce Sites/Blogs to follow  please?

 

 

Thanks in advance.

I have written the trigger like this..plz  correct me

 

trigger proddeltrg on Opportunity (after delete) {
    Set<Id> OppIds = new Set<Id>();
    List<Product2>  productsToDelete = new List<Product2>();
    for(Opportunity opp : trigger.Old) {
      oppIds.add(opp.Id);
    }
    productsToDelete = [SELECT Id,Name FROM product2 ];
    delete productsToDelete;
}

Hi Friends,

 

I am trying to do the following query but I am not able to save it and I am getting an error like System.Today() Is not available.

 

Stats__c[] Stats = [Select Id,Mode_of_Travel__c,School__c FROM Stats__c Where CreatedDate = System.Today() ];

 

Please help me to figure out the problem here.

 

Hi

 when i save the test class i got error name:java.lang.reflect.InvocationTargetException . already i file the case..how to overcome thi issue. please help me.