function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Kapil KaushikKapil Kaushik 

Can we open a new pop up window of browser on any particular time If User is logged in on the org

Do anyone have some suggestion that can we open a new browser window on any scheduled time.

Like we set events and reminders from the Home page of the org. Can we do It through Apex or without using salesforce standard mechanisms.
DebasisDebasis
Hi Kapil,
yes you can do this by using login flow.

Check out a relatively new functionality called "Login Flows" .  With Login flows you can introduce new screens into the same login page that your users are used to.  There's no need for Visualforce nor jQuery, as Login flows instead require a flow "screen".  In a nutshell your flow would:
Read the LoginFlow_UserId variable
Do a record lookup on User with the LoginFlow_UserId variable.  The query would look for a custom checkbox that determines if the user accepted the terms and conditions yet.
Display the terms and conditions on the screen with a checkbox input
Once they accept, write the checkbox value to the user record.
Also, all your queries and record updates should use a Fault handler action, otherwise you could potentially lock yourself out of your system.  Not that I've don'e that before or anything.
For more on login flows, see here: https://developer.salesforce.com/index.php?title=Login-Flows&oldid=103421 (https://developer.salesforce.com/index.php?title=Login-Flows&oldid=103421)


Thanks,
Debasis