Skip to main content
Question

Need to refresh first then, approve the leave application

  • September 12, 2017
  • 0 replies
  • 32 views

Hi team,

I have a Leave Approve button (Formula URL) in my App that approve the leave application. I am facing a problem if someone wants to approve the multiple leave applications (Suppose 4) and what they do, they open all four applications in a different tab and approve one by one. So, what happened, the only first time it worked and increase the leave taken balance but did not increase the leaves taken balance when they approve the rest three applications.

What I want, can you give me a solution when the page refresh first before do the actual work (edit record)?

I have also tried the Xavier solution here but could not get success.

May be @dandiebolt can help me with his script solution.

Thanks,

Gaurav

  • Author
  • Registered
  • September 15, 2017
@Dan, can you please help me out in this?

  • Registered
  • September 15, 2017
Going in every application and then approving looks tedious.
Assume you have more than 4 and for every application, you want to approve leave application.

Why not create a custom script that allows you to update all application on a single click.

- create a page showing all your application along with a checkbox.
- which ever checkbox is checked collect rid for that checkbox and write API edit record in order to update leave taking balanced w.r.t rid you collected.


let me know if this solution looks good to you.
It will save a lot of time.