Skip to main content
Sooriya Kan (achievers) a posé une question dans #Apex
2  objects  having same number field  in both  but no realtionship( lookup or MD relationship)

 

Obj - A, , Obj -B , number field name . SS ID in both

  After insert Trigger in A 

Trying to get B records which match from object A  after inserting records in A ( when inserting records in A, object B also getting inserted ) 

trigger CreateB on  A (after insert) {

    

    list<A__c> regList;

    reList = [select id, SS_ID___c, dec__C from  A_C where id IN :trigger.new];

    

    list<B__c> pL=[select , id , SS_ID___c, from B__c where SS_ID___c, IN :  reList.SS_ID___c, ];

    

    }
13 réponses
  1. 14 août 2017, 19:30
    Hi carlos, 

    I just  temporarily stop working on this. I will let you know soon . THANKS 
0/9000