web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Is there a way to detect when a Note added

(0) ShareShare
ReportReport
Posted on by 2,510

Is there a way to detect when a Note, Task, Call or Activity is added on a Dynamics CRM 365 form using Javascript?

*This post is locked for comments

I have the same question (0)
  • ashlega Profile Picture
    34,477 on at
    RE: Is there a way to detect when a Note added

    That's why if you add a condition, it will be triggered, but there will be nothing in the Regarding(Hearing)->Hearing, so, whatever steps you have under that condition won't run

  • sdnd2000 Profile Picture
    2,510 on at
    RE: Is there a way to detect when a Note added

    I am afraid it is also triggered by other entity notes

  • Verified answer
    ashlega Profile Picture
    34,477 on at
    RE: Is there a way to detect when a Note added

    Just add a condition to see if Regarding(Hearing)->Hearing contains data..

  • sdnd2000 Profile Picture
    2,510 on at
    RE: Is there a way to detect when a Note added

    Hi, Neil,

    If I do with workflow, how do I know the created notes are for the entity I want,

    2117.2017_2D00_08_2D00_29_5F00_0929_5F00_001.png

  • Suggested answer
    Neil Parkhurst Profile Picture
    10,727 User Group Leader on at
    RE: Is there a way to detect when a Note added

    Probably not easily done with JavaScript! One of your challenges of using JavaScript on the parent entity form will be that an activity could be added without opening the form. Meaning your code would not get triggered. (Even if you find a creative way to check activities have been created.)

    But depending on your requirement you could have a workflow(s) that are triggered on the create of new notes / activities. Then update the regarding entity as required. Maybe with the date / time of the last activity or something.

  • Suggested answer
    prt33k Profile Picture
    6,907 on at
    RE: Is there a way to detect when a Note added

    There is no event triggered when you add notes/task/phonecall using social pane so you wont be able to trigger a JS on notes/task creation.

  • David Jennaway Profile Picture
    14,065 on at
    RE: Is there a way to detect when a Note added

    I can't think of a simple way to do this.

    One possibility is you could write some code that queries CRM to count the current number of notes and activities linked to the current record. Call this when the form is opened, and store the results. Then call the code again after a timeout, and compare the results with the previous call.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans