You need to sign in to do that
Don't have an account?
Sekhar Sekhar
Page not allowed for the profile
Hi Friends
When i am click on custom button in CRM account then it is working fine
But when i am click on same custom buttons in Community Portal it showing a error message like
a problem with the onclick javascript for this button or link was encountered
{faultcode:'soapenv:Server',faultstring:'Page not allowed for the profile',}
my custom button code is
{!REQUIRESCRIPT("/soap/ajax/10.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")}
window.open("/apex/GenerateInvoice?id={! Work_Order__c.Id }",'_blank');
var oppty= '{!Work_Order__c.Id }';
var result = sforce.apex.execute('Generateinvoice' ,'FieldServieRates',{opptyId:oppty});
Here my Class(Generateinvoice) is global and Method(FieldServieRates) is webservices
Thank You
When i am click on custom button in CRM account then it is working fine
But when i am click on same custom buttons in Community Portal it showing a error message like
a problem with the onclick javascript for this button or link was encountered
{faultcode:'soapenv:Server',faultstring:'Page not allowed for the profile',}
my custom button code is
{!REQUIRESCRIPT("/soap/ajax/10.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/10.0/apex.js")}
window.open("/apex/GenerateInvoice?id={! Work_Order__c.Id }",'_blank');
var oppty= '{!Work_Order__c.Id }';
var result = sforce.apex.execute('Generateinvoice' ,'FieldServieRates',{opptyId:oppty});
Here my Class(Generateinvoice) is global and Method(FieldServieRates) is webservices
Thank You
Quick find box -> search "Profiles" -> find the "Visualforce" -> add the visualforce page persmision for the profile.
Please make sure to mark this as the best answer if this help you, as it could help more people in the community in future.
I am already added the visualforce page and class (related to button class and vf page ) to My community portal profile
Even though when i am click on same custom buttons in Community Portal it showing a error message like
a problem with the onclick javascript for this button or link was encountered
{faultcode:'soapenv:Server',faultstring:'Page not allowed for the profile',}
Thank You.
In order for a Community user to see a Visualforce page, two things have to happen. First, the page has to be exposed to the Community, this is done from: Communities > Manage Communities > Force.com > Public Access Settings > Enable Visualforce Page Access
Second, the page has to be exposed to the profile of the community user, this is done from: Setup > Manage Users > Profile > Click on Profile Name > Visualforce Page Access