locked
email is being created twice in mscrm 2011 online through plugin RRS feed

  • Question

  • Dear All;

    i am writing the simple plugin to create email plugin is creating the email but it is being created twice  here is my code

    Guid regardingobjectid = new Guid(courses.Id.ToString());
                    string regardingobjectidType = courses.LogicalName;
                    Entity oemail = new Entity("email");
                    oemail["regardingobjectid"] = new EntityReference(regardingobjectidType, regardingobjectid);
                    oemail["description"] = "hi";
                     service.Create(oemail);

    Monday, June 25, 2012 9:18 AM

Answers

  • Hi Anwar,

    Make sure there is no other process that is initiating your plugin


    Conatact Me
    Follow me on Twitter
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    • Marked as answer by anwar_addi Friday, July 13, 2012 1:03 PM
    Wednesday, June 27, 2012 9:34 AM

All replies

  • Hi Anwar,

    Make sure there is no other process that is initiating your plugin


    Conatact Me
    Follow me on Twitter
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    • Marked as answer by anwar_addi Friday, July 13, 2012 1:03 PM
    Wednesday, June 27, 2012 9:34 AM
  • hi ia m registering the plugin on filter attributes on update of a form i have another plugin that is register on update of a form but the sending email plugin should run when i update the field which i have select in the plugin step registration for sending  email  but i think the filter attribute is not working 
    Wednesday, June 27, 2012 11:37 AM