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!
Thanks that worked!!
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
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 Mansi Soni as our August 2025 Community…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 100 Super User 2025 Season 2
Suresh Kulla 72 Super User 2025 Season 2
DAnny3211 54