USD – User Settings, ReadSetting, SaveSetting

Leave a comment

In Unified Service Desk, there are user settings which can be referenced at run time. To set up user settings, go to Unified Service Desk->User Settings:

Click New to add a setting:

From here, enter the user that this setting should apply to, and a name and value:

For example:

Now, when you start USD, you will see the settings for this user under $Settings (this will not exist if the user does not have any settings applied):

Now we can call SaveSettings to update our setting. If we created an action we can see that name and value are required:

If we run this from the debugger to update the value to Bing, we can see the parameter has been updated:

There is also a ReadSettings action:

For example, let’s add this to the DesktopReady event. Now, as a subaction of the ReadSettings action, we will go to the website of the $Settings parameter:

When you open USD, as the $Settings exists, the website open will come from the user setting:

If the user is not assigned a setting, ReadSettings will return false and not execute the subaction.

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.

IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.

THANK YOU, AND LET'S KEEP LEARNING TOGETHER.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

Leave a Reply

Your email address will not be published. Required fields are marked *