function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dominic SebastianDominic Sebastian 

HOW TO MAKE THE pARENT GET THE SAME FIELD DETAILS AS THE CHILD

trigger NegotiationDetails on NegotiationLogDetails__c (after insert) {

  Set<Id> NegotiationLogset = new Set<Id>();
  List<StatusLog__c> NegotiationLoglist = [Select Id, Original__c,Response__c,Final__c from StatusLog__c where  Id In : NegotiationLogset];

 
    for (NegotiationLogDetails__c  NegotiationLogDetalstrigger : trigger.new)
    {
     
      
        if(NegotiationLogDetalstrigger.IsFinal__c == true)
        {
          //StatusLog__c nl = nls.get(NegotiationLogDetalstrigger.Id);
      
          NegotiationLoglist.Original__c = NegotiationLogDetalstrigger.Original__c;
          NegotiationLoglist.Response__c = NegotiationLogDetalstrigger.Response__c;
          NegotiationLoglist.Final__c    = NegotiationLogDetalstrigger.Final__c;
     
   
       }
     //nls.add(nl);
    }
    // insert nl;

}
Hargobind_SinghHargobind_Singh
I am assuming the name of lookup field on NegotiationLogDetails__c is StatusLog__c 

You dont really need to query, as you are just updating. Just create a list and update. 

trigger NegotiationDetails on NegotiationLogDetails__c (after insert) {

  List<StatusLog__c> updateList = new List<StatusLog__c>(); 
    for (NegotiationLogDetails__c  NegotiationLogDetalstrigger : trigger.new)
    {
        if(NegotiationLogDetalstrigger.IsFinal__c == true)
        {
      		StatusLog__c nl = new StatusLog__c(id = NegotiationLogDetalstrigger.StatusLog__c); //assuming that the lookup field name is StatusLog__c 
          	nl.Original__c = NegotiationLogDetalstrigger.Original__c;
          	nl.Response__c = NegotiationLogDetalstrigger.Response__c;
          	nl.Final__c    = NegotiationLogDetalstrigger.Final__c;
     		updateList.add(nl); 
       }
    }
    if(updateListinsert.size()>0){
    	update updateList; 
    }

}