The location of project and employee data in the DOM of profile pages has shifted to data attributes. For example, document.querySelector('[data-kafieldname="fullName"]') is used to get the employee full name.
Be sure to verify the query results before further processing to avoid errors.
Javascript Code Example:
// Query the Employee Full Name on an Employee Profile page var userQuery = document.querySelector('[data-kafieldname="fullName"]'); // Check output for a value if (userQuery!=undefined) { // Further output processing goes inside the if statement }
Synthesis Profile Data Sources
Profile Type |
Data Source |
QuerySelector |
Employee | Full Name | document.querySelector('[data-kafieldname="fullName"]') |
Project | Project Number | document.querySelector('[data-kafieldname="projectNumber"]') |
Depending on the layout, the div element located by that query sometimes contains two more divs, with classes "kaFieldTitle" (the display name of the field itself) and "kaFieldValue" (the field value for that entity).