+ Start a Discussion
TestingSFUserTestingSFUser 

How to create bulk child records with specific date value which is coming from Parent record

Hi...,
we have 2 objects...
i.e.
Amount__c and Monthly_Installment__c

in the Amount__c object... we have (Total_Payment__c, No_of_Installments__c and Payment_start_date__c) fields...

in the Monthly_Installment__c object... we have (Installment_Amount__c, Installment_date__c) fields..
===============
While craeting Amount__c record
with
(Total_Payment__c = 3000, No_of_Installments__c = 12, Payment_start_date__c = Mar 10, 2022)
details...
------
we want to create as many Monthly_Installment__c records as No_of_Installments__c selected (coming from Amount__c)...
with
Installment_date__c as Apr 10th, May10th, June 10th etc on each Monthly_Installment__c record...
upto 12 records)
(whatever the date selected in Payment_start_date__c..
we want same date should appeared on each Installment_date__c record)
----
Thanks in Advance...
 
PriyaPriya (Salesforce Developers) 
 

The developer community recommends providing any attempts/code you've started, any errors you're getting, or where exactly you're struggling in achieving this while posting a question.