Dear all,
Is it possible to remove key from Unified service Desk Data parameters.
For example:
I have this value inside my USD Data Parameter [[$Context.Key1]].
I want to remove this key along with its value from USD Data parameters is there any way i can achieve this?
Like in localStorage we can use localStorage.removeItem command to remove an item so is there any similar method for USD Data Parameters?
I am Using USD 4.1 and CRM 8.2
Hi Farhan,
Please suggest a new idea at experience.dynamics.com/.../ , USD Product Group may consider it in next build based on votes it receives and priority it gets.
Also please mark the above as answer to conclude this question loop.
Regards,
Praveen T
D365 Customization Support
Microsoft Corporation
Hi Praveen,
Yes, I am doing the same to symbolize this using the method you told me.. but i was trying to find a solution where I may be able to remove the context key altogether. But anyways I can still achieve my target with the above approach but i hope that this feature is announced soon in the new releases of MS USD
As per my test, ClearDataParameter does not really clear the variables in $Context bag but they only help with DataParameter collections that were created by ScanDataParameter action of the GlobalManager. In the above given example from CarlDeSouza, the account DataParameter collection is created by internal ScanDataParameter that happens on Navigate of the CRM Page or Unified Interface Hosted control.
Regards,
Praveen T
D365 Customizations Support.
Microsoft Corporation
Hi Farhan,
There is no easy way to remove the item from Context collection, however they all get removed once you close the Session.
Best is have logic to assign empty string or false using CopyToContext action of GlobalManager and evaluate for the value where its needed.
Such as "[[$Context.Key1]+]" == "" if empty consider removed or "[[$Context.Key1]+]" == "false" that is whatever the value you might have assigned using CopyToContext to symbolize Context variable is cleared.
Basically you should not be blocked to achieve something because you do not have remove action given to manage context variables.
Let me know if you have any further questions.
Regards,
Praveen T
D365 Customization Support.
Microsoft Corporation
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Eugen Podkorytov
106
Muhammad Shahzad Sh...
106
Most Valuable Professional