Skip to main content

Hi Guys

 

I need to put some sort of counter on a  custom page I have created but I am unsure what to do as I haven’t don’t anything like this before and am wondering if anyone has any suggestions of ways to do it,

What needs to happen is when a user submits a approval process to another user some sort of counter needs to start to track how many days it has been waiting for approval and when it has been accepted it stops counting, so we can run reports on this and managers can chase up users and find out why they have not approved/rejected things, any suggestions would be greatly appreciated, hope this makes sense :P

 

Thanks

 

James

 

approval process field counter ideas?
1 respuesta
  1. 19 jun 2011, 00:00
    I did have a quick look to see ways around how this could work. It was a long short but there was a slim chance you could override the "Submit for Approval" and "Aprove/Reject" buttons to start and stop a timer but you cant for those buttons.

     

    So idea number 2:

     

    If you are locking the record during the approval proess the field "isLocked" is set to True on the record. Unfortunatly for some reason Salesforce hides this field from more or less everything (https://sites.secure.force.com/success/ideaview?id=08730000000BpXRAA0) so it would have been perfect to use a workflow field update off this to update a "started approval process" custom date field. But you can't but you CAN do the same thing in an apex trigger. This I think is the only way you could do it.
0/9000