Skip to main content
Solved

current user Ifs

  • August 24, 2020
  • 5 replies
  • 1069 views

jzouaoui
Sidekick (Customer)
Forum|alt.badge.img+8

hello, 

i need to create a custom Field  which gets me he current user in Ifs. that help me to identify  who create a part (in inventory Part)

 

thank you.

Best answer by paul harland

Hi

Often you can use the substitution variable #USER_ID#

More generally you can use fnd_session_api.get_fnd_user()

5 replies

paul harland
Superhero (Employee)
Forum|alt.badge.img+24
  • 547 replies
  • Answer
  • August 24, 2020

Hi

Often you can use the substitution variable #USER_ID#

More generally you can use fnd_session_api.get_fnd_user()


jzouaoui
Sidekick (Customer)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • 37 replies
  • August 25, 2020

It works !!! Great .

thank you so much :) 


jzouaoui
Sidekick (Customer)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • 37 replies
  • August 25, 2020

 

my idea is to be able to retrieve the history of users who have created new parts and I see with this custom field that I always get the current user .. it is not a persistent field.

thanks for your help


paul harland
Superhero (Employee)
Forum|alt.badge.img+24
  • 547 replies
  • August 25, 2020

you can make the field persistent/text, then use this code as the default value (either context substitution variable or PL/SQL expression).  

That way you can capture who created a record.

Best to also make the field non-editable through the client.


jzouaoui
Sidekick (Customer)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Customer)
  • 37 replies
  • August 25, 2020

great ! thank you so much .