cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

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 @kungfupanda 

 

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-si...

 

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
Super User
Super User

Hi @kungfupanda ,

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.

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 @kungfupanda 

 

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-si...

 

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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (7,043)