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

Run plugin when record is opened

(0) ShareShare
ReportReport
Posted on by

Hi!

I need to run my plugin when user is opened the opportunity record.

I used Registration Tool to Register New Assembly.

I created a step:

Message - Retrieve

Primary Entity - opportunity

Event Pipeline Stage of Execution - Pre-operation.

By when I open the opportunity - the plugin doesn't run (

What should I do to solve it?

*This post is locked for comments

I have the same question (0)
  • Abbod Hamwi Profile Picture
    587 on at

    you can Create Action and trigger it from JavaScript event OnLoad

  • Verified answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi Anatoliy,

    You can trigger a plugin on the execution of Action and also we can execute the Action from Javascript. This Javascript can be registered on the load of the form.

    See: www.magnetismsolutions.com/.../Call-Action-in-CRM-2015-Easily-from-JavaScript-Library

           nishantrana.me/.../using-action-to-trigger-plugin-in-crm-20132015

  • Anatoliy Veshemirsky Profile Picture
    on at

    Thanks for answer. And what about Registration Tool  - could I run plugin based on Retrieve (Retrieve Multiple) message?

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    When you open the record, Retrieve (Retrieve Multiple) message plugins will not get triggered.

    Opening a record will just trigger Javascript.

  • ashlega Profile Picture
    34,477 on at

    Hi Anatoly,

     how do you know that it does not run?

     What happens if you add this right at the beginning of your plugin(before any "if" etc)?

     throw new InvalidPluginExecutionException("test");

  • Anatoliy Veshemirsky Profile Picture
    on at

    Solved (I used js to execute action)

  • Community Member Profile Picture
    on at

    Hi

    I have also same scenario .Please tell me how you do that.

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans