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?
1 Answer
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>