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
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
I am afraid it is also triggered by other entity notes
Just add a condition to see if Regarding(Hearing)->Hearing contains data..
Hi, Neil,
If I do with workflow, how do I know the created notes are for the entity I want,
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.
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.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
HR-09070029-0 2
ED-30091530-0 1