Hi,
We'd like to be able to run Deferred Calls as a different user. I can't find anything to make this work. Is this possible?
Hi,
We'd like to be able to run Deferred Calls as a different user. I can't find anything to make this work. Is this possible?
Best answer by dsj
Have you tried using Fnd_Session_API.Impersonate_Fnd_User
?
Eg:
begin
Dbms_Output.put_line('Session user: ' || Fnd_Session_API.Get_Fnd_User);
IFSAPP.Fnd_Session_API.Impersonate_Fnd_User('NEW_USER_ID');
Dbms_Output.put_line('Session user changed to: ' || Fnd_Session_API.Get_Fnd_User);
-- run the job
IFSAPP.Fnd_Session_API.Reset_Fnd_User;
Dbms_Output.put_line('Session user reset to: ' || Fnd_Session_API.Get_Fnd_User);
end;
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.