You need to sign in to do that
Don't have an account?
atharva Vispute 3
Help me to solve this problem in batch apex
Hi,
problem statement is
in currency if the amount is in 10,000-20,000 then picklist value must be cold, if amount is in 20,000-50,000 then picklist value must be hot and if the amount is more than 50,000 then value should be warm. So what kind of trigger i have to use here?? Plzz help me to find solution.
Thanks!!
problem statement is
in currency if the amount is in 10,000-20,000 then picklist value must be cold, if amount is in 20,000-50,000 then picklist value must be hot and if the amount is more than 50,000 then value should be warm. So what kind of trigger i have to use here?? Plzz help me to find solution.
Thanks!!
Can you check the below batch class for the above question.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
All Answers
Can you check the below batch class for the above question.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
There is no error in code but picklist value is not getting change.. Kindly help me to do this.
Thanks!!
Have you executed the batch class?
Thanks,
Sorry I am not getting you. How can I do this?
Thanks!!
Trigger runs automaticllay when a record is created or updated based on our code. But Batch class we have to run manually or schedule to run at particuoar time.
To run batch class you can use the below code and run in anonomous window in developer console so the batch runs and updates all existing projects.
Thanks,
I will do it and then let you know.
Thanks!!
It's working now. But after 50,000 value is assgined to be warm but it shows me as a hot.. How is this possible??
Thanks!!
What is the Amount value and did you checked it after refresh?
I dont see any issue with the batch. Can you update just that one record again and execute the batch and try.
Thanks,
Ok Praveen I will do it and then let you know.
Thanks!!
Its working fine now.
Thanks!!