Sharepoint JSON - how to filter a lookup column in another list, by multiple values?

Christopher Duncan 0 Reputation points

How to change this sharepoint json code such that the formatted column with hyperlink directs to a list (with a lookup column) that is filtered by both values of [$MOCx_0023_] and empty values at the same time?

{"$schema":     "",   
"elmType": "a",   
"attributes":  {     
"iconName": "OpenFolderHorizontal",     
"class": "ms-fontColor-themeDark",     
"href": "='' + [$MOC_x0023_]",     
"target": "_blank"   
"style": {     
"font-size": "18px",     
"text-decoration": "none",     
"padding-left": "15px",     
"font-weight": "bold"   } 
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,053 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 43,181 Reputation points Microsoft Vendor

    In the JSON formatting you provided, "


    Value1=' + [$MOC_x0023_]" is a dynamic URL to filter the view in list A.

    For the hyperlink column of list B, JSON formatting only can set a static URL as its value.

    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