- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
有如何调用AddListMembersList
的示例吗?我尝试过:
let data = {
"MemberIds": [500aa55d-f0c2-e711-80ca-005056bb6cde, 500aa55d-f0c2-e711-80ca-005056bb6cd, 500aa55d-f0c2-e711-80ca-005056bb6cde]
};
http.post(this.baseUrl + 'lists(770aa55d-f0c2-e711-80ca-005056bb6cde)/Microsoft.Dynamics.CRM.AddListMembersList', data);
但我收到错误:
"error":{ "code":"","message":"Request message has unresolved parameters.","innererror":{ "message":"Request message has unresolved parameters.","type":"Microsoft.Crm.CrmHttpException","stacktrace":" bei Microsoft.Crm.Extensibility.OData.CrmODataRoutingConvention.SelectAction(ODataPath odataPath, HttpControllerContext controllerContext, ILookup`2 actionMap)\r\n bei System.Web.OData.Routing.ODataActionSelector.SelectAction(HttpControllerContext controllerContext)\r\n bei System.Web.Http.ApiController.ExecuteAsync(HttpControllerContext controllerContext, CancellationToken cancellationToken)\r\n bei System.Web.Http.Dispatcher.HttpControllerDispatcher.d__1.MoveNext()"
有什么建议吗?
最佳答案
确切的答案可以在这里找到:http://butenko.pro/2018/03/01/how-to-add-records-to-marketing-list-using-webapi/
从链接调整为我的示例:
var data = {
List: {
listid: "9DEE7D76-611D-E811-A95B-000D3A1087A0",
"@odata.type": "Microsoft.Dynamics.CRM.list"
},
Members: [{
accountid: "6785A521-A2C0-E711-A950-000D3A109280",
"@odata.type": "Microsoft.Dynamics.CRM.account"
},
{
accountid: "3653A521-A2C0-E711-A950-000D3A109280",
"@odata.type": "Microsoft.Dynamics.CRM.account"
}]
};
this.http.post(this.baseUrl + 'AddListMembersList', data);
关于javascript - Dynamics CRM 365 WebApi 8.2 AddListMembersList 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49052997/
有如何调用AddListMembersList的示例吗?我尝试过: let data = { "MemberIds": [500aa55d-f0c2-e711-80ca-005056bb
我是一名优秀的程序员,十分优秀!