{Advanced scripting Tip} Retrieving user settings using WEB API in Dynamics 365

Sending
User Review
0 (0 votes)

In one of the recent queries on Dynamics 365, there was a requirement to retrieve user settings using WEB API

The entity which needs to be used is “usersettingscollection” .

Retrieving for all user settings:

/api/data/v9.1/usersettingscollection

Output:

Retrieving for all user settings for Datetime formats:

/api/data/v9.1/usersettingscollection?$select=dateformatstring,timeformatstring

Output:

Retrieving for all user settings for Datetime format with systemuserid filter:

/api/data/v9.1/usersettingscollection?$select=dateformatstring,timeformatstring&$filter=systemuserid%20eq%20%27581aba25-d24f-49e6-a5da-da008cf52e5e%27

Output:

Note: Replace systemuserid with the system user id you want before querying.

Hope it helps and happy 365ing!

Any problem in CRM – end user,Microsoft  partner or an individual?

Problem Area – Technical, Functional, Training, Development or consulting?

I am here to help, get in touch here: Click here

ABOUT THE AUTHOR:

clip_image011

Twitterhttps://twitter.com/msdynamicsblog
LinkedInhttps://www.linkedin.com/in/deepesh-somani-00296932

Google Play Store:

https://play.google.com/store/apps/details?id=com.dynamicsofdynamicscrm.msdynamicsblog&hl=en