project online get approvals task data 获取审批待办任务接口

Posted Larryle

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了project online get approvals task data 获取审批待办任务接口相关的知识,希望对你有一定的参考价值。

调用接口地址:重要 http://xxxx/sites/pwa/_vti_bin/PSI/ProjectServer.svc

Header 三个必要参数:

其中SOAPAction写死就行,如果是online就要用SharePointOnlineCredentials授权,Server版用NetworkCredential授权

Post数据包含调用接口相关参数:

复制代码
<?xml version=\'1.0\' encoding=\'UTF-8\'?>
<soap:Envelope xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\' xmlns:xsd=\'http://www.w3.org/2001/XMLSchema\'
    xmlns:soap=\'http://schemas.xmlsoap.org/soap/envelope/\'>
    <soap:Body>
        <StatusingReadStatusApprovalsForProjectForGridJson2 xmlns=\'http://schemas.microsoft.com/office/project/server/webservices/PWA/\'>
            <gridSerializerArgs>
                <SortColumnNames></SortColumnNames>
                <SortColumnOrders></SortColumnOrders>
                <GroupColumnNames></GroupColumnNames>
                <ShowTimeWithDates>false</ShowTimeWithDates>
                <PagingInfo>
                    <string>FirstVisible:40</string>
                </PagingInfo>
                <RequestType>0</RequestType>
            </gridSerializerArgs>
            <fromDate>\'\\/Date(1534032000000)\\/\'</fromDate>
            <toDate>\'\\/Date(1541980800000)\\/\'</toDate>
            <durationFormat>5</durationFormat>
            <workFormat>2</workFormat>
            <filter>0</filter>
        </StatusingReadStatusApprovalsForProjectForGridJson2>
    </soap:Body>
</soap:Envelope>
复制代码

返回数据如下图:

 

以上是关于project online get approvals task data 获取审批待办任务接口的主要内容,如果未能解决你的问题,请参考以下文章

SharePoint Online 开发:创建一个基于节点的Project

不使用 SharePointOnlineCredentials 的 Project Online CSOM

Creative Project: Sunlight Chat v. Sunny light Online

ORA-06512: at "SYS.XMLTYPE" 问题记录

Create and test an approval workflow with Microsoft Flow

新巴巴运动网上商城 项目 快速搭建 教程 The new babar sports online mall project quickly builds a tutorial