You need to sign in to do that
Don't have an account?
Nagarjun T
Trigger to create every customer should have maximum two payment child records
two objects
1) Customer__c
2) Payment__c
Fields for Customer__c
1) FirstName__c
2) LastName__c
3) Phone__c
4) Email__c
5) Amount__c
Fields for Payment__c
1) Mode__c
2) Amount__c
3) Customer__c : Lookup(customer)
1) Customer__c
2) Payment__c
Fields for Customer__c
1) FirstName__c
2) LastName__c
3) Phone__c
4) Email__c
5) Amount__c
Fields for Payment__c
1) Mode__c
2) Amount__c
3) Customer__c : Lookup(customer)
Greetings to you!
You can write a trigger for this. Please try the below code, I have tested in my org and it is working fine. Kindly modify the code as per your requirement.
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas