Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Not able to fetch Annotation(Note) associated to record.

(0) ShareShare
ReportReport
Posted on by 595

Hi,

I have a requirement saying that I have to show some ribbon button if the particular record contains not attached for this, I have done enable rule using javascript

Please help me to achieve this...

For your reference, I have attached code below

async function ExtractHeader(primaryControl) {
'use strict';

let formContext = primaryControl;

var id=formContext.data.entity.getId();
Console.log("before submit value");
let Extracted = formContext.getAttribute("sysia_extracted").getValue();
let issubmit = formContext.getAttribute("sysia_submit").getValue();
Console.log("after submit value");
let options = "?$select=annotationid&$filter=_objectid_value eq "${id}";
let result=await Xrm.WebApi.retrieveRecord("annotation",options);

if (result!=null&&Extracted == false && issubmit == false)
return true;
else
return false;

}

  • Suggested answer
    RE: Not able to fetch Annotation(Note) associated to record.

    Hi,

    Please check the JS Function on community.dynamics.com/.../retrieving-annotation-from-quote-form-with-javascript-api-call-keeps-returning-http400-error

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans