+ Start a Discussion
SUMANTH ELLURUSUMANTH ELLURU 

trigger to update an hiring manager to a gereric contact

A mechanism which will update Hiring manager to a default Hiring manager (a generic contact) in case a position is created without any hiring manager
Best Answer chosen by SUMANTH ELLURU
Prakash NawalePrakash Nawale
Hi Sumanth, 

There are many solutions for this one, I will suggest one with custom setting.

Solution 1

Create Hirecly hierarchy.
Create Text field to store default Hiring Manger Id.
trigger on before insert,before update event on  your custom object to check Hiring Manager populated or not if not then fetch custom setting value and populate it.

Solution 2
Create Process Builder/Workflow.
In ceritiera check Hiring Manager field value is empty then do field update.


Please let me know if you need any further assistance and mark this as best answer.

All Answers

Prakash NawalePrakash Nawale
Hi Sumanth, 

There are many solutions for this one, I will suggest one with custom setting.

Solution 1

Create Hirecly hierarchy.
Create Text field to store default Hiring Manger Id.
trigger on before insert,before update event on  your custom object to check Hiring Manager populated or not if not then fetch custom setting value and populate it.

Solution 2
Create Process Builder/Workflow.
In ceritiera check Hiring Manager field value is empty then do field update.


Please let me know if you need any further assistance and mark this as best answer.
This was selected as the best answer
SUMANTH ELLURUSUMANTH ELLURU
hi prakash 
can you help me with trigger code.
i am new to triggers.
 
SUMANTH ELLURUSUMANTH ELLURU
i have created hiring manager as lookupfield to contacts
 
Prakash NawalePrakash Nawale
SUMANTH ELLURU,

I will help you.

Please Skype me  on Skype ID : nawaleprakash