How to change Approval user in activity log

mdash
Giga Guru

Hi,

When an approval_admin user (A) approves a record on behalf of another user(B), the activity log shows: Approved by B, whereas it should ideally be A.

How to change that? I can add a comment in approval comment that approved on behalf of B, but is there another way?

 

Thanks

1 ACCEPTED SOLUTION

I couldn't find the message for the single approval. Search your business rules and script includes for "this request has been approved" and see what you come up with.

I did find a similar message for group approvals in the script include ChangePolicyApprovalActivitySNC. This is an OOB script include and I don't encourage customizing it. Despite that, I can still tell that Chuck made the change regardless of the comment telling me who the intended approver should be.

find_real_file.png

In a way, I like this better because I get the full story. If I changed the comment, I wouldn't be able to tell that Luke was supposed to be the approver. 

View solution in original post

5 REPLIES 5

Chuck Tomasi
Tera Patron

I suggest using the activity log on the record to identify who really updated the record. The underlying logic is simply taking the value of the approver in the sysapproval_approver record and using that to say who approved it, not the "on behalf of" person. The activity log will show how made the record update (e.g. changing the change_request record to approved) regardless of who the approval record states. Don't get hung up on making customizations for a small percentage of the use cases. The use of approval on behalf-of someone else should be very minimal (otherwise I would suggest your process needs a review.)

Hi Chuck,

Great to hear from you! Thanks for that. I will try to persuade the clients to go with the predefined logic.

Just to be sure that what we have is correct, let me share a snapshot of one such scenario. 

Ben is the approval_admin user and he has approved a request awaiting approval from Tony.

 

find_real_file.png

 

So, my question is : the default comment text: This request has been approved by <user> , shouldn't it be Ben? 

Thanks.

I couldn't find the message for the single approval. Search your business rules and script includes for "this request has been approved" and see what you come up with.

I did find a similar message for group approvals in the script include ChangePolicyApprovalActivitySNC. This is an OOB script include and I don't encourage customizing it. Despite that, I can still tell that Chuck made the change regardless of the comment telling me who the intended approver should be.

find_real_file.png

In a way, I like this better because I get the full story. If I changed the comment, I wouldn't be able to tell that Luke was supposed to be the approver. 

I know it's not the original question or probably the answer you were originally looking for, but if I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you