You need to sign in to do that
Don't have an account?
Amith Rao
trigger checkboxupdate on Opportunity (Before insert, before Update) {if(trigger.isInsert) {for(Opportunity acc:trigger.new) {acc.IsPrivate=True;} }}
trigger checkboxupdate on Opportunity (Before insert, before Update)
{if(trigger.isInsert)
{for(Opportunity acc:trigger.new)
{acc.IsPrivate=True;}
}}
Whats the code to execute in Anonymous window.? I get error in below Excution. Please suggest
Opportunity acc = new Opportunity(String Name='TrigOrangesCTRL', Date CloseDate='12/17/2017', String StageName='Prospecting');
insert acc;
{if(trigger.isInsert)
{for(Opportunity acc:trigger.new)
{acc.IsPrivate=True;}
}}
Whats the code to execute in Anonymous window.? I get error in below Excution. Please suggest
Opportunity acc = new Opportunity(String Name='TrigOrangesCTRL', Date CloseDate='12/17/2017', String StageName='Prospecting');
insert acc;
Please use below code :
Thanks
Varaprasad
All Answers
Please use below code :
Thanks
Varaprasad
Thankyou Santosh. Both System.today() or Date.today() worked well.
Let me know if you can share your mail Id or Linked in to get in touch.
Regards
Amith S Rao
watsapp: 9620588065
Above answer helps you, please mark it as the best answer.
If you need any help Please let me know.
varaprasad4sfdc@gmail.com
Thanks
Varaprasad