CRM 2011でデータをクエリしようとしていますが、ActivityPartyに参加する必要があります。良いドキュメントが見つからないようです。誰かが以前にこれをしたことがありますか。これはこれまでの私の質問です:
var linqQuery = (from r in gServiceContext.CreateQuery("campaignresponse")
join c in gServiceContext.CreateQuery("contact") on ((EntityReference)r["customer"]).Id equals c["contactid"] into opp
join a in gServiceContext,CreateQuery("lead") on ((EntityReference)r["customer"]).Id equals c["leadid"] into opp
from o in opp.DefaultIfEmpty()
where ((EntityReference)r["new_distributorid"]).Id.Equals(lProfileProperty.PropertyValue) && ((OptionSetValue)r["new_distributorstatus"]).Equals("100000002")
select new
{ }
したがって、クエリを見ると、私がやろうとしているのは、顧客フィールドを介して連絡先エンティティとリードエンティティをCamapaignResponseに参加させることであり、顧客フィールドはActivityPartyフィールドです。これを行う方法についてのアイデアはありますか?ありがとう!