onurmenal / crm-power-pane

The CRM Power Pane is a helper tool designed to integrate with Microsoft Dynamics CRM application and allow you to manipulate forms or perform actions faster throughout the Microsoft Dynamics CRM application .
MIT License
69 stars 25 forks source link

Feature Request - Language Quick Toggle #127

Open killerrin opened 2 years ago

killerrin commented 2 years ago

It'd be a useful feature for testing to be able to have a Language Quick Toggle within the Power Pane.

How to retrieve the Languages Enabled on an Environment You can retrieve the lcid's for all the languages enabled on a particular environment by hitting this WebAPI Function Endpoint: Endpoint: /api/data/9.1/RetrieveAvailableLanguages Documentation: https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/retrieveavailablelanguages?view=dynamics-ce-odata-9

How to Retrieve and Update the Logged In Users Language settings Endpoint: /api/data/v9.1/usersettingscollection(UserGuid)?$select=uilanguageid,helplanguageid Replace: UserGuid with GUID of SystemUser

uilanguageid = The Language of the UI helplanguageid = The Language of the Help

To update the users language, update this record with the lcid you wish you switch the language to and refresh the page