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

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

we have 2 objects...
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
(Total_Payment__c = 3000, No_of_Installments__c = 12, Payment_start_date__c = Mar 10, 2022)
we want to create as many Monthly_Installment__c records as No_of_Installments__c selected (coming from Amount__c)...
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.