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
Srinivas Bandi 4Srinivas Bandi 4 

Record count on account


HI, 

I have a requirement where we need to send the survey to a user on every 10th ticket raised by the user.  
Custome object has lookup to Account and User object.

How can I achieve this?
Thanks 



 
Marcelo CostaMarcelo Costa
Hi Srinivas,
It's a little difficult to suggest a solution not knowing your scenario in detail, but one way:
You can hve a trigger on after ticket creation that would check the number of tickets for that user.
you can check then if  Math.mod(numberOfTickets, 10) ==0;
if that condition is true, you start the survey process...
Good Luck.