Problem on JSON formating with a connected field of a lookup Column

Patgat 0 Reputation points
2024-01-06T10:26:52.2933333+00:00

In my List A I have a lookup column "CODE PROJET" and one connected lookup column "FIN RECONDCT" both coming from an other SharePoint list B.

[enter image description here

](https://i.stack.imgur.com/1CJ3Q.png)

On a field of the A List I try to do a JSON column formating with a test on "FIN RECONDCT" coming from B.

I get fine the value of "CODE PROJET" doing [$CODE_x0020_PROJET.lookupValue] but I never get the value of the connected field "FIN RECONDCT"

I tried different solutions. But whatever name I use to get the value, I get no error (in debug mode) and no value. I tried all these =>

[$FIN_x0020_RECONDCT.lookupValue] [$CODE_x0020_PROJET:FIN_x0020_RECONDCT.lookupValue] [$CODE_x0020_PROJET.FIN_x0020_RECONDCT.lookupValue] [$CODE_x0020_PROJET:$FIN_x0020_RECONDCT.lookupValue] [$CODE_x0020_PROJET.$FIN_x0020_RECONDCT.lookupValue]

Please can somebody help me?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,229 questions
{count} votes

2 answers

Sort by: Most helpful
  1. AllenXu-MSFT 24,916 Reputation points Microsoft External Staff
    2024-01-08T02:44:39.6133333+00:00

    Hi @Patgat,

    As per my knowledge, I'm afraid that we cannot get value of a lookup field which connects to another lookup field using JSON column formatting. And as said in this thread: How to create a lookup field from another lookup column, I cannot create a lookup field which connects to another lookup field. This is by design in SharePoint Online.

    In this case, I would suggest you connect the lookup field to the source list B if possible and use

    [$CODE_x0020_PROJET.lookupValue] in the JSON code.

    Hope my answer helps. Have a good day:)


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Patgat 0 Reputation points
    2024-01-13T10:41:45.7466667+00:00

    Thanks for you contrubution. I did succeed to get [$CODE_x0020_PROJET.lookupValue] coming from the B List but my problem is getting the vaue of its connected field "FIN RECONDCT" (also coming from B List).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.