Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Run plugin when record is opened

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Run plugin when record is opened

    Hi

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

  • RE: Run plugin when record is opened

    Solved (I used js to execute action)

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Run plugin when record is opened

    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");

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Run plugin when record is opened

    Hi,

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

    Opening a record will just trigger Javascript.

  • RE: Run plugin when record is opened

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

  • Verified answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Run plugin when record is opened

    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

  • Abbod Hamwi Profile Picture
    Abbod Hamwi 585 on at
    RE: Run plugin when record is opened

    you can Create Action and trigger it from JavaScript event OnLoad

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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