Solved

Call Center - Case Accept on behalf of another user

  • 28 December 2020
  • 4 replies
  • 204 views

Userlevel 2
Badge +6

I am trying to use the  CC_CASE_API.Accept__(p0_, p1_, p2_, p3_, p4_)

Is there a way to accept the case on behalf of another user? Currently using Apps 10 v8

icon

Best answer by durette 28 December 2020, 21:59

View original

This topic has been closed for comments

4 replies

Userlevel 2
Badge +6

I was able to do this impersonating the user. I don’t think this is the best way but it may be the only way.

IFSAPP.Fnd_Session_API.Impersonate_Fnd_User(:userId);
    IFSAPP.CC_CASE_API.Accept__(p0_, p1_, p2_, p3_, p4_);
IFSAPP.Fnd_Session_API.Reset_Fnd_User;

Userlevel 7
Badge +18

Be sure to add RESET_FND_USER in your exception error handler to ensure it always gets reset.

 

Something like…

BEGIN
IFSAPP.Fnd_Session_API.Impersonate_Fnd_User(:userId);
IFSAPP.CC_CASE_API.Accept__(p0_, p1_, p2_, p3_, p4_);
IFSAPP.Fnd_Session_API.Reset_Fnd_User;
EXCEPTION WHEN OTHERS THEN
IFSAPP.Fnd_Session_API.Reset_Fnd_User;
RAISE;
END;
/

 

Userlevel 7
Badge +24

:clap:

 

Hey Randall! good to see you on here.  

Fwiw I cannot see another way to do this.

Userlevel 2
Badge +6

Thank you Durette. Good Catch on the exception. I ran into it when testing.

Paul - Hope you are well. I’ve used several of your answers on here when looking for info.