How to get Shared variable declared in PreValidate operation in D365 plug in
Suppose when we declared a shared variable in PreValidate operation and we are trying to get it using Context.SharedVarible[“yourKey”] in PreOperation and PostOperation. It will give error as below. The given key was not present on the dictionary. We need to read it using below syntax in both preOperation & PostOperation Var myVariable = context.ParentContext.SharedVariables["MyVariable"].ToString()