You need to sign in to do that
Don't have an account?
SFDC n12
SOQL Query help needed
Hi,
I am trying to write a script as a apex class which should check the following req for which i need help on it
1) I am having a custom object called as "Employee HR Hierarchy" where i have the datas populated for all the fields to it
2) My req is i am having 2 fields like First name and supervisor name (manager's name) present n the employee HR Hierachy
I want to check wheather the supervisor name present in the record is the manager for the first name present in the custom object record and this applies only for "ACCOUNT EXECUTIVE" Profile records alone
Help me how to achieve it with the SOQL Query code please
Thanks in Advance
I am trying to write a script as a apex class which should check the following req for which i need help on it
1) I am having a custom object called as "Employee HR Hierarchy" where i have the datas populated for all the fields to it
2) My req is i am having 2 fields like First name and supervisor name (manager's name) present n the employee HR Hierachy
I want to check wheather the supervisor name present in the record is the manager for the first name present in the custom object record and this applies only for "ACCOUNT EXECUTIVE" Profile records alone
Help me how to achieve it with the SOQL Query code please
Thanks in Advance
Please look into the following Snippet of Code. Visualforce Page Takes Supervisor Name & First Name. Once clicked on ValidateManager() Method, the First Name & Manager Name is checked, if a match [a user with specific manager/supervisor] is found Success is delivered in the Debug Console.
Remember, You need to handle multiple manager & multiple user outcomes. The FirstName of Manager may be of Many Users and same with the set of User's.
Important :
If this is what you were looking for then please mark it as a "SOLUTION" orYou can Click on the "Like" Button if this was beneficial for you.
Thank You