Wednesday, July 11, 2012

How to set status Completed in Phone call in CRM 2011?

Introduction;

                       I am going to show you how to set status of Phone call in CRM 2011.For that first you have to create the Phone call activities and then after you can set the status of that Phonecall.That means First create a Phone call and then after you set the status of that Phone call.

    SetStateRequest stateform = new SetStateRequest();
    stateform.EntityMoniker = new EntityReference();
    stateform.EntityMoniker.LogicalName = "phonecall";
    stateform.EntityMoniker.Id = new Guid(accid.ToString()); //This is activityId of that Phone call.
    stateform.State = new OptionSetValue(1);
    stateform.Status = new OptionSetValue(2);

If you want to check more status code about phone call or any Entity then Click on this URL.
http://rc.crm.dynamics.com/rc/regcont/en_us/op/articles/statestatus.aspx
                      

No comments:

Post a Comment