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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,912 Super User 2024 Season 2
Martin Dráb 229,355 Most Valuable Professional
nmaenpaa 101,156