SPD 2013 WF动态REST URI失败 [英] SPD 2013 WF Dynamic REST URI failure
问题描述
SharePoint 2013托管
SharePoint Designer 2013
SharePoint 2013工作流
SharePoint 2013 Hosted
SharePoint Designer 2013
SharePoint 2013 Workflow
使用变量创建URL
设置变量:sFilter ="..."
设置变量:sURL ="https://... [%Variable:sFilter%]"
通话变量:sURL ...
Set Variable: sFilter = "..."
Set Variable: sURL = "https:// ... [%Variable:sFilter%]"
Call Variable: sURL ...
我的URL需要过滤器,因此最终URL看起来像这样:
My URL needs a filter, so the final URL looks like this:
https://MySiteName.sharepoint.com/_api/Lists/getbyId('61935D5F-10A1-4D87-BE53-E66B9608AB40')/items?$ filter =(YearLUYearTxtId eq 6和MonthLUMonthCodeId eq 1和SiteId eq 37)
https://MySiteName.sharepoint.com/_api/Lists/getbyId('61935D5F-10A1-4D87-BE53-E66B9608AB40')/items?$filter=(YearLUYearTxtId eq 6 and MonthLUMonthCodeId eq 1 and SiteId eq 37)
问题从出现第一个空格的地方开始.在这种情况下,它在这里:"... YearLUYearTxtId eq ...". (我将URL发布到日志中,然后将其复制并粘贴到新的浏览器中.如果运行它,它将失败,但是如果删除该字符并放置一个空格, 返回,查询将正确执行.)
The problem starts where the first blankspace occurs. In this case, it's here: "...YearLUYearTxtId eq...". (I post the URL to the log, copy and paste it to a new browser. If I run it, it fails, but if I delete that character and put a blankspace back in, the query will execute properly.)
更新:插入的字符是Ascii 160
Update: The char that is inserted is Ascii 160
我曾尝试用& nbsp替换所有空格,但这引起了另一个错误,我不想去追究.
I have tried replacing all of the blankspaces with  , but that caused another error that I didn't bother to chase.
有任何线索吗?
推荐答案
答案是...使用加号(+)填充空格.
The answer is... use the plus(+) symbol to fill the spaces.
filter =(YearLUYearTxtId + eq + 6 + and + ...
filter=(YearLUYearTxtId+eq+6+and+...
这篇关于SPD 2013 WF动态REST URI失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!