You need to sign in to do that
Don't have an account?
Surya P
How to create multiple Contacts for an Account from account detail page using quick action or button in Lightning?
I have created Lightning componet and added the component as quick action on Account object, by using this action I'm able to create contacts but these contacts are not related to the account record. I have also used the interface "force:hasRecordId", but still i could not create contacts related to that particular record.
Kindly help me how to create multiple contact records for a particular account record using lightning components.
Thanks
Surya
Kindly help me how to create multiple contact records for a particular account record using lightning components.
Thanks
Surya
I have gone through your apex class.In your apex class you are iterating and updating the same list.We cannot modify a list which is being iterated.That is why you are not able to update contact with accountid.
Try below code
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards
All Answers
Can you post your code here.So that i can help you
Here is the Code.
Parent Component:
Parent Controller:
Parent Helper:
Apex Class:
I have used this code as reference. Source: http://sfdcmonkey.com/2017/08/09/add-delete-rows-dynamic/#comment-25935
I have gone through your apex class.In your apex class you are iterating and updating the same list.We cannot modify a list which is being iterated.That is why you are not able to update contact with accountid.
Try below code
Hope this helps you
Let me know if this helps you. Kindly mark it as solved so that it may help others in future.
Thanks and Regards
Regards
Surya