Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Hide background process from case navigation

Posted on by 340

Hi Experts, 

We have requirement like , we should hide background process from  case navigation based on security roles.

bgprocess.png

Real time process , I'm able to hide from security roles but BGProcess is not hiding.

Please advise how to do that ?

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Hide background process from case navigation

    Hi

    The error you are getting is due to the workflow being executed in the user's context. If the workflow cannot be run on Aync as another user, then yes the user will get this error.

    The other approach is to write javascript to get the span element that has the process sessions navigation items and set a display: none to hide or show it

    ScreenClip-_5B00_567_5D00_.png

    You will have to write javascript to get the element by class and attribute value.

    In this case : class name : nav-groupContainer and the attribute value check is: aria-label="Process Sessions"

  • Alok Sharma Profile Picture
    Alok Sharma 340 on at
    RE: Hide background process from case navigation

    Hi Kokulan,

    This step is breaking my other functionality like , when I'm trying to create new case and when clicking on save button , getting

    AsyncOperation Read privileged error :

    Message: Principal user (Id=9b40ae36-7466-e911-a827-000d3a3234a1, type=8, roleCount=3, privilegeCount=747, accessMode=0, is missing prvReadAsyncOperation privilege (Id=e84acc8f-0c61-43e3-a716-20964a483bdf) on OTC=4700Detail:

    Please advise other way to do this.

    Regards, Alok

  • Alok Sharma Profile Picture
    Alok Sharma 340 on at
    RE: Hide background process from case navigation

    Hi Kokulan,

    Thank you so much, This helped.

    Regards, Alok

  • Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Hide background process from case navigation

    Hi

    If you want to do this in a supported way, you can control this via Security Role, please see below

    ScreenClip-_5B00_516_5D00_.png

    The other approach would be doing this via Javascript but it's not supported.

  • Alok Sharma Profile Picture
    Alok Sharma 340 on at
    RE: Hide background process from case navigation

    Hello Kokulan,

    Thank you for your response !!

    This will help but will not fulfill my requirement as it needs to hide only for some particular roles not for everyone.

    Please advise if i can do anything against security roles. It could be Js or anything .

    Regards, Alok Sharma

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Hide background process from case navigation

    Hi

    You can remove this from the Form Editor when you customise the form

    ScreenClip-_5B00_500_5D00_.png

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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