locked
How to access Subject, NoteText in a plugin which will fire on Create CRM 2011 RRS feed

  • Question

  • Hi Techies,

    I am trying to create plugin which should copy the note to particular Object Id's Parent Object on create of Note.

    I want this plugin to fire on create of Note. once it is started i want to capture Object Id , Subject , NoteText from the Input Paramters.

    Here is the code what i have written.

    entity = (Entity)context.InputParameters["Target"];  
    EntityReference _ObjectId = (EntityReference)entity.Attributes["objectid"];
      NoteSubjectFromCall = context.InputParameters["subject"].ToString();
      NoteTextFromCall = context.InputParameters["notetext"].ToString();

    Will it work? If not , Can any one suggest me code snippet.

    Thanks,

    Sreeni Pavalla


    Friday, April 6, 2012 12:59 PM

Answers

All replies