简体   繁体   English

Power Automate 从 Project Online 和筛选器中获取数据

[英]Power Automate get data from Project Online and Filter

I am using "Send an HTTP Request to Sharepoint" action, and I want to filter the output to only include the project with ID = [user input filed in "Manually trigger a flow"]我正在使用“向 Sharepoint 发送 HTTP 请求”操作,并且我想过滤 output 以仅包含 ID = [用户输入在“手动触发流程”中提交的项目]

My Uri seems to not be working and can't find errors;我的 Uri 似乎无法正常工作并且找不到错误; I have used this action before with no problems, can't figure what syntax (?) problem I may have?我以前用过这个动作没有问题,不知道我可能有什么语法(?)问题?

Here is the Uri:这是Uri:

_api/ProjectData/Projects()?$Filter=ProjectUID eq '@{variables('proj id')}'&?Select=ProjectName,ProjectWorkspaceInternalUrl,ProjectUID,ProjectIdentifier

Can anyone spot the problem?: Thanks so much in advance :)任何人都可以发现问题吗?:提前非常感谢:)

For the URI try the following instead:对于 URI,请尝试以下操作:

/_api/ProjectData/Projects()?$filter=ProjectId eq guid'xxxxx' &$Select=ProjectName,ProjectWorkspaceInternalUrl,ProjectId,ProjectIdentifier /_api/ProjectData/Projects()?$filter=ProjectId eq guid'xxxxx' &$Select=ProjectName,ProjectWorkspaceInternalUrl,ProjectId,ProjectIdentifier

where xxxx is your project id or in this case @{variables('proj id')}其中 xxxx 是您的项目 ID,或者在这种情况下为 @{variables('proj id')}

It makes it easier to deal with the data as it doesn't return an array.它使处理数据变得更容易,因为它不返回数组。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM