Skip to main content

Notifications

Dynamics 365 Community / Blogs / Dynamix Academy / Dynamics 365 plugin shared ...

Dynamics 365 plugin shared variables

An article about Dynamics 365 plugin shared variables explaining the dynamics 365 plugins concepts in detail with live demo.

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.

Dynamics 365 plugin shared variables

In below video we have discussed and demoed how to use shared variables in Dynamics 365 Plugins explaining step by step process and things to check while using it.

Shared variables in Dynamics 365 plugin by Dynamix academy

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 available since they are not in the same event pipeline.

Typically we use Shared variables in different execution stage on the same event. Like pre-event and post-event of create of record.

Learn More from below:

Also find us on:

The post Dynamics 365 plugin shared variables appeared first on Dynamix Academy.

Comments

*This post is locked for comments