You need to sign in to do that
Don't have an account?

Master detail relation | Record types | Force specific record type for child based on parent record type
Hello,
#I have two objects.
> Standard object (contact) (Master)
> Custom object (cust__c) (Detail)
They both have master detail relationship
#Both of them have Two record types each
> contact has record type "Con1" and "con2"
> cust__c has record type "Cus1" and "Cus2"
#Other info
> the detail page layout is present on the parent object
#Requirement
> I want to make sure that if a new "cust__c" is created on contact with record type "Con1" then mandatorily it should be associated to "Cus1".
> Similaryly, "Con2" should be associated to "Cus2",
> Both of the association should be mandatory for a user
How is it possible ?
#I have two objects.
> Standard object (contact) (Master)
> Custom object (cust__c) (Detail)
They both have master detail relationship
#Both of them have Two record types each
> contact has record type "Con1" and "con2"
> cust__c has record type "Cus1" and "Cus2"
#Other info
> the detail page layout is present on the parent object
#Requirement
> I want to make sure that if a new "cust__c" is created on contact with record type "Con1" then mandatorily it should be associated to "Cus1".
> Similaryly, "Con2" should be associated to "Cus2",
> Both of the association should be mandatory for a user
How is it possible ?
Here's a nice blog about URL hacking:
http://www.salesforceben.com/salesforce-url-hacking-tutorial/
All Answers
Something like
AND(
NOT( AND(contact.RecordType = 'con1', RecordType = 'cus1')),
NOT( AND(contact.RecordType = 'con2', RecordType = 'cus2'))
)
Here's a nice blog about URL hacking:
http://www.salesforceben.com/salesforce-url-hacking-tutorial/