You need to sign in to do that
Don't have an account?
JJames
Permissions while generating PDF from onclick button script
I am having some trouble with permissions when trying to open up a visualforce page that generates a PDF. The onclick code is here:
var quoteId = "{!REVVY__MnQuote__c.REVVY__SalesforceId__c}";
var status = "{!REVVY__MnQuote__c.REVVY__Current_Status__c}";
window.open('/apex/PMnCustomTemplateCostSheet?quoteID=' + quoteId, '_blank', 'toolbar=0,location=0,menubar=0');
I would assume that the user's profile would just needs read and or create access to the Quote and its line items but still is denying access to the users with insufficient access. Am I missing something simple here?
Thanks.
var quoteId = "{!REVVY__MnQuote__c.REVVY__SalesforceId__c}";
var status = "{!REVVY__MnQuote__c.REVVY__Current_Status__c}";
window.open('/apex/PMnCustomTemplateCostSheet?quoteID=' + quoteId, '_blank', 'toolbar=0,location=0,menubar=0');
I would assume that the user's profile would just needs read and or create access to the Quote and its line items but still is denying access to the users with insufficient access. Am I missing something simple here?
Thanks.
This is due to lack of visual page access to user profile
1. From Setup, click Manage Users > Profiles.
2. Click the name of the profile you want to modify.
3. Go to the Visualforce Page Access page or related list and click Edit.
4. Select the Visualforce pages (PMnCustomTemplateCostSheet) that you want to enable from the Available Visualforce Pages list and click Add, or select theVisualforce pages that you want to disable from the Enabled Visualforce Pages list and click Remove.
5. Click Save.
Regards,
Bharathimohan Rammaurthy
Salesforce For All (http://salesforceforall.blogspot.com/)