SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

MS Lists Lookup column not found in data object. #7993

Open mauriciotrooh opened 2 years ago

mauriciotrooh commented 2 years ago

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

Site designs & site scripts

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

Additional environment details

Issue description

I have two lists A and B. I've created a lookup column on B to get data from A (item # and item address). I want to customize the view when opening an item on list B. But I can't find a way to make the fields from A visible on B. I get

_Failure: TEST_x0020_SHIPPING_x0020_ADDRES1 was not found on the data object._

I checked the name of the field and it's correct and contains data. Please check the attached image. Is there a way to get that information on that view?

Note: if I disable debug it shows nothing.

Thanks in advance!

JSON_error

Update: The code I'm using on the Header comes from the MS official site https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/list-form-configuration

{ "debugMode": false, "elmType": "div", "attributes": { "class": "ms-borderColor-neutralTertiary" }, "style": { "width": "99%", "border-top-width": "0px", "border-bottom-width": "1px", "border-left-width": "0px", "border-right-width": "0px", "border-style": "solid", "margin-bottom": "16px" }, "children": [ { "elmType": "div", "style": { "display": "flex", "box-sizing": "border-box", "align-items": "center" }, "children": [ { "elmType": "div", "attributes": { "iconName": "Devices3", "class": "ms-fontSize-42 ms-fontWeight-regular ms-fontColor-themePrimary", "title": "Details" }, "style": { "flex": "none", "padding": "0px", "padding-left": "0px", "height": "36px" } } ] }, { "elmType": "div", "attributes": { "class": "ms-fontColor-neutralSecondary ms-fontWeight-bold ms-fontSize-24" }, "style": { "box-sizing": "border-box", "width": "100%", "text-align": "left", "padding": "21px 12px", "overflow": "hidden" }, "children": [ { "elmType": "div", "txtContent": "='Store ' + [$TEST_x0020_SHIPPING_x0020_ADDRES1]" } ] } ] }

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.