任何人都知道如何使用CRM Web API创建“注释”。 我可以创建其他对象,例如帐户和联系人,但是注释附件是无关的。似乎我的对象缺少某些东西。
JObject notes = null;
notes = new JObject();
notes["isdocument"] = true;
notes["objecttypecode"] = "mfr_ownermlslistingwaiver";
notes["[email protected]"] = "/systemusers(E94126AC-64FB-E211-9BED-005056920E6D)";
notes["owneridtype"] = 8;
notes["documentbody"] = "/9j/4VmjRXhpZgAASUkqAAgAAAANAAABBAABAAAAIBAAAAEBB...";
notes["minetype"] = "image/jpeg";
notes["filename"] ="2213 Scrub Jay Rd.jpg";
notes["[email protected]"] = "/mfr_ownermlslistingwaivers(137C660B-ADAA-E711-80CD-005056927DF7)";
HttpResponseMessage createResponse =
await httpClient.SendAsJsonAsync(HttpMethod.Post, "annotations", notes);
中的错字
2。单个有价值的导航属性 -
[电子邮件保护]
,应该是objectid_ [entity]@odata.bind
必要的属性应如下所示:
note["notetext"] = "Invoice Report Attached"
note["subject"] = "Invoice";
note["filename"] = "Invoice.pdf";
note["mimetype"] = "application/pdf";
note["[email protected]"] = "/accounts(C5DDA727-B375-E611-80C8-00155D00083F)";
note["documentbody"] = [base64String];
和similarthread
我创建了一个表xyz的问题是,当我更改下面的帐户的逻辑名称时,我会收到500个内部服务器错误,当我在代码中评论该行时,有效载荷上传的其余部分。
note["
[email protected]"]