locked
i cant create activity with using webservice pls help ! RRS feed

  • Question

  •  

    when i want to create a activitypointer;i use this code block but :!!!

     

    activitypointer aP = new activitypointer();

    aP.activityid = new Key();

    aP.activityid.Value = new Guid(activityid);

    aP.activitytypecode = new EntityNameReference();

    aP.activitytypecode.Value = activitytype;

    aP.createdby = new Lookup();

    aP.createdby.Value = new Guid(createdby);

    aP.createdon = new CrmDateTime();

    aP.createdon.Value = createdon;

    aP.statuscode = new Status();

    aP.statuscode.Value = Convert.ToInt16(statuscode);

    aP.regardingobjectid = new Lookup();

    aP.regardingobjectid.Value = new Guid(regardingobje);

    aP.description = description;

    aP.subject = subject;

    Guid activity = servis.Create(aP);

     

    i recieve this error:

    0x80040800   The method being invoked does not support provided entity type. Platform

     

    Some entities cant be create by this method ? is any other method to add a new activity?

     

    Thursday, March 13, 2008 10:09 AM

Answers

  •  Hello Onur,

     

    ActivityPointers are managed by the CRM to provide a consistent look at the different sorts of activities ( serviceappointment, mail, task ... ). No need to create them "manually".

     

    Try it more straightforward and create a "task" or one of the other entities directly. You can find a listing of the available activity entities by looking at the filter dropdown in the activity list ( in e.g. my activities ).

     

    Kind regards,

    Markus

    Thursday, March 13, 2008 10:52 AM

All replies

  •  Hello Onur,

     

    ActivityPointers are managed by the CRM to provide a consistent look at the different sorts of activities ( serviceappointment, mail, task ... ). No need to create them "manually".

     

    Try it more straightforward and create a "task" or one of the other entities directly. You can find a listing of the available activity entities by looking at the filter dropdown in the activity list ( in e.g. my activities ).

     

    Kind regards,

    Markus

    Thursday, March 13, 2008 10:52 AM
  • Yes you can, create Task and then assign activitypointer as it.

     

    Regards,

    Imran

    http://microsoftcrm3.blogspot.com

     

     

    Friday, March 14, 2008 12:52 PM
    Moderator