We discovered that using the below for the XPATH will pull the latest ON_LEAVE attribute
ns1:Worker_Data/ns1:Employment_Data/ns1:Worker_Status_Data/ns1:Leave_Status_Data[last()]/ns1:On_Leave
We discovered that using the below for the XPATH will pull the latest ON_LEAVE attribute
ns1:Worker_Data/ns1:Employment_Data/ns1:Worker_Status_Data/ns1:Leave_Status_Data[last()]/ns1:On_Leave
We are currently using:
(ns1:Worker_Data/ns1:Employment_Data/ns1:Worker_Status_Data/ns1:Leave_Status_Data[ns1:On_Leave='1']/ns1:On_Leave)[1]
We have been told that although Workday supports simultaneous active leaves, it is our company’s policy that we do not do that.
The XPath above will return the leave only if it is active. If there’s not an active leave, then we aren’t interested in the data.