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.
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:
- Dynamics 365 April 2019 release – What’s new ?
- https://www.dynamixacademy.com/dynamics-365-plugin-event-execution-pipeline/
- Virtual Entities in Dynamics 365
Also find us on:
- YouTube : https://www.youtube.com/dynamixacademy?Sub_confirmation=1
- Facebook : https://www.facebook.com/groups/1978288099132880
- Twitter: https://twitter.com/AcademyDynamix
- WhatsApp: https://chat.whatsapp.com/Blw14zGHhOECKlI8y2h4Xt
The post Dynamics 365 plugin shared variables appeared first on Dynamix Academy.
*This post is locked for comments