Sunday, October 11, 2009

How to pass information from steps 10 (pre) and post(50) in CRM Plug In

Here is an example how to pass information between pre and post ( 10- 50).

Object context contain SharedVariables.

Set values in 10 like this example code:
context.SharedVariables["myvalue"] = “rami Heleg”;

Read value in 50 ( post) like this example code:
string name = context.SharedVariables["status"].ToString();


Can be used for status win or Lose... or for closing incident and needs "IncidentResolution".

Thanks,
Rami Heleg