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

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

How to run a plugin on clicking New button?

(0) ShareShare
ReportReport
Posted on by 90

We have a plugin calling an API from Dynamics 365 Finance and Operations, we want to run the plugin when we click on New to add new record. The API is not working on JavaScript. So, How can we run the plugin on click of New button?

I have the same question (0)
  • Verified answer
    Francisco Murtinheira Profile Picture
    on at
    RE: How to run a plugin on clicking New button?

    Hello,

    So in order to trigger a plugin in Dynamics 365 you need to have a step that triggers on specific conditions.

    Creating on the New button doesn't generate any out of the box event.

    docs.microsoft.com/.../supported-messages-entities-plugin

    To achieve what you want you would need to call a JavaScript function on your New button and that function would call a custom action. The action would then trigger then plugin in question.

    carldesouza.com/.../

    blog.magnetismsolutions.com/.../how-to-trigger-plugins-on-custom-messages-using-actions-in-dynamics-365

    Hope this information helps.

  • CSafwat Profile Picture
    90 on at
    RE: How to run a plugin on clicking New button?

    It worked fine, Thank you.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 60

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 24 Super User 2025 Season 2

#3
CU29080825-0 Profile Picture

CU29080825-0 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans