I have two questions here:
Is it possible to skip the record type selection box in Lightning? I have already done user settings(Default Record Types). The record type box is properly skipped in Classic Mode via this setting. However, It has no effect in Lightning.
How can I pass recordtype via PageReference Parameters in Lightning?
I have created a custom VisualForce Page for Record Type selection (Since I didnot want all record types to be visible). I pass the recordtype ID like this in my controller method:
PageReference pageRef = New PageReference('/' + result.getKeyPrefix() + '/e'+ '?nooverride=1'); //Pass RecordType ID pageRef.getParameters().put('RecordType', recordType); pageRef.setRedirect(true); return pageRef;
It works fine in classic mode, however, in Lightning, it is picking up a random record type (not even Default one) and showing the corresponding screen.
Am I missing something here?Kindly help.