- You run the CompoundEmployee API in queryMode=Delta
- You find that "<previous>" is not returned for certain segments in CompoundEmployee API response.
Reproducing the Issue
- Create an employee in EmployeeCental
- Goto Employment information
- Insert a new record, by changing the data (may be business unit)
- Now, run the CompoundEmployee API for this employee in delta mode, you can find the following response in the job information
- This explains that, previously there was no value but now the field carried a value DEV
- In the same employee data, change the value in the first time slice/during the new hire time slice (here taking the example as FTE and standard hours)
- These two values are changed to 20 and 0.5 (Via make correction)
- Note: Here, we need to understand that there was no change made to the second timeslice, but editing the first time slice did create UI changes as we see in the above screenshot
- Insert a new time slice in-between the new hire and the data change event
- You might be thinking, there were changes made to the last time slice, but the last time slice was never altered, it is just UI showing the values. CompoundEmployee API response would still not render previous tag for standard weekly hours in the third time slice
Note: As the response is large in size, it has been attached in this KBA as an attachment and can be found in the attachment section.
When Delta is calculated in CompouneEmployee, always the recent values are compared with the image of the employee in the database at the last modified date provided in the query.
Based on these details, it starts rendering the previous tag for all the values which has changed from the elapsed time (i.e., > Last modified date)
- This is expected behavior of CompoundEmployee API.
- Hence, if the expectation is to get the previous tag in the latest timeslice then we should always edit the data in the respective time slice.
KBA , previous tag missing in compoundemployee , LOD-SF-INT-API , SF API & Adhoc API Framework , Problem
|Response for third change.zip|