Count based on action performed

Posted by mysteryminds on 12-Dec-2014 17:39

I need to create a field that tracks every time a user performs a certain action in a page / view.

(e.g : when user clicks on a button "SEND MAIL" - I wish to see how many times users have clicked SEND MAIL till date.

I need it to COUNT how many times that user performs that action

Posted by Orchid Corpin on 15-Dec-2014 09:30

Hi,

If this is a workflow action you can do the steps below:
- Create a trigger to update field value (integer field). Trigger has no timing and returns like the code below

return parseInt("{!Counter}") + 1;

- In your workflow action specify to run the trigger so every time a user click on that action it will fire the trigger.

Hope this may help.

Regards,
Orchid

All Replies

Posted by Orchid Corpin on 15-Dec-2014 09:30

Hi,

If this is a workflow action you can do the steps below:
- Create a trigger to update field value (integer field). Trigger has no timing and returns like the code below

return parseInt("{!Counter}") + 1;

- In your workflow action specify to run the trigger so every time a user click on that action it will fire the trigger.

Hope this may help.

Regards,
Orchid

This thread is closed