使用本指南:https://msdn.microsoft.com/en-us/library/mt607719.aspx,我正在尝试创建批处理请求以删除报价上的所有quotedetails.我正在使用jquery的ajax来执行请求:
$.ajax(
{
method: 'POST',
url: 'http://crm/api/data/v8.0/$batch',
headers: {
'Content-Type': 'multipart/mixed;boundary=batch_' + batchId,
'Accept': 'application/json'
},
data: payload
});
Run Code Online (Sandbox Code Playgroud)
这是有效载荷:
–batch_SuL11egVC7
Content-Type:multipart/mixed;boundary=changeset_Sj74vxbGYr
–changeset_Sj74vxbGYr
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID:1
DELETE crm/.../quotedetails(cc9b9ba8-4570-e611-80ba-0050568a6c2d) HTTP/1.1
Content-Type: application/json;type=entry
–changeset_Sj74vxbGYr
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID:2
DELETE crm/.../quotedetails(cd9b9ba8-4570-e611-80ba-0050568a6c2d) HTTP/1.1
Content-Type: application/json;type=entry
–changeset_Sj74vxbGYr--
-batch_SuL11egVC7--
Run Code Online (Sandbox Code Playgroud)
我没有收到错误,但引号细节没有删除.这是回应:
--batchresponse_a3304387-0e91-4097-b9f8-a207da3aa845--
Run Code Online (Sandbox Code Playgroud)
我也找到了这个例子,我试图用Postman复制它:批量请求 - Dynamics CRM
头:
Content-Type:multipart/mixed;boundary=batch_123456
Accept:application/json
Odata-MaxVersion:4.0
Odata-Version:4.0
Run Code Online (Sandbox Code Playgroud)
身体:
–-batch_123456
Content-Type:multipart/mixed;boundary=changeset_123457
–-changeset_123457
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID:1
POST http://onpremisesurl/api/data/v8.0/accounts HTTP/1.1
Content-Type:application/json;type=entry
{name: 'batch acount 1'}
–-changeset_123457
Content-Type:application/http
Content-Transfer-Encoding:binary
Content-ID:2
POST http://onpremisesurl/api/data/v8.0/accounts HTTP/1.1
Content-Type:application/json;type=entry
{name: …
Run Code Online (Sandbox Code Playgroud) 我正在制定一个向Azure存储队列发布消息的方案.出于测试目的,我开发了一个控制台应用程序,我收到消息,我可以通过尝试计数更新它,当逻辑完成后,我删除了消息.
现在我正在尝试将我的代码移植到Azure功能.有一点似乎是非常不同的是,当调用Azure函数时,消息将从队列中删除.
我发现很难找到关于这个特定主题的任何文档,我觉得我错过了关于将这两者结合起来的概念.
我的问题: