Skip to main content
I have a page layout named "User_ContactLayout" for Contact object.  I want to open this as a tab on my service console on click of a button  on the visual force page.
10 answers
  1. Apr 27, 2017, 9:36 AM
    Now I get it. You wanna open the Create Contact page onclick of a button.

    Try this code.

    public PageReference NewContact() {

    PageReference page = new Pagereference('/003/e?retURL=%2F003%2Fo');

    page.setRedirect(true);

    return page;

    }

    Onclick of the button, you need to call this piece of code.

     
0/9000