As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
// Search and locates file var node = search.findNode("workspace://SpacesStore/3177cfa2-532c-4970-afbc-df929d07bc3c"); // Take the content of that node var content = node.content; // Puts the content as XML var xml = new XML(content); // Extracts the variable you want var employeename = xml.employeename; Grade = xml.Grade; currentPM = xml.CurrentPM; currentMD = xml.CurrentMD; Month = xml.Month; Day = xml.Day; Year = xml.Year; PEselfPA = xml.PEselfPA; PEselfFA =xml.PEselfFA; PEselfC =xml.PEselfC; PEselfCT = xml.PEselfCT; // setup model for response template to use variable model.employeename = employeename.toString(); model.Grade = Grade.toString(); model.currentPM = currentPM.toString(); model.currentMD = currentMD.toString(); model.Month = Month.toString(); model.Day = Day.toString(); model.Year = Year.toString(); model.PEselfPA = PEselfPA.toString(); model.PEselfFA = PEselfFA.toString(); model.PEselfC = PEselfC.toString(); model.PEselfCT = PEselfCT.toString();