locked
campaign associated with Campaign Activity records while change the status RRS feed

  • Question

  • Hi,

    I am trying to find  the count of campaign associated with Campaign activities  with status.

    i used the following query expression

    Campaing Activity status
                            QueryExpression campaingActivity = new QueryExpression();
                            campaingActivity.ColumnSet = new ColumnSet(true);
                            campaingActivity.EntityName = DataAccess.CrmEntities.CampaignActivity.EntityLogicalName;
                            campaingActivity.Criteria.AddCondition(new ConditionExpression("regardingobjectid", ConditionOperator.Equal, CampaignID));

                            EntityCollection campaignActivityeCollection = service.RetrieveMultiple(campaingActivity);

     its saying that campaign id is not matching with the campaign activity (regarding object id). 

    I had checked with in  regarding object id is  releated with BookableResourceBooking 

    can you please suggest on this.. 

    Friday, October 20, 2017 12:31 PM