Notifications
Announcements
No record found.
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
Hi Kiran Check this link
community.dynamics.com/.../use-of-shared-variables-in-plugins
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
Thank you somesh
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2