+ Start a Discussion

cannot create a record through sites

I am unable to create a record through sites which is integrated with a visual force page. I have the read, create, edit permissions checked for the custom object on public access settings. I can create the records through the VF page that the sites refers to but I am unable to create the same through sites. Any help? Here is the controller code that is being called when I hit submit button and expect the record be created..


public PageReference confirm() {

if (this.request != null) {

 try {

       insert request; }

catch (system.DMLException e){



       return null;


PageReference p = Page.submit;


return p;


Best Answer chosen by Admin (Salesforce Developers) 

Actually, I realized that the records are being created but they are just not visible from the customobject

tab view, unless I go to the 'All' view..!!

Message Edited by mallikam on 07-22-2009 11:40 AM