You need to sign in to do that
Don't have an account?

Need to callback event Id and redirect page
I have an html scontrol (code below) that automatically creates and saves an event from an opportunity. I need to then get the event id and associate it with a visualforce page so that the user fills out some custom fields to complete the event.
Can someone please help me on modifying the scontrol so that I can get the Event Id and redirect the user to the visualforce page ('/apex/eventdetails?id= '). I've been reading the discussion threads but I'm really lost and would appreciate any help.
Thanks so much
<script> parent.frames.location.replace( "/00U/e?evt3_lkid={!Opportunity.Id}&RecordType=012300000000qm6" + "&evt3={!Opportunity.Name}" + "&evt10=Seminar" + "&evt6=schedule"+ "&evt5={!Event.RecordTypeId}"+ "&00N80000004SCGU=Note populated by scontrol"+ "&cancelURL=%2F{!Opportunity.Id}" + "&saveURL=%2F{!Opportunity.Id}" + "&retURL=%2F{!Event.Id}&nooverride=0" ); </script>