cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Workday Rest APIs and arrays

jplunkett
New Contributor

Hi,

So Iโ€™m working to try and create a pipeline that retrieves all of the alternate IDs from Workday, modifies some, and reloads them using the Workday APIโ€™s.

The workday API requires xml structure, and thereโ€™s a section that has id type / value, that needs to be its own instances. So I was able to manually create this structure by adding code like 'workdaystructure[0].type= โ€˜IDโ€™ workdaystructure[0].value = โ€˜555โ€™ and increase the array for each additional id. But I donโ€™t know how many IDs exist in Workday for a person (one could have 2 another 5 for instance), so Iโ€™d like to pull all the existing ID, modify some, and maybe add a couple others and upload them without using the bracket notation.

Any thoughts / Ideas?

1 REPLY 1

jarkorful
New Contributor

Have you tried workdaystructure.length?