Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Remove Key From Unified Service Desk Context.

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

  • thonda Profile Picture
    thonda on at
    RE: Remove Key From Unified Service Desk Context.

    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

  • Faran Saleem Profile Picture
    Faran Saleem 295 on at
    RE: Remove Key From Unified Service Desk Context.

    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
    thonda on at
    RE: Remove Key From Unified Service Desk Context.

    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

  • Verified answer
    thonda Profile Picture
    thonda on at
    RE: Remove Key From Unified Service Desk Context.

    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

     

  • Markus Driessen Profile Picture
    Markus Driessen 35 on at
    RE: Remove Key From Unified Service Desk Context.

    Hi Faran,

    Please take a look at this:

    carldesouza.com/.../

    Hope this helps!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans