You need to sign in to do that
Don't have an account?
Krishan Gopal 27
try to complete that task
After inserting a new candidate record, candidate may insert wrong date in the field “Application Date”. Write a trigger so that every time a new candidate record is created in a system, an “Application Date” field would have a value as system generated CreatedDate field of that record only and not using any Date functions.
can't understand typecasting
thank you!
can't understand typecasting
thank you!
We cannot use Created date in before context because created date will be calculated once the record is saved to database. In case of after context as the record will be in read only mode so it cannot be achieved in the after trigger as well.
The best option would be using the Today date as the record creation date will be always equal to Todays date.
If this solution helps, Please mark it as best answer.
Thanks
All Answers
Please try the below code:
Thanks,
Maharajan.C
We cannot use Created date in before context because created date will be calculated once the record is saved to database. In case of after context as the record will be in read only mode so it cannot be achieved in the after trigger as well.
The best option would be using the Today date as the record creation date will be always equal to Todays date.
If this solution helps, Please mark it as best answer.
Thanks
Can you please give us more information the relation and stucture of the Job and application objects. How does Candidate apply for the job . Is it creating some record?
Thanks,
Please let me know of my understaning is correct.
if user is trying to create a candidate record while selecting the job which is inactive . Then we should show and error message ?
Thanks,
As this is a follow up can you please create an other question for the same with all these details so it will be easy for other members in the community who are facing the same type of issues.
Thanks,