CRM 4.0 Plugin for Case at Close event

Go to TopicNew TopicRepliesShow all messages

Topics

Author

Date

CRM 4.0 Plugin for Case at Close event  
Vinoth 14.10.08

Is SalesNexus any good?    CRM and ERP Bridge

 CRM 4.0 Plugin for Case at Close event

Replies
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


Reply To This Message

Your Name:
Your Email:
Subject:
Message:
Email replies to this thread to the address above.
 
By posting to the forum your hostname will be registered and shown with your message. Once sent contributions no more cannot be edited or deleted.

QuotePost

Spiele und Anregungen
The Content Management PortalThe Document Management PortalThe IT Security PortalThe Customer Relationship Management PortalThe E-Commerce PortalThe Enterprise Resource Planning PortalPortal on VoIP and mobile communication The directory of Clinic IT SolutionsThe directory for IT professionals
homeimprintprivacy policycontactadvertising

Subscribe to the newsletter


Your email:

Quick search