hello,
How two plugins are connecting each other by shared variable. In which the Create and Update plugin.
thanx...
*This post is locked for comments
hello,
How two plugins are connecting each other by shared variable. In which the Create and Update plugin.
thanx...
*This post is locked for comments
Thank you somesh
Hi kiran_rajput,
Shared Variables feature is used to communicate information between a plug-in registered for a pre-event and a plug-in registered for a post-event. this is one of the scenarios
Instead of storing the values in a custom attribute you can store the value in a context variable. This is then available in the Post event for use. It is possible to read/write data into SharedVariables of context.
if you are looking to use the shared variables between plugins, that are not in the same execution pipeline, the context will NOT contain the shared variables. So in your case, if you Add shared variables on Create plugin and want to use it in Update plugin, shared variables will not be availalble since they are not in the same event pipeline.
Typically we use Shared variables in differenct execution stage on the same event. Like pre-event and post-event of create of record.
Sample
Adding to Shared Variables:
Reading from Shared Variables
Hi Kiran Check this link
community.dynamics.com/.../use-of-shared-variables-in-plugins
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,409
Most Valuable Professional
nmaenpaa
101,156