[SalesForce] URLFOR Action to New Object for specific recordtype

I have a custom object that has various record types. How would I construct URLFOR statement to take me to the new action for a particular record type?


The RecordType I want to go to is called AccountAccountRelationship in the Record Type Name field

Also I feel like I should mention that this is part of an outputLink and the value is being set to this URLFOR

Best Answer

I believe you would need to use the p3 parameter for that.

{!URLFOR($Action.Relationship_Detail__c.New, null, [p3="Id of your record type",save=1])}

Please check the syntax though.

Related Topic