how can i get lead entity notes,attachment via javascript code? can anyone share the code.
*This post is locked for comments
how can i get lead entity notes,attachment via javascript code? can anyone share the code.
*This post is locked for comments
You can use webapi.
You will have to query the annotation entity with a link entity to lead on objected and set the condition to leadid is not null or leadid = a particular value (if you want specific to a particular lead).
Below is a sample of fetchXml:
<fetch mapping="logical" output-format="xml-platform" version="1.0" distinct="false">
<entity name="annotation">
<attribute name="annotationid" />
<attribute name="subject" />
<attribute name="notetext" />
<link-entity name="lead" to="objectid" from="leadid" alias="ab">
<filter type="and">
<condition attribute="leadid" operator="not-null" />
</filter>
</link-entity>
</entity>
</fetch>
You can use webapi with fetchxml:
www.inogic.com/.../execute-fetchxml-using-web-api-in-dynamics-crm-2016
If the code in the link doesn't appear good, click on the toggle plain code button.
Hope this helps.
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,387
Most Valuable Professional
nmaenpaa
101,156