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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

plugin through action

(0) ShareShare
ReportReport
Posted on by 20

Scenario 1:
1. Add a button on the ribbon for Contact Entity form.

2. Create a grid for Case entity in the contact form.

3. Create a option set Yes/ No button.

4. Select an account on the contact form.

5. Write plugin code which gets fired when the button is clicked and option set is Yes.
This will populate all the cases associated with the Account that is selected on the contact.

6. If the option set is NO, populate all the cases in the case grid which are closed and are
associated with the account.

Use Actions to call the plugin through button click

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    So what's the question?

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,323 on at

    Hi,

    Your question is not clear.

    If you are looking to execute a plugin from a ribbon button, first clarify that:

    • Plugins are triggered based on an event, you cannot call it on-demand.

    To call it on-demand, you may use one of the following approaches:

    Calling a Dynamics 365 Action from JavaScript using Xrm.WebApi.online.execute - Carl de Souza

    • Update Data:
      • Register your plugin step on Update event.
      • Update some data or a flag from javascript so the plugin is triggered.

    However, you should revisit your approach and the need for the plugin.

    You may create a custom code activity and use it in an action/workflow.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 127 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 121

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans