cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
DogRiverRat
New Member

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
Community Support

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
Community Support

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (5,968)