 |  | | Author: |  | Vinoth (124.124.53.---) |  | | Date: |  | 14.10.08 |  | Hai Experts
I have created a plugin to resolve the title as the current date when the Case(incident) is Resolved (Actions ---> Resolved).
When i execute the Plugin in Update event i can obtain the result, but when i execute it in Close Event the plugin throws a error "The given string is not present in the dictionary". I hope the method in which the GUID id retrived is not correct for the Close method, but works well and fine in Update event. Can anyone help me in resolving this error.
My code is as below
entity = (DynamicEntity)context.InputParameters.Properties["Target"];
DynamicEntity Entity = (DynamicEntity)context.InputParameters.Properties[ParameterName.Target];
string s = ((Key)Entity[Entity.Name + "id"]).Value.ToString();
Guid caseid= new Guid(s);
this is the module code i have written to obtain the GUID.
Pls correct me to obtain the GUID when a plugin is Triggered in Prestage of Close event
Thanks in Advance
Vinoth |

|