Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Prevent Plugin running on multiple D365 application based on user role

(0) ShareShare
ReportReport
Posted on by 10

Hi,

We have two application being used by business user in D365 1. Service Hub 2. Customer Service Workspace where the business logic is to restrict plugin firing registered on case entity from two instances and should allow to trigger only in one instance as it's a common entity and is available in these application and it might break the business logic. 

Could you please let me know how this can be implemented. 

Thank you,

Leo Fernandas

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at
    RE: Prevent Plugin running on multiple D365 application based on user role

    Hi,

    A plugin cannot know from which application it was triggered.

    However, JS can have this information and eventually pass it to the plugin. See: community.dynamics.com/.../how-to-get-current-application-id-in-crm-plugin

    Alternatively, maybe a user rights check in the plugin would be appropriate?

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 671 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 167 Super User 2025 Season 1

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 138 Most Valuable Professional

Product updates

Dynamics 365 release plans