cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Using FLOW to apply company theme

When we are issued a new site, we'd like to change it to the Company Theme.

 

I've been trying to change from a default Blue or Red to Green theme as a test:

applyTheme.jpg

 

When I run the flow, it's successful, but the body says:

{
"d": {
"ApplyTheme": null
  }
}
 
 
Please advise...thank you!
1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous 

 

The site theme is consists of many branding elements, so to apply or change it, you should provide the full schema.

 

You can try following tool to generate the schema:

https://developer.microsoft.com/en-us/fabric?fabricVer=5#/styles/themegenerator#Overview

 

Here you can get more detail explanation on site theme:

https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-theming/sharepoint-site-theming-json-schema

 

Hope this helps!!

 

——————————————————
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

 

View solution in original post

3 REPLIES 3
DeepakS
Super User
Super User

Hi @Anonymous ,

To apply theme on site, you should pass the theme JSON too with name, here is an example:

 

{'name':'Sounders Rave Green','themeJson':'variables('theme')'}

 

Theme.png

 

——————————————————
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Anonymous
Not applicable

hi @DeepakS , it's an existing theme...I don't want to add a new theme...I just want to change the default 'random colored' theme to our company default theme. 

 

Would I still need to pass in the JSON for the coloring as you've shown with your initialize variable?

I want to mimic in FLOW the same things I have to do by hand when we get a site collection:

1. click upper right cog/gear

2. select 'change the look'

3. click Themes

4. select the one Company Theme

5. click Save

Hi @Anonymous 

 

The site theme is consists of many branding elements, so to apply or change it, you should provide the full schema.

 

You can try following tool to generate the schema:

https://developer.microsoft.com/en-us/fabric?fabricVer=5#/styles/themegenerator#Overview

 

Here you can get more detail explanation on site theme:

https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-theming/sharepoint-site-theming-json-schema

 

Hope this helps!!

 

——————————————————
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

 

View solution in original post

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Automate User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (50,161)