Adding new participant to Event

Options
Hi, I am Jeff who is working in RE plugin products. I am seeing a strange exception in RE API when adding a new participant to an Event CParticipant part = new CParticipantClass(); //create a new particapant object part.Init(session);//initilise with RE session part.set_Fields(EParticipantsFields.Participants_fld_ConstituentID, ContactID); //Set the participant constituentID with RE_ID part.set_EventObject(CurrentEvent);// add participant to the current special event object part.Save(); Now I am getting COM exception :Required Field Missing: Name OK, then I set the name part.set_Fields(EParticipantsFields.Participants_fld_Name, "pqr"); Now on part.Save(), it leads to another exception "Name is ReadOnly" Could you please check and let me know the solution ? Regards, Jeff

Categories