Skip to main content
Solved

PL/SQL API to get name from Employee ID


Forum|alt.badge.img+5
  • Sidekick (Customer)
  • 13 replies

Can anyone advise on a PL/SQL API to get either the Person ID or the Person Name from an Employee ID?

E.g. for an individual with Employee ID = 12345, Person ID = “JSMITH” and Person Name = “John Smith”, is there any API to get either JSMITH or John Smith from 12345?

Best answer by COVJAMIEB

Hello. You could try,

Company_Person_API.Get_Person_Id(company_id, emp_no) OR

Company_Person_API.Get_Person(company_id, emp_no)

 

View original
Did this topic help you find an answer to your question?

4 replies

COVJAMIEB
Hero (Partner)
Forum|alt.badge.img+11
  • Hero (Partner)
  • 202 replies
  • Answer
  • July 23, 2024

Hello. You could try,

Company_Person_API.Get_Person_Id(company_id, emp_no) OR

Company_Person_API.Get_Person(company_id, emp_no)

 


Forum|alt.badge.img+5
  • Author
  • Sidekick (Customer)
  • 13 replies
  • July 23, 2024

Perfect, tvm!


Alperen
Sidekick (Partner)
Forum|alt.badge.img+5
  • Sidekick (Partner)
  • 37 replies
  • July 23, 2024
Hello,The person ID result will be returned from the above functions. The name will be returned when you try the following operation.

PERS_API.Get_Name(COMPANY_PERSON_API.Get_Person_ID(company_id,emp_no))


Michael Kaiser
Sidekick (Customer)
Forum|alt.badge.img+9
  • Sidekick (Customer)
  • 102 replies
  • December 9, 2024

Hi,
 

But that would lead to nothing:
 

Now what is the CPA?
It stands for the View COMPANY_PERSON_ALL.
The Join looks like this:
 


The CPA View is under the following objects:
 

HTH
BR
Michael


Reply


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