Answered by:
Plugin issue for contact Entity.

Question
-
Hiii
I am new in MS dynomic CRM. I am facing problem in plugin for contact. the code is
Entity task = new Entity("task");
task["subject"] = "Address1 number is missing";
task["regardingobjectid"] = new EntityReference("contact", new Guid(context.OutputParameters["id"].ToString()));
// task["description"] = "Account number is missng for the following account. Please enter the account number";
task.Attributes.Add("description", "Address is missng for the following student. Please enter the Address");
service.Create(task);when I debug the plug in I got fallowing exception.
{"Contact With Id = bee55613-0e71-e211-b641-1cc1de6e5b11 Does Not Exist"}
kindly help me to overcome this issue.. :)
Thursday, February 7, 2013 10:14 AM
Answers
-
thanks Andrii Butenko
I have deleted the plugin(from visual studio + crm sdk) and create again. Now its working.
thanks again.
- Marked as answer by Andrii ButenkoMVP, Moderator Thursday, February 7, 2013 1:08 PM
Thursday, February 7, 2013 12:59 PM
All replies
-
when this plugin will trigger? If its on Contact creation, while debugging you will get this exception, because contact record won't exist in CRM with that GUID.
can you please provide more details of the issue/error details?
Guru Prasad
Thursday, February 7, 2013 10:22 AM -
Thursday, February 7, 2013 10:25 AMModerator
-
Hi,
Provide your plugin registration details, and if you have registered your pluin on contact precreate then try to change it to postcreate.
Contact Me
Follow me on Twitter
My Facebook Page
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.- Proposed as answer by Reddy A Thursday, February 7, 2013 3:51 PM
Thursday, February 7, 2013 10:25 AMModerator -
thanks Guru Prasad
I have deleted the plugin(from visual studio + crm sdk) and create again. Now its working.
thanks again.
Thursday, February 7, 2013 12:59 PM -
thanks Andrii Butenko
I have deleted the plugin(from visual studio + crm sdk) and create again. Now its working.
thanks again.
- Marked as answer by Andrii ButenkoMVP, Moderator Thursday, February 7, 2013 1:08 PM
Thursday, February 7, 2013 12:59 PM -
thanks Mahender
I have deleted the plugin(from visual studio + crm sdk) and create again. Now its working.
thanks again.
Thursday, February 7, 2013 1:00 PM -
Hello mahender pal i also tried the same plug-in on message :create,pre-operation
and i changed it to post-operation it start working
my queries is----
Message :create ,pre-operation ---we cannot update the entity (because in plug-in am updating the entity i got the same error) why am getting the error on pre-operation i cannot change the values in the database.
please guide on this ...want functionality is going around this.
ms crm
Thursday, February 7, 2013 3:57 PM