You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started: AI Resources for Oracle Cloud HCM – Go Here

Progress with Redwood: Redwood Resources for Oracle Cloud HCM -  Go Here

Rest API To get Employee User Person Type and Employee salary.

Summary:

We want to fetch Employee salary and Person type using Java script, which will be used in Oracle Intelligent advisor interviews.

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Currently we are using Public worker API.


function setemployeedetails (personId,interview,username)

{

//This function would get the employee details

var JWT = interview.getValue("JWT")

var myHeaders = new Headers();

myHeaders.append("Authorization", "Bearer "+JWT);

 

var requestOptions = {

method: 'GET',

headers: myHeaders,

redirect: 'follow'

};

 

fetch("https://fa-etrw-dev5-saasfaprod1.fa.ocs.oraclecloud.com/hcmRestApi/resources/11.13.18.05/publicWorkers/"+personId+"?expand=assignments&onlyData=true"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!