You are on page 1of 4

HCM REST Training

Contents
Working with ATOM Feeds ........................................................................................................................... 2
Reading feed for new hires ....................................................................................................................... 2
Reading feed for employee updates ......................................................................................................... 2
Reading feed for employee assignment updates ..................................................................................... 3
Reading feed for employee terminations ................................................................................................. 4
HCM REST Training

Working with ATOM Feeds

Reading feed for new hires

Read a new hire feed

To read the details of new hires, simply access Atom feed collection URL
GET /atomservlet/employee/newhire

The response will be as follows


<title type="text">New Hire</title>
..
..
<summary type="text">Employee Period of Service Created</summary>
<published>2017-06-27T23:54:37.000Z</published>
<link href="https://hcqb-
test.hcm.us2.oraclecloud.com:443/hcmCoreApi/resources/latest/emps?q=PersonId=
300000004687536&effectiveDate=2017-06-27" rel="related" />
<content type="text">
{ "Context" : [ { "PrimaryPhoneNumber" : "", "PersonId" : "300000004687536",
"PersonName" : "Test070, User", "EffectiveStartDate" : "2017-06-27",
"EffectiveDate" : "2017-06-27", "WorkerType" : "EMP", "PeriodType" : "E",
"PersonNumber" : "300000004687536", "WorkEmail" : "User.Test070" } ] }

Reading feed for employee updates

Read an employee details update feed

To read the updates to employee details, simply access Atom feed collection URL
GET /atomservlet/employee/empupdate

The response will be as follows


<title type="text">Person Basic Information Changed</title>
..
<summary type="text">Person Work E-mail Address Updated</summary>
<published>2017-06-28T00:35:17.000Z</published>
HCM REST Training

<link href="https://hcqb-
test.hcm.us2.oraclecloud.com:443/hcmCoreApi/resources/latest/emps?q=PersonId=
300000004685849&effectiveDate=2017-06-27" rel="related" />
<content type="text">
{ "Context" : [ { "PrimaryPhoneNumber" : "", "PersonId" : "300000004685849",
"PersonName" : "Test063, User", "EffectiveStartDate" : "2017-06-27",
"EffectiveDate" : "2017-06-27", "WorkerType" : "EMP", "PeriodType" : "E",
"PersonNumber" : "300000004685849", "WorkEmail" : "User.Test063@oracle.com" }
], "Changed Attributes" : [ { "EmailAddress" : { "old" : "User.Test063",
"new" : "User.Test063@oracle.com" } } ] }
</content>

Reading feed for employee assignment updates

Read an employee assignment update feed

To read the updates to employee assignment, simply access Atom feed collection URL
GET /atomservlet/employee/empassignments

The response will be as follows


<title type="text">Person's Assignment Changed</title>
..
<title type="text">Test017, Student's Assignment Updated</title>
<updated>2017-06-26T21:40:39.000Z</updated>
..
<summary type="text">Person Assignment Corrected</summary>
<published>2017-06-26T21:40:39.000Z</published>
<link href="https://hcqb-
test.hcm.us2.oraclecloud.com:443/hcmCoreApi/resources/latest/emps?q=PersonId=
300000004423426&effectiveDate=2017-04-25" rel="related" />
<content type="text">
{ "Context" : [ { "PrimaryPhoneNumber" : "", "AssignmentId" :
"300000004423444", "PersonId" : "300000004423426", "PersonName" : "Test017,
Student", "EffectiveDate" : "2017-04-25", "WorkerType" : "EMP", "PeriodType"
: "E", "PersonNumber" : "300000004423426", "WorkEmail" :
"Student.Test017@oracle.com" } ], "Changed Attributes" : [ { "JobId" : {
"old" : null, "new" : "300000002016228" } }, { "OrganizationId" : { "old" :
null, "new" : "300000002014320" } } ] }
</content>
HCM REST Training

Reading feed for employee terminations

Read an employee termination feed

To read the details of employee termination, simply access Atom feed collection URL
GET /atomservlet/employee/termination

The response will be as follows


<title type="text">Person Terminated</title>
..
<updated>2013-12-11T04:26:05.307Z</updated>
..
<title type="text">Varma, Rupesh Terminated</title>
<summary type="text">Employee Terminated</summary>
<published>2016-02-18T22:47:03.000Z</published>
<link href="https://hcqb-
test.hcm.us2.oraclecloud.com:443/hcmCoreApi/resources/latest/emps?q=PersonId=
100000000294162&effectiveDate=2016-02-18" rel="related" />
<content type="text">
{ "Context" : [ { "PrimaryPhoneNumber" : " 626-111-1234", "PersonId" :
"100000000294162", "PersonName" : "Varma, Rupesh", "EffectiveStartDate" :
"2008-08-11", "EffectiveDate" : "2016-02-18", "WorkerType" : "EMP",
"PeriodType" : "E", "PersonNumber" : "STUDENT5_PERSON103", "WorkEmail" :
"Rupesh.Varma@STUDENT5.com" } ], "Changed Attributes" : [ {
"ActualTerminationDate" : { "old" : null, "new" : "2016-02-17" } } ] }

You might also like