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?
-
why you don't deploy the lightning page itself together with the component? It will retain the filters– sanket kumarCommented 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.– Dmitriy YurkinCommented Apr 23, 2020 at 20:13
Add a comment
|
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>