i cant create activity with using webservice pls help !

คำตอบ i cant create activity with using webservice pls help !

  • 13 มีนาคม 2551 10:09
     
     

     

    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?

     

ตอบทั้งหมด

  • 13 มีนาคม 2551 10:52
     
     คำตอบ

     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

    • ทำเครื่องหมายเป็นคำตอบโดย DavidJennawayMVP, Moderator 27 มีนาคม 2552 16:35
    •  
  • 14 มีนาคม 2551 12:52
    ผู้ดูแล
     
     

    Yes you can, create Task and then assign activitypointer as it.

     

    Regards,

    Imran

    http://microsoftcrm3.blogspot.com