Forum Discussion
Sharepoint button to run a Power Automate flow.
RobElliott What are other visibility rules you can apply?
For example can I show button for a specific file type?
OR show for items but not folders?
I haven't found any documentation on this so if you have a link where I can learn more that would be helpful too.
Thanks for the great post!
RicardoBDR to display only a specific file type you could add the following:
"display": "=if([$File_x0020_Type] == 'png', 'inline-block', 'none')"
To display the button only for files but not folders add the following:
"visibility": "=if([$File_x0020_Type] == '', 'hidden', 'visible')"
And you could add both!
A site I've always found very useful for seeing what's possible and grabbing the JSON is at https://pnp.github.io/List-Formatting/
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Principal Consultant, Power Platform, WSP Global (and classic 1967 Morris Traveller driver)