WorkDay Tutorial-ACTIVITY —XSLT code for attribute values (Optional)

 Scenario: Now that you have changed the custom report so it uses the Position RBO field instead of the Position ID field, change the XSLT code in order to get the Descriptor for the Position in the resulting output file (you can choose either comma or pipe separated output format.) For example, instead of Position ID “P-00230” the desired value in the output file is Position Descriptor “Web Content Manager”.

·       Modify WDINST EIB IntNewHire custom report (already done, in previous activity) 

·       Review the output XML (already done, in previous activity) 

·       Modify the XSLT code and upload to tenant 

·       Re-Run integration 

·       Review the result

Steps: 

1.     Now that you see how RBOs appear in the XML output, change the XSLT code in the .xsl file from the previous activity so that instead of outputting the Position ID, output the Descriptor on ThePos column. HINT: The required XSLT uses a “@” to get an attribute value. The below screenshot shows the desired output:


2.    For those wanting help on the previous step, the desired XSLT is shown on the next page

       3.      To get the description on the post field use this XSLT code "wd:ThePos/@wd:Descriptor", as shown inside the for-each loop here:



        4.       Once the XSLT file is modified, upload the new version to Workday using the Edit XSLT Attachment Transformation task.

 

        5.       Launch and view the results of the integration.