Closed thomas-schiller closed 2 years ago
Hi Thomas,
It is indeed possible. You can use the GetDefaultPluginContext method to retrieve a default context and override whatever is needed before passing it into the ExecutePluginWith
Also, you might want to take a look at the later version cause v1.x is deprecated and will stop receiving updates soon....
https://dynamicsvalue.github.io/fake-xrm-easy-docs/quickstart/migrating-from-1x/
Feel free to ping me if you still have questions.
I'm also adding a sample using that approach, not necessarily for PreEntityImages but other InputParameters, although it should work as well:
https://dynamicsvalue.github.io/fake-xrm-easy-docs/quickstart/plugins/overview/
My PostUpdate plugin uses a preImage. I need to set the PreImage for my plugin execution. I don't see any possiblity to pass an PreImage AND set the message name to "Update" (always default--> "Create")
Hence I am forced to use the obsolete method "ExecutePluginWithTargetAndPreEntityImages". The obsolete warning tells me to use "ExecutePluginWith", but I don't find any possiblity to set the message name. Am I wrong?