使用REST API过滤共享点列表中的日期

问题描述 投票:1回答:1

我刚刚使用Sharepoint Designer 2013创建了工作流程,但出现黄色显示错误

enter image description here

为了使它起作用,我必须在Call HTTP Web Service字符串生成器中进行哪些更改?

问候,埃里奥·费尔南德斯

sharepoint-designer sharepoint-workflow sharepoint-rest-api
1个回答
0
投票

在SharePoint Designer中,通常必须对过滤器中的空格(%20)进行编码,以使它知道不切断URL。同样,在ODATA过滤器比较中,通常最好的做法是用datetime('somedatestringhere')包装日期时间值,以确保将其解释和比较为日期值而不是文本值。

因此,您的URI应该类似于[%Variable: SiteUrl%]_api/web/lists/GetByTitle('<sitelist>')/Items?$filter=Data%20ge%20datetime('[%Variable: DataIni%]')

© www.soinside.com 2019 - 2024. All rights reserved.