cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DogRiverRat
Level: Power Up

Formatting JSON to show a newly added column header

So I hacked my way using Flow into adding a new column into a List I imported into SP from an Excel spreadsheet.  However, the new column header doesn't show up by default into the List current view.

 

Hoping to add a little logic to my Flow so that the new column header shows up.  I think it's related to setting hideColumnHeader to "false" but I don't understand how to construct the appropriate JSON.

 

Actually, while I asking, thinking likely possible (maybe ??) to combine the above with the following additionalRowClass JSON as well into the same update view call ?

 

{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"additionalRowClass": "=if([$CSS_x0020_Required] == 'YES', 'sp-field-severity--good', '')"
}

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Formatting JSON to show a newly added column header

Hi @DogRiverRat,

 

You can use the addProperty() function to combine these column headers into the JSON, For example:

 

setProperty(json('{ "firstName": "Sophia", "surName": "Owen" }'), 'surName', 'Hartnett')

It will be:

{
"firstName": "Sophia",
"middleName": "Anne",
"surName": "Owen"
}

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: Formatting JSON to show a newly added column header

Hi @DogRiverRat,

 

You can use the addProperty() function to combine these column headers into the JSON, For example:

 

setProperty(json('{ "firstName": "Sophia", "surName": "Owen" }'), 'surName', 'Hartnett')

It will be:

{
"firstName": "Sophia",
"middleName": "Anne",
"surName": "Owen"
}

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,614)