July 2017 Preview Update- Web Resource New Capabilities
With July 2017 Preview update, Microsoft introduced new capabilities.
New Resource Type:
Now there are two new type of web resources
- Vector Image: Now SVG (Scalable Vector Graphic), XML based vector images can be used as icons.
- RESX files: These types of files can be used for localization.
RESX file must contain locale identifier in its name for example “MyCustomResource.1033.resx” for English language and “MyCustomResource.3084.resx” for the French language. Resource files basically contain a key and a relative string value for the specific language. The data is stored in RESX XML format.
To get a value for specific key in resource file we can use the syntax Xrm.Utility.getResourceString(“MyCustomResource”,”Defacto”) where “MyCustomResource” is the name of my RESX file without locale number and “Defacto” is the key. Now based on the user’s preferred language if its “French”, then it will look for the specific key in “MyCustomResource.3084.resx”.
Web Resource Dependencies
- Attribute Dependency
- Web Resource Dependency
We can even create a dependency chain, in which dependent web resources can have further dependencies. Only the published web resources can take effect in dependencies.
Note: Information provided in this article is based on July 2017 Update Preview. This feature may change during release and is at Microsoft Discretion.