I am trying to create a process flow (in LPA) that will create a csv file with employee info (name, email, direct manager, address info). I have a different landmark query node for each object I need to get data from (Employee, HROrganizationUnit, EmployeeContact, EmployeeAddress). The first node which gets the employee number and name works. In the subsequent queries, I was trying to use the employee number variable from the first query to select the data for the specific employee.
If I use SingleRecordQuery, it will tell me the Employee Contact object doesn’t exist. If I change to MultipleRecordQuery, it returns all the email address. It seems to be ignoring the “Employee = “” value.
Am I not able to pass the variable from the first query into the following query nodes? Can anyone offer any suggestions or tips? I am fairly new to process flow and would greatly appreciate any suggestions.
complete: true response message: null record count: 0 has next: false has previous: false Results header string: ContactDetail.EmailAddress Results string:
Communications trace null And it does the same thing for with the address query node.
When you read the Employee table get the HROrganization, Employee and other information you need and they try this. This should return all the contact rows for that employee.
_dataArea="ltm" & _module="hr" & _objectName="EmployeeContact" & _actionName="Find" & _actionOperator="NONE" & _actionType="MultipleRecordQuery" & _pageSize="30" & HROrganization="" & Employee=""0" &ContactDetail.EmailAddress
complete: true
response message: null
record count: 1
has next: false
has previous: false
Results header string: EmployeeContact>,0,ContactDetail.EmailAddress
Results string: ,,altest@atlanta.k12.ga.us
Communications trace
null
Oops! My previous post was incorrect. Sorry! When you read the Employee table get the HROrganization, Employee and other information you need and they try this. This should return all the contact rows for that employee.
Dave is correct - you have to include the full key for Landmark Single Record Queries.
Just for consideration, when you are querying the Employee BC, there are derived fields named "EmployeeWorkEmailAddress" and "EmployeeWorkTelephone", so you don't need to query EmployeeContact at all. If you need other fields from the EmployeeContact BC, you can use the Employee.UseForWorkEmail or Employee.UseForWorkPhone to get the related EmployeeContact.EmployeeContact (key) value for a Single Record Query against the EmployeeContact BC.
_dataArea="prodhcm" & _module="hr" & _objectName="Employee" & _actionName="Find" & _actionOperator="NONE" & _actionType="SingleRecordQuery" & _runAsUser="" & _pageSize=30 & HROrganization="{HROrganization}" & Employee="{EmployeeID}" & EmployeeWorkEmailAddress & EmployeeWorkTelephone & UseForWorkEmail & UseForWorkPhone
_dataArea="prodhcm" & _module="hr" & _objectName="EmployeeContact" & _actionName="Find" & _actionOperator="NONE" & _actionType="SingleRecordQuery" & _runAsUser="" & _pageSize=30 & HROrganization="{HROrganization}" & Employee="{EmployeeID}" & EmployeeContact="{Employee.UseForWorkPhone}" & ContactDetail.Telephone.SubscriberNumber & TelephoneType
Also, there are fields named "UseForMailing" and "UseForPayroll" which hold the related EmployeeAddress.EmployeeAddress (key) that you can use in a subsequent query against the EmployeeAddress BC.
_dataArea="prodhcm" & _module="hr" & _objectName="Employee" & _actionName="Find" & _actionOperator="NONE" & _actionType="SingleRecordQuery" & _runAsUser="" & _pageSize=30 & HROrganization="{HROrganization}" & Employee="{EmployeeID}" & UseForMailing
_dataArea="prodhcm" & _module="hr" & _objectName="EmployeeAddress" & _actionName="Find" & _actionOperator="NONE" & _actionType="SingleRecordQuery" & _runAsUser="" & _pageSize=30 & HROrganization="{HROrganization}" & Employee="{EmployeeID}" & EmployeeAddress = "{Employee.UseForMailing} & PostalAddress.DeliveryAddress.AddressLine1 & PostalAddress.DeliveryAddress.AddressLine2 & PostalAddress.Municipality & PostalAddress.StateProvince & PostalAddress.PostalCode
Good Luck! Kelly