cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
varun4936
Level: Powered On

SharePoint Online column json formatting on folders issue

Hello,

 

I have an SP list where the user is allowed to create folders and then add list item inside those folders. I have a flow attached to this list which gets triggered manually. I have added json formatting to show/hide the Manual trigger button based on the Content Approval status.

 

Issue:

The issue I am having is that the json formatting also shows up on the folders created in the list. How can I only show the json formatting on list items and skip if there is a folder

 

Here is the json I have written so far.

 

{
"elmType": "button",
"style": {
"border": "solid",
"background-color": "white",
"color": "#0078d7",
"cursor": "pointer",
"visibility": "=if(([$_ModerationStatus] == 'Pending'),'visible','hidden')"
},
"txtContent": "Click to begin review",
"customRowAction": {
"action": "executeFlow",
"actionParams": "{\"id\": \"flowID\"}"
}
}

1 ACCEPTED SOLUTION

Accepted Solutions
varun4936
Level: Powered On

Re: SharePoint Online column json formatting on folders issue

I think I figured out the solution. I added a condition to see if the ContentType == 'Item' and that seems to have done the job. Now the formatting only shows up on list items and not on Folders.

1 REPLY 1
varun4936
Level: Powered On

Re: SharePoint Online column json formatting on folders issue

I think I figured out the solution. I added a condition to see if the ContentType == 'Item' and that seems to have done the job. Now the formatting only shows up on list items and not on Folders.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 289 members 2,877 guests
Please welcome our newest community members: