Share Your Experience With Others

Default Record Type Issue in Lightning

Sometimes we face this issue in Salesforce LEX. For example, we have two record types on Contact object:

Contact 1 and Contact 2.

record type

Now for System Administrator profile Contact 1 record type is default one.

I am calling the sforce.one.createRecord() method from visualforce page and provide the hardcoded id of Contact 2 record type like this.

vf

It is showing record type title Contact 1 although we are facing Contact 2 record type id in visualforce page.

record type 2

So we need to pass Contact 2 record type id in sforce.one.createRecord() method in place of null like this:

vf2

Output

record type3

I think this will help you guys.

 

One response to “Default Record Type Issue in Lightning”

  1. Sony Avatar
    Sony

    Thank you very Much….!!!!!!!!! You saved me

    Liked by 1 person

Leave a comment