You need to sign in to do that
Don't have an account?
domdick
Apex trigger for revenue schedule??
Hello,
I am fairly new to wirte an APEX code for this query. Hope someone will share code or comments.
if we create a booking & opportunity and add opportunity lie item, enable scheduling and define revenue schedule date with monthly installment.
Currently, user are keep changing revenue schedule date in a past or future which get impact on monthly revenues dashboard.
Now, we would like to restric user to changing revenue schedule date in past. how???
Thanks for help!
Please read http://forceschool.blogspot.com/search/label/Apex%20Triggers
for writting triggers, also provided how to test triggers http://forceschool.blogspot.com/search/label/Test%20Apex
I will stuck to find a solution for my query based on above documents. I need to get the solution soon. So can you please post an example code for opportunitly lineitemschedule.
Thanks
I hope this might help you
Hi Shashikant,
Thanks for your reply on this. It was superfast to write an APEX trigger!
But I am not sure whether I need all the code to achieve my query. Or maybe I explained different.
I have attached ruff data.
Date Revenue comments
02/02/2011 6000.00 user will not allow to change schedule date in past.
25/05/2011 6000.00 same as above
25/06/2011 6000.00 user will allow to change in future as schedule date is in
current month
Is you code will work? Or it will be different approach.
Hope I have explained correctly. Look forward to see the replay.
Thanks!
Hi Shashikant,
One Advice - Avoid query in loop, use Map instead.
Thanks for update,
I know it, but missed it :)
Wrote a blog for this : http://forceschool.blogspot.com/2011/05/writing-apex-trigger-save-limits-in.html
But missed this time. :)
:P it happens...
btw nice blog..
Your welcome mate :) , Now onward I have to be little more careful before posting any thing.