Skip to content

Instantly share code, notes, and snippets.

@iamsonal
Created December 22, 2022 22:48
Show Gist options
  • Save iamsonal/a6ffb371490659bf6960fac950b67040 to your computer and use it in GitHub Desktop.
Save iamsonal/a6ffb371490659bf6960fac950b67040 to your computer and use it in GitHub Desktop.
@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