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
nikvmnikvm 

Approval Process on behalf of some one other than actual requstor

I have a situation where the initiator is intiating the approval process for another user. (On behalf of )
And in the approval process approver options I only get to choose the manager of the initiator as the option. 

However I would like to submit the item for approval to the manager of the actual requstor. I have the fist name and last name of the user available on the object. I can capture few more details but not the actual manager I would prefer deriving it  out of user object.

Is there a way I can solve this problem 

Thanks in advance. 
Vinita_SFDCVinita_SFDC
Hi,

I did not understand much about your requirement, please elaborate. 

If you are not able to achieve your requirement declaratively than go for apex code. Refer following links for code samples and better understanding:

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_approval.htm

https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_calls_process.htm

https://developer.salesforce.com/forums?id=906F00000008xUQIAY