Sarveshgithub / sfdc-lwc-lightning-datatable

Salesforce Lighting Data table
MIT License
78 stars 28 forks source link

[ Enhancement ] - New button : allow record type selection #186

Closed mickaelgudin closed 1 year ago

mickaelgudin commented 1 year ago

It appears to be possible using state in props : https://salesforce.stackexchange.com/questions/254498/lightning-web-components-navigate-to-the-new-object-page-passing-in-specific

this[NavigationMixin.Navigate]({
      type: 'standard__objectPage',
      attributes: {
        objectApiName: 'Account',
        actionName: 'new'
      },
      state: {
        useRecordTypeCheck: 1
      }
    });

where : lwcRelatedList.js, the method newRecord

Could you have a look @Sarveshgithub

Sarveshgithub commented 1 year ago

done