积极答复者
普通用户使用Web服务执行FetchExpression 查询查不到数据?

问题
-
代码如下,我用户普通角色用户高级查找得到的FetchXML,在系统中也能查找不到管理员,普通角色用户执行以下程序中就查不出数据
当我改用管理员执行代码的时候又可以查出数据了,请问普通角色用户执行这个代码需要的权限是什么?
//使用高级查找下载的FetchXML string fetchxml = string.Format(@"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'> <entity name='systemuser'> <attribute name='fullname' /> <attribute name='businessunitid' /> <attribute name='title' /> <attribute name='address1_telephone1' /> <attribute name='systemuserid' /> <order attribute='fullname' descending='false' /> <link-entity name='systemuserroles' from='systemuserid' to='systemuserid' visible='false' intersect='true'> <link-entity name='role' from='roleid' to='roleid' alias='aa'> <filter type='and'> <condition attribute='name' operator='eq' value='系统管理员' /> </filter> </link-entity> </link-entity> </entity> </fetch>"); FetchExpression fetch = new FetchExpression(fetchxml); EntityCollection entities = slos.RetrieveMultiple(fetch);
windows live Id :hellohongfu@hotmail.com
- 已编辑 王红福 2012年7月21日 0:48 已解决