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
DeepakS
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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

DeepakS
Resident Rockstar
Resident Rockstar

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.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,884)