I have also tried:
“PRIMARY_POSITION_ID”: “ns1:Worker_Data/ns1:Employment_Data[ns1:Worker_Job_Data[@ns1:type=‘Primary_Job’]=‘1’]/ns1:Position_Data/ns1:Position_Reference/ns1:ID[@ns1:type=‘Position_ID’]”,
I discovered recently that the namespace differs between what you get when you call the Workday API directly or when the connector does it (wd: vs ns1:). In that, the flags that are used in (amongst others) the primary field are not ‘1’ but ‘true’. So “ns1:Worker_Data/ns1:Employment_Data[ns1:Worker_Job_Data[@ns1:type=‘Primary_Job’]=‘1’]/ns1:Position_Data/ns1:Position_Reference/ns1:ID[@ns1:type=‘Position_ID’]”,
Should become “ns1:Worker_Data/ns1:Employment_Data[ns1:Worker_Job_Data[@ns1:type=‘Primary_Job’]=‘true’]/ns1:Position_Data/ns1:Position_Reference/ns1:ID[@ns1:type=‘Position_ID’]”,
Hello Scott,
Please try below Xpath
For Position ID:
ns1:Worker_Data/ns1:Employment_Data/ns1:Worker_Job_Data/ns1:Position_Data/ns1:Position_Reference/ns1:ID[@ns1:type=‘Position_ID’]
For Primary Job:
ns1:Worker_Data/ns1:Employment_Data[ns1:Worker_Job_Data[@ns1:type='Primary_Job=‘1’]]
I did tried in mine and it is pulling the expected data from the source after aggregation.
I did add, which did not work. I did a single aggregation of the user in question. Did you do a single aggregation or did you do a full aggregation of the Source itself?
Are you using the Workday connector that leverages a virtual appliance, or the Workday SaaS connector? The SaaS connector expects a namespace of wd rather than the ns1 used in the non-SaaS connector.
I am using the connector that uses the namespace of ‘ns1’. Remember I already have a bunch of xPaths that are working, which all are using ‘ns1:’. This is the only xPath I am having an issue with returning data.
I just tried, with a single aggregation, that did not work. I am going to kickoff a full aggregation and see what happens. I expect it to still fail since I have updated other xPaths before, done a single aggregation and saw the expected updated information/attribute value(s).
I tried below, which also did not work. I had to use a single quote where you showed double quotes. VSCode would not let me save the changes if I didn’t