You need to sign in to do that
Don't have an account?
Problem when trying to retrieve childrelationships values/layouts using getRecordUI in LWC
The problem when trying to retrieve child relationships values/layouts using getRecordUI.
childRelationships array always blank.
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_record_ui
"records": {
"0039D000009qkFNQAY": {
"apiName": "Contact",
"childRelationships": {},
"id": "0039D000009qkFNQAY",
"lastModifiedById": "0052x000003CFVAAA4",
"lastModifiedDate": "2020-10-29T08:03:53.000Z",
"recordTypeId": "012000000000000AAA",
"recordTypeInfo": null,
"systemModstamp": "2020-10-29T08:03:53.000Z",
"fields": {
"Account": {
childRelationships array always blank.
https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.reference_wire_adapters_record_ui
"records": {
"0039D000009qkFNQAY": {
"apiName": "Contact",
"childRelationships": {},
"id": "0039D000009qkFNQAY",
"lastModifiedById": "0052x000003CFVAAA4",
"lastModifiedDate": "2020-10-29T08:03:53.000Z",
"recordTypeId": "012000000000000AAA",
"recordTypeInfo": null,
"systemModstamp": "2020-10-29T08:03:53.000Z",
"fields": {
"Account": {
@wire(getRecordUi, { recordIds: '$recordId', layoutTypes: ['Full', 'Compact'], modes: 'View' })
wiredRecordUi({ error, data }) {