As I have understood, you basically need to prevent Opportunity Creation if Revenue limit cap for the day is exhausted.
You can start with writing before trigger on Opportunity Object. You would need before Insert and Before Update Event. Basically once Opportunity is inserted or Update you need to find out all the Opporunities that got created Today against that Opportunity and then if you find any opp with amount >=1000000, then use addError Method.
This trailhead is great way to start with your first Trigger.
Please elaborate your questions as it seems unclear.
Thanks!
are you got my Point.. If yes Plaese go through it.
Thanks & Regards..
As I have understood, you basically need to prevent Opportunity Creation if Revenue limit cap for the day is exhausted.
You can start with writing before trigger on Opportunity Object. You would need before Insert and Before Update Event. Basically once Opportunity is inserted or Update you need to find out all the Opporunities that got created Today against that Opportunity and then if you find any opp with amount >=1000000, then use addError Method.
This trailhead is great way to start with your first Trigger.
Let me know if you need any assistance.
Thanks & Regards,
Ashish Singh