function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ASHISHKUMAR SHARMAASHISHKUMAR SHARMA 

URGENT : Can I create a custom field on macros that counts how many times it is clicked? If yes, please help with the steps how to do it?

I want to capture the Counts that How many times the Play button on Macros was clicked?

Please help its urgent
NagendraNagendra (Salesforce Developers) 
Hi Sharma,

For something like this, you would likely need to create some custom fields, and then invoke either javascript or apex from the click of a custom button.  Here is an article that discusses calling JavaScript from clicking a custom button (I could see you doing so by grabbing a field which counts the number of times it's been clicked on a record, adding one to it, then writing it back).

You could do this by Apex as well.

For more information may I suggest you please check with below link from forums community with a similar discussion which might help you further. Please let us know if this helps.

Kindly mark this as solved if the information was helpful.

Thanks,
Nagendra