You need to sign in to do that
Don't have an account?

Update Approval process using triggers
Hi Guys,
I have a requirement for approval Process.
The record is assigned to the user, i want to approve the record without clicking on Approve/Reject.
It means the status has to be changed from Pending to Approved.
Please let me know if anyone having idea.
I have a requirement for approval Process.
The record is assigned to the user, i want to approve the record without clicking on Approve/Reject.
It means the status has to be changed from Pending to Approved.
Please let me know if anyone having idea.
- Write a before update trigger on the object.
- Compare ownerId fields to check if ownership has changed.
- If yes, then query the designated approver user/store userid in custom setting and check if the new owner is the designated approver.
- If yes, then change the status field as "Approved".
Let me know if this is not what you are looking for.- Srinath