Minimum Version: 2.5.0 / 3.5.0
This is one of the areas that we are so excited about. FakeXrmEasy has the capability to simulate the plugin event pipeline in memory, it’s a feature called pipeline simulation.
This area has been massively extended and refactored to support both the traditional requests and now bulk operations.
Here’s some of the new stuff…
With the new version, you can now register a plugin that will trigger off a bulk operation like any other organization request.
Here’s an example that trigger as a plugin from a CreateMultiple request.
You can find the source code here.
One thing to consider for UpdateMultiple, is that if you use filtering attributes, a plugin against an UpdateMultiple will trigger for any records that contains any of the attributes.
If that above wasn’t enough, let me introduce probably the coolest feature of this release… (drum roll…): we also implemented a simulation of the merged pipeline capability !!.
What that means is, if you had plugins registered against a single operation and a bulk operation, both will be triggered whenever you execute the single or bulk operation.
This is a great way to unit test the upgrade process of your existing plugins so they are slowly moved to their xMultiple implementation.
In the example below, a plugin that was registered against a single Create message will also fire from a bulk operation.
The opposite is also true, if you had a plugin registered against the CreateMultiple message, it will also be triggered from a Create request as long as that plugin step registration exists.
That’s it!
Wish you a happy, hassle-free coding experience!