Created
December 22, 2022 22:48
-
-
Save iamsonal/a6ffb371490659bf6960fac950b67040 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@wire(getRecordCreateDefaults, {objectApiName: '$objectApiName', recordTypeId : '$recordTypeId'}) | |
recordCreateDefaults({ data, error }) { | |
if (data) { | |
const recordInput = generateRecordInputForCreate( | |
data.record, | |
data.objectInfos[this.objectApiName] | |
); | |
console.log(recordInput); | |
this.recordUi = data.layout; | |
this.loading = false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment