Forum Discussion
Power Automate List Formatting - Compact List Rows
- Jul 20, 2026
I have found a solution!
If you're using a "Send an HTTP request to SharePoint" action to apply custom JSON view formatting to a list view, your request body looks something like this:{ '__metadata': { 'type': 'SP.View' }, 'CustomFormatter': '@{outputs('Compose')}' }To also set the view to Compact List density, add the ViewType2 property with a value of COMPACTLIST:
{ '__metadata': { 'type': 'SP.View' }, 'CustomFormatter': '@{outputs('Compose')}', 'ViewType2': 'COMPACTLIST' }Because both properties live on the same SP.View object, this single call applies your custom formatting and sets compact row height at once
Hello!
Yes sir I am aware about those functionalities, we're having a misunderstanding - I spoke too quick.
Currently I have a SharePoint Site Page; and within, there's a list visible with a button present to add a new item to this list.
Once a list item's submitted, a power automate flow triggers with the same trigger you've mentioned "When an item is created".
This flow:
1. Updates the trigger item
2. Send Email Messages
3. Creates a view that's filtered to hold this item, that's been added from the form, so when users go through the list view on the site page, they'll see a view available for this item.
I have no issue creating the view, or modifying the view filters.
My issue's that I cannot find a way to set the view formatting, on power automate, to have the row's heights to be "Compact list".
This is a fine detail thing to do on a list view automation, but's relevant considering how many rows will live per page.
Thank you for reading and I appreciate any further assistance!
I have found a solution!
If you're using a "Send an HTTP request to SharePoint" action to apply custom JSON view formatting to a list view, your request body looks something like this:
{
'__metadata': { 'type': 'SP.View' },
'CustomFormatter': '@{outputs('Compose')}'
}To also set the view to Compact List density, add the ViewType2 property with a value of COMPACTLIST:
{
'__metadata': { 'type': 'SP.View' },
'CustomFormatter': '@{outputs('Compose')}',
'ViewType2': 'COMPACTLIST'
}Because both properties live on the same SP.View object, this single call applies your custom formatting and sets compact row height at once