• KARAN MONGA
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies
Use Case : Opening a VF page on custom button click on Salesforce account layout . Once that VF page with controller class is open and  have populated the list . On close of that VF page i want to populate some other picklist on the main salesforce account layout. 

How this is possible ?
Hi all,

I cretaed a simple vf page. But when I preview it in lightning experience then, header is not visible. Available for Lightning Experience, Lightning Communities, and the mobile app is checked.

Here is code of page.
 
<apex:page standardStylesheets="true" doctype="html-5.0" showheader="false">
  <!-- Begin Default Content REMOVE THIS -->
  <h1>Congratulations</h1>
  This is your new Page
  <!-- End Default Content REMOVE THIS -->
</apex:page>
Thanks,
Arpit vijayvergiya
Hi I just followed all instruction from the Salesforce documentation about how to setup OpenID to login Salesforce with google apps. it seems all is good until I clic on the "Allow" button in the Authorization page. after that I'm getting this screen:

User-added image

Important to mention is I also have my registration handler in my Auth
 
global class GoogleOpenIdRegistrationHandler implements Auth.RegistrationHandler {
    global User createUser(Id portalId, Auth.UserData data){

        System.debug('Auth Data: '+data);
        // If the email scope has been set we will receive the users email address      
        String email = data.email;
        if (email == null) return null;

        // Make sure the email matches our domain
        // TODO: Uncomment and update as necessary
        // if (!email.contains('@yourdomain.com')) return null;


        // Attempt to find a user with the same email address
        User u;
        try {
            u = [Select Id, FirstName, LastName, Email, Username from User Where Username = :email];
        } 
        catch (Exception e){
            return null;
        }

        return u;
    }

    global void updateUser(Id userId, Id portalId, Auth.UserData data){
        // DO Nothing in the update Scenario
    }
}

and the callback URL has been taken after I saved the Auth Provider configuration then updated in google api console.
Do I missing something?