Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Create new note (annotation) using JavaScript

Posted on by Microsoft Employee

Hi experts,

In the case record, there is an out of the box social pane which shows a "notes" tab. 

I have a custom optionset field called new_activitycode. The value that the user selects in this optionset should be appended to the title when the user creates a note for the record (on click of "done" button).

Screen-Shot-2018_2D00_04_2D00_11-at-4.00.49-PM.png

How can I accomplish this using Javascript? Any help / sample code would be appreciated as I'm a rookie at Scripting. 

Thanks,

Jon

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create new note (annotation) using JavaScript

    Hi Arpit,

    I tried it using your plugin code and registered it using the plugin registration tool as well (I also followed your post for logging in to plugin registration tool as i was unable to login :)).

    However it doesn't seem to be working. I'll post my code and screenshots in my other post for your reference.

    Thanks,

    Jon

  • Arpit Shrivastava Profile Picture
    Arpit Shrivastava 7,518 User Group Leader on at
    RE: Create new note (annotation) using JavaScript

    Hi Jon,

    Was it not working with Plugin code I shared earlier?

    -Arpit

  • Suggested answer
    Rajkumar Rajaraman Profile Picture
    Rajkumar Rajaraman 18,108 on at
    RE: Create new note (annotation) using JavaScript

    You can refer this:

    scaleablesolutions.com/upload-notes-attachments-using-javascript-and-rest

    Hope this helps

    Please mark answer as verified if you found helpful

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans