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 :
Microsoft Dynamics CRM (Archived)

How to Remove Roles (Deassociate) from System Dashbord (C#) code or Deactivate System Dashboard (Urgent)

(0) ShareShare
ReportReport
Posted on by 375

Hi guys,

I want to hide/Deactivate to System dashboards after deploying the managed solution and revert back when needed. The obvious solution seems is Remove all roles from a particular System Dashbord so that is not visible to users. I know from we can do it from Solution options but I want to do it with code SDK.

 

Also I know that SystemForm is entity for System boards and its record cannot be deactivated using SetStateDynamic.  It has relationship to asyncoperation entityt as regardingobjectId with the relationship
SystemForm_AsyncOperations. But regardingobjectId  is always empty when I query the  asyncoperation entity and I hope i have to query SystemForm_AsyncOperations but I do not know how to. My main purpose to just hide dashboard either by removing roles or somehow deactivate it by code.

 
1777.Untitled.png
https://msdn.microsoft.com/en-us/library/gg327869.aspx

Please help I need urgent response.

Thanks

*This post is locked for comments

I have the same question (0)
  • Jason M. Cosman Profile Picture
    5,234 Moderator on at

    Hello Adnan;

    I've thought about this quiet a bit and I'm thinking it's possible. The SDK has all kinds of example source around adding and removing permissions from entities etc.. Nothing as specific as your saying. I'd suggest the easiest route would be to just make these dashboards only available to the Sys Admin role as very very very few user should have this role. It would restrict it for every other user minus the person who Sys Admin.

    Would love to hear your thoughts or if you've headed down the road of code. Good luck!

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans