1

I have some custom lightning components on the layout. These components have some visibility filters. I need to add and remove some filters. It is easy to do it in UI in page layout settings, but is there any way to find such filters in metadata to have ability to retrieve and deploy?

2
  • why you don't deploy the lightning page itself together with the component? It will retain the filters Commented Apr 23, 2020 at 15:06
  • @sanketkumar I can, but I was asking about the place in metadata, cause I didn’t know where it is. Commented Apr 23, 2020 at 20:13

1 Answer 1

4

It can be found in flexiPages folder in metadata. And inside the flexiPage you can see it:

<flexiPageRegions>
    <componentInstances>
        <componentName>cmpYourLightningComponent</componentName>
        <visibilityRule>
            <booleanFilter>1 OR 2 OR 3</booleanFilter>
            <criteria>
                <leftValue>{!$User.Profile.Name}</leftValue>
                <operator>CONTAINS</operator>
                <rightValue>Admin</rightValue>
            </criteria>
            <criteria>
                <leftValue>{!$User.Profile.Name}</leftValue>
                <operator>CONTAINS</operator>
                <rightValue>Reps</rightValue>
            </criteria>
            <criteria>
                <leftValue>{!$User.Profile.Name}</leftValue>
                <operator>CONTAINS</operator>
                <rightValue>Ops</rightValue>
            </criteria>
        </visibilityRule>
    </componentInstances>
<flexiPageRegions>
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .