-
Notifications
You must be signed in to change notification settings - Fork 14
pacx webresources setEnvImage
Sets the image that will be shown in the top left corner of the title bar. This setting applies for all MDAs of a given environment.
pacx webresources setLogo
pacx webresources setOrgImage
pacx wr setEnvImage
pacx wr setLogo
pacx wr setOrgImageThe aim of the current command is to streamline the process of setting the logo that is shown in the of the title bar of each model driven app that is present in a given environment. If you want to change the logo manually, you need to leverage the old theming capability, accessible via the legacy settings UI under Customizations > Themes. You need to:
- Create a new theme (from scratch or by cloning an existing default theme) --> this is required because you cannot apply a logo on one of the default themes.
- Set the logo on the new theme. --> The logo image should be a webresource already present in the environment.
- Apply the new theme to the environment by publishing it.
This command will do all these steps for you, in a single command, performing also a few consistency checks. It will:
- Check whether the current environment contains a webresource whose name is passed in the
--nameargument. - If present, checks if it's of the right type.
- Retrieves the current default legacy theme for the environment.
- If the theme is a default theme, or the
--cloneThemeargument is explicitly passed, creates a copy of the theme using the same name with suffix- Copy. - Sets the logo on the theme (the found or the cloned one).
- Publishes the theme.
You can then hit F5 in your environment to see the applied logo.
Please note: The old theming capability is not available in the new Power Platform Environment Settings App. To create modern themes you can leverage _n.ModernThemeBuilder XrmToolbox plugin, or do it manually. However, modern themes does not provides any capability to change the logo, thus leveraging this PACX command is, right now, the quickest viable option to achieve this goal.
pacx webresources setEnvImage -n new_Logo.png
pacx webresources setEnvImage -n new_Logo.png -c
pacx wr setLogo -n new_Logo.png
pacx wr setLogo -n new_Logo.png -c
| Long Name | Short Name | Required? | Description | Default value | Valid values |
|---|---|---|---|---|---|
name |
n |
Y | The unique name of the web resource to set as the organization image. Must be a .png, .jpg or .gif image up to 200x50px. | - | String |
cloneTheme |
c |
N | If true, the theme will be cloned and the new image will be set as the organization image. | False |
true, false |
- pacx auth
- pacx column
- pacx forms
- pacx history
- pacx key
- pacx optionset
- pacx org
- pacx plugin
- pacx project
- pacx publish
- pacx rel
- pacx ribbon
- pacx script
- pacx settings
- pacx solution
- pacx table
- pacx tool
- pacx unifiedrouting
- pacx usersettings
- pacx view
- pacx webresources
- pacx workflow