当前位置: 首页 > 知识库问答 >
问题:

通过REST从SharePoint Web Services获取用户信息不工作

百里意智
2023-03-14
<QueryOptions><ExpandUserField>TRUE</ExpandUserField></QueryOptions>
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
    <soap12:Body>
        <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
            <listName>blahblah</listName>
            <query>
                <Query>
                    <Where>
                        <And>
                            <Eq>
                                <FieldRef Name='result' />
                                <Value Type="Text">Relationship declined</Value>
                                </Eq>
                            <Eq>
                                <FieldRef Name='Tracking_x0020_performed' />
                                <Value Type="Text">Open</Value>
                            </Eq>
                        </And>
                    </Where>
                  <QueryOptions><ExpandUserField>TRUE</ExpandUserField></QueryOptions>
                </Query>
            </query>
            <viewFields>
                <ViewFields xmlns="">   </ViewFields>
            </viewFields>
            <rowLimit>5000</rowLimit>    
        </GetListItems>
    </soap12:Body>
</soap12:Envelope>

共有1个答案

叶德运
2023-03-14

我自己解决的。

对于所有感兴趣的人来说,这才是正确的做法:

<queryOptions>
   <QueryOptions>
      <ExpandUserField>TRUE</ExpandUserField>
   </QueryOptions>
</queryOptions>

此外,它必须刚好低于“getListItems”级别--因此与“listname”和“query”处于同一级别。

 类似资料:
  • 通过该接口可以获取指定用户的账户信息,地址为: http://spark.bokecc.com/api/user 需要传递以下参数: 参数 说明 userid 用户id,不可为空 format 返回格式,xml 或json 返回数据user包含如下字段: 字段名 说明 account 用户账户 version 版本信息 expired 到期时间 space 用户空间信息 traffic 用户流量信

  • 问题内容: 我得到的错误: 下面的代码,我正在使用: 直到这里,我得到了刷新令牌,访问令牌等 它在以下行失败:(不知道,为什么?) 我在网上搜索过,但很少看到它的示例和稀有资料。任何机构都有想法吗? 我究竟做错了什么? 问题答案: 我猜 credential.getRequestInitializer() 为空。 我已经通过将自定义请求初始化程序设置为凭证对象来解决了此问题 Google的文档规定

  • 主要内容:使用反射值对象包装任意值,从反射值对象获取被包装的值当我们将一个接口值传递给一个 reflect.ValueOf 函数调用时,此调用返回的是代表着此接口值的动态值的一个 reflect.Value 值。我们必须通过间接的途径获得一个代表一个接口值的 reflect.Value 值。 reflect.Value 类型有很多方法( https://golang.google.cn/pkg/reflect/)。我们可以调用这些方法来观察和操纵一个 ref

  • QN.user.getInfo(options) 获取用户信息 响应 名称 类型 是否必须返回 含义 result Object 响应对象 result.errorCode Number 错误码,成功为0,失败为非0 result.errorMsg String 错误信息 result.user_id String 用户的数字id result.user_nick String 用户用户名 res