Is there a way to add notes with attachments to an custom entity?
I am using the below code from (Create Notes with Attachment using Web API in Dynamics 365 - Nebulaa IT Solutions | Nebulaa IT Solutions)
var note = {}; note.subject = "Notes Subject"; note.notetext = "Notes Text"; note.filename = "FileName.txt"; note.documentbody = "Base64String"; note["objectid_contact@odata.bind"] = "/contacts(00000000-0000-0000-000000000000)"; Xrm.WebApi.createRecord("annotation", note).then( function success(result) { alert("Success"); }, function(error) { alert(error.message); }); But i get error Xrm error. I know it is depricated, But Xrm.WebApi.offline shoudl work, but i does not Xrm.WebApi.offline (Client API reference) in model-driven apps - Power Apps | Microsoft Learn I am lost, any help is apperciated.