web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Remove Key From Unified Service Desk Context.

(0) ShareShare
ReportReport
Posted on by 295

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

I have the same question (0)
  • Markus Driessen Profile Picture
    35 on at

    Hi Faran,

    Please take a look at this:

    carldesouza.com/.../

    Hope this helps!

  • Verified answer
    thonda Profile Picture
    on at

    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

     

  • thonda Profile Picture
    on at

    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

  • Faran Saleem Profile Picture
    295 on at

    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

  • thonda Profile Picture
    on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans