Notifications
Announcements
No record found.
Hello,
I have a request to show an error message when a ribbon button is clicked.
This error message should only appear when there is less than 4 appointments/interactions against this record.
I am unsure on how to get this record count so I can conditionally show this error message.
Any ideas?
Thanks!
Hi partner,
It is possible to query the related appointments according to the current record form.
We just need to get the current record id and use web api to query the related activities according to regording field.
Here are the sample code for you.
Pay attention that the "Regarding" field should be used as "_regardingobjectid_value" when filter it in web api.
Hope it helps.
Best Regards,
Leo
Thanks that worked!!
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 Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 61 Super User 2025 Season 2
Siv Sagar 52 Super User 2025 Season 2
Daniyal Khaleel 42 Most Valuable Professional