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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Plugin on Create not being Triggered ...

(0) ShareShare
ReportReport
Posted on by

Hello ...

Scenario : Plugin triggered on 'Create'

Problem : Plugin works when records are created manually but fails when records are created using automated King Soft Way package.

Can someone please assist, what is the difference why is that the Plugin works when records are created manually but does not kick in when records are created using the SSIS package ?

Many Thanks

*This post is locked for comments

I have the same question (0)
  • Aileen Gusni Profile Picture
    44,524 on at

    Jay,

    When you create using kingswaysoft you use the crm destination and dont use sql direct access right?

    Please also see your plugin logic do you have any logic for skipping validation?

    And remember kingswaysoft can be upsert meaning can be create or update if you use that operation.

    I hope this can help.

    Thanks

  • Jay2014 Profile Picture
    on at

    Thanks,  I am using 'CRM Destination' and calling a work flow that creates the records.

    Crm-Destination.png

    I am not sure about the logic for skipping validation, Plugin is triggered when i create the record manually and works but not when using the PACKAGE?

  • Aileen Gusni Profile Picture
    44,524 on at

    Jay,

    I mean in your plugin code.

    To check, you can have like snippet:

    throw new invalid plugin exception, put it in the first line of your code and if it fails with that error meaning that your plugin is called actually.

    Thanks

  • Verified answer
    Sartaj Profile Picture
    880 on at

    Hello Jay,

    Are you validating depth in side your plugin and returns the execution if depth>1 ?

    As you said the plugin in working perfectly on creation of record manually but the same is not working on creation of record through SSIS package and in turn using workflow. When a record is created manually its depth is 1 but in second case its depth is greater than 1. In your case it would be 3 .

    I would suggest to debug your plugin while creation of record through SSIS and in turn through workflow and examine the depth property from the context to get the exact value of depth in this scenario . Once you get the value of depth do the required changes in the condition where you are checking for depth >1.

    Let me know if you have some other scenario or concern.

    Regards

    Sartaj

  • Jay2014 Profile Picture
    on at

    Awesome Sartaj Husain ! .. It was the context Depth .. Well explained !

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 2

#1
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

#1
Shidin Haridas Profile Picture

Shidin Haridas 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans