This should be easy, but drawing a blank...
In an v11 IPA, I have an employee number and am I'm trying to get their corresponding Actor.
I know how to do it in SQL, and I know how to find it in Rich Client, but for the life of me I can't figure out how to get the Actor value in an IPA for a given Employee.
Hi dcasper70,
Try querying Employee for field AgentEmployee. Hopefully that will get you the answer.
FYI - don't try filtering by this field because it will be VERY SLOW and consume huge resources. If you have to do that,you're better off to do a SQL query on the gen side (if you have that option).
Good Luck!
Kelly
OMG!
I was just about finished with an Agent>ParentAgent>Actor link that was behaving funky. Your suggestion is a hellavalot simpler.
Thank you sir!
SELECT emp.Employee ,pag.ACTOR FROM LMHCM.EMPLOYEE as emp INNER JOIN LMHCM."AGENT" as ag on AG.BORBUSINESSCLASSNAME = 'Employee' and AG.BORBUSINESSOBJECTKEY = emp.UNIQUEID and HEX(AG.DELETEFLAG) = REPEAT('0',32) INNER JOIN LMHCM."PARENTAGENT" as pag on pag.PARENTAGENT = ag.PARENTAGENT and HEX(pag.DELETEFLAG) = REPEAT('0',32) WHERE emp.HRORGANIZATION = 'whatever' AND emp.Employee = whatever AND HEX(emp.DELETEFLAG) = REPEAT('0',32) FOR READ ONLY WITH UR
Thank you Sir, that's essentially how I am pulling it now.