Skip to main content
Solved

Call Center - Case Accept on behalf of another user

  • December 28, 2020
  • 4 replies
  • 214 views

randallkern
Sidekick (Customer)
Forum|alt.badge.img+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

Best answer by durette

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;
/

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

4 replies

randallkern
Sidekick (Customer)
Forum|alt.badge.img+6
  • Author
  • Sidekick (Customer)
  • 9 replies
  • December 28, 2020

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;


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 526 replies
  • Answer
  • December 28, 2020

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;
/

 


paul harland
Superhero (Employee)
Forum|alt.badge.img+24

:clap:

 

Hey Randall! good to see you on here.  

Fwiw I cannot see another way to do this.


randallkern
Sidekick (Customer)
Forum|alt.badge.img+6
  • Author
  • Sidekick (Customer)
  • 9 replies
  • December 29, 2020

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. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings