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

Plugin succeeds but no action

(0) ShareShare
ReportReport
Posted on by 1,299

Hi,

I have created a plugin that will trigger on Create and Update, the plugin succeeds which i can see from the system jobs and there is no error but the activity that the plugin is intended to do it not working. I am not even sure how to debug this as there is no error too to use the profiler.

please help.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Plugin succeeds but no action

    Is it sync or async?

  • Davyjones Profile Picture
    1,299 on at
    RE: Plugin succeeds but no action

    Async

  • Davyjones Profile Picture
    1,299 on at
    RE: Plugin succeeds but no action

    I tried changing it to Sync, even then in system jobs its success but the actual functionality of the plugin is not performed.

  • Suggested answer
    abdulghaffar164 Profile Picture
    385 on at
    RE: Plugin succeeds but no action

    Hi Davyjones

    You can create log entries and see if the plugin has the required input data to perform that activity? I suspect there is a condition check based on which plugin performs the activity.

    You can simply create a record of a log entity as follows.

    Entity log = new Entity("new_log");]
    
    log["new_msg"] = "Log Message";
    _service.Create(log);

    This way you would be able to trace the values.

    I hope this would help you.
     
  • Suggested answer
    Joe Gill Profile Picture
    on at
    RE: Plugin succeeds but no action

    Hi,

    You could throw an exception in your code to debug it.

    Otherwise add tracing statements to help find the problem

    joegilldotcom.blogspot.ie/.../tracing-in-dynamics-crm-custom.html

    hth

    Joe

  • Suggested answer
    Nuno Profile Picture
    2,005 on at
    RE: Plugin succeeds but no action

    Hi,

    Here you may find out how to debug plugins with plugin registration tool:

    www.engagesoftware.com/.../how-to-debug-a-plugin-in-dynamics-crm-2015-online

    Additionally, if you're using CRM 2015 update 1 or an earlier version you may use tracelog:

    www.magnetismsolutions.com/.../ahmed-anwar&;s-blog/2015/06/04/tracing-and-logging-plugins-in-dynamics-crm-2015-online

  • Davyjones Profile Picture
    1,299 on at
    RE: Plugin succeeds but no action

    Hi Abdul,

    Thanks very much

    I strongly believe what you said could be a reason, i am new to these plugins and i am not sure where i should have the above code in my plugin, and where should i go to read the logs. please help.

  • Davyjones Profile Picture
    1,299 on at
    RE: Plugin succeeds but no action

    Hi Joe,

    Thanks for your response, i am not sure how to throw an exception and get it in tracing, all my plugin does is all a webservice appending the opportunity Id .

    kindly help

  • Davyjones Profile Picture
    1,299 on at
    RE: Plugin succeeds but no action

    Hi Nuno,

    Thanks you, but to use the profiler there should be an error, but i am not getting any error at all the plugin just succeeds.

    Thanks

  • Suggested answer
    Joe Gill Profile Picture
    on at
    RE: Plugin succeeds but no action

    Hi,

    If you read the link I posted it tells you how to add Tracing logs to your code and how to view them

    http://joegilldotcom.blogspot.co.uk/2016/07/tracing-in-dynamics-crm-custom.html#more

    If your code is not throwing an exception then your cannot capture it to debug. In which you should add the throw statement to your code to force an exception

    Joe

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

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans