【发布时间】:2016-02-25 00:39:30
【问题描述】:
我在动态 crm 中有一个 temas 列表,我希望在创建 crm 的上下文时只有一个团队的上下文,即该团队无法访问其他团队的记录。
我尝试像这样更改组织代理的 callerID:
//original context
OrganizationServiceContext contextORI = new OrganizationServiceContext(organisationProxy);
//i search th team
team team= (from k in contextORI.CreateQuery<Utilisateur>()
where k.Id == TEAM.Id
select k).FirstOrDefault();
//i change the caller of organisationProxy
this.organisationProxy.CallerId = team .Id;
//i create the new context
OrganizationServiceContext context = new OrganizationServiceContext(organisationProxy);
但团队始终可以访问所有结果
你知道我怎样才能只知道团队的背景吗?
【问题讨论】:
标签: dynamics-crm-2011 dynamics-crm dynamics-crm-2013