<?xml version="1.0" encoding="UTF-8" "Content-Type: text/html; charset=UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Nebulaa IT Solutions</title>
<atom:link href="https://nebulaaitsolutions.com/feed/" rel="self" type="application/rss+xml" />
<link>https://nebulaaitsolutions.com/</link>
<description>Dynamics 365 | Power Platform | Power BI</description>
<lastBuildDate>Tue, 09 May 2023 12:16:31 +0000</lastBuildDate>
<language>en-US</language>
<sy:updatePeriod>	hourly </sy:updatePeriod>
<sy:updateFrequency> 1 </sy:updateFrequency>
<admin:generatorAgent rdf:resource="http://www.codeigniter.com/" />
<item>
				<title>Create Notes with Attachment using Web API in Dynamics 365</title>
				<link>https://nebulaaitsolutions.com/blog/create-notes-with-attachment-using-web-api-in-dynamics-365</link>
				<comments>https://nebulaaitsolutions.com/blog/create-notes-with-attachment-using-web-api-in-dynamics-365</comments>
				
				
				<dc:creator><![CDATA[Nebulaa IT Solutions Blogger]]></dc:creator>
				<pubDate>Thu, 07 Apr 2022 07:42:59 +0530</pubDate>
<category><![CDATA[Dynamics 365]]></category>
<category><![CDATA[Dynamics 365 Web Api]]></category>
<category><![CDATA[Dynamics-365 Sales]]></category>
<guid isPermaLink="false">https://nebulaaitsolutions.com/blog/create-notes-with-attachment-using-web-api-in-dynamics-365</guid>

				<description><![CDATA[<p>Create Notes with Attachment using Web API in Dynamics 365


Create Notes record with Attachment for Contact Entity


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);

});




Note:-


 While setting object ID or regrading lookup we have to specify entity name with field schema name


for e.g. objectid_account@odata.bind


 documentbody value should be converted to Base64String</p>]]></description>
				<content:encoded><![CDATA[
<p><strong>
<p>Create Notes record with Attachment for Contact Entity</p>
<p>Note:-</p>
<p>for e.g. objectid_account@odata.bind</p>]]></content:encoded><strong></p>;
							
				<wfw:commentRss>https://nebulaaitsolutions.com/blog/create-notes-with-attachment-using-web-api-in-dynamics-365/feed/</wfw:commentRss>
			</item>
</channel>
	</rss>