I have 2 custom objects, CustomA__c and CustomB__c, Master-detail relationship between them, A is master and B is child. I am working in lighting experience.
When creating new record from Master detail page's child's related list, i want that child record type is automatically selected based on what is parent recordtype.
I have same record types on parent and child objects, same labels and api names. Also i have apex trigger, to populate a field on parent record, when parent is created, to get matching recordTypeId for child record.
I tired to do custom list button with following input:
Record types are inheriting correctly, but when i try to prepopulate parent record master-detail lookup field on my child record form, it wont work. I read that URL hacking is not working in lightning anymore, still recordId's are working.
This code is with parent object field prepopulating on child record. Not working.
Any ideas how should I solve the problem any other way?
Thanks in advance!