• Amr Ibrahim 42
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 6
    Replies
Hi, We have our Calendar set-up as a custom visualforce page along with a custom setting for the event category RGB color that shows based on the field Event_Category, checkbox is checked for available in lightning on the visualforce page and the lightning stylesheets applied from the lightning experience configuration converter but when in lightning experience when a user clicks on a date to create a new event it shows error Unable to access page 
which in classic normaly opens up a new event record creation page
Unable to Access Page
You are missing information needed by the page you have attempted to access. If you believe this is an error, please refresh your screen. If the error persists, please report it to our Customer Support team and provide the URL of the page you were requesting as well as any other related information.


Your Help is appreciated 
Thanks
 //For every account, step through all it's sale__c records and Sum up each field.  Save it to a local variable, then use variable to overwrite account's roll up field.  
            for(sale__c s : a.sales__r){
                //If a regular sale__c, roll up normal numbers
                if(!s.Mydentity_Sale__c){         NO ERROR
                    lastQuarter = lastQuarter + s.last_quarter__c;
                    lastQuarterPriorYear = lastQuarterPriorYear + s.Last_Quarter_Prior_Year__c;
                    TwoQuartersAgo = TwoQuartersAgo + s.X2_Quarters_Ago__c;
......
//Loyalty section
            //Calculate loyalty redemption value based off record types and revenue.  Only do this if it's not a Store.
            //Check if myDentity Sale
           if(s.Mydentity_Sale__c == True){  ERROR Variable does not exist
            if(a.recordtypeid != Store){
                
                    // Silver Pearl
                    if(MyIdentitylastQuarter > 499 && MyIdentitylastQuarter <= 1000) {
                        a.Mydentity_Loyalty_Redemption_Value__c = 1;
                        a.mydentity_Loyalty_Level__c = 'Silver Pearl';
 
Hi, We have our Calendar set-up as a custom visualforce page along with a custom setting for the event category RGB color that shows based on the field Event_Category, checkbox is checked for available in lightning on the visualforce page and the lightning stylesheets applied from the lightning experience configuration converter but when in lightning experience when a user clicks on a date to create a new event it shows error Unable to access page 
which in classic normaly opens up a new event record creation page
Unable to Access Page
You are missing information needed by the page you have attempted to access. If you believe this is an error, please refresh your screen. If the error persists, please report it to our Customer Support team and provide the URL of the page you were requesting as well as any other related information.


Your Help is appreciated 
Thanks
 //For every account, step through all it's sale__c records and Sum up each field.  Save it to a local variable, then use variable to overwrite account's roll up field.  
            for(sale__c s : a.sales__r){
                //If a regular sale__c, roll up normal numbers
                if(!s.Mydentity_Sale__c){         NO ERROR
                    lastQuarter = lastQuarter + s.last_quarter__c;
                    lastQuarterPriorYear = lastQuarterPriorYear + s.Last_Quarter_Prior_Year__c;
                    TwoQuartersAgo = TwoQuartersAgo + s.X2_Quarters_Ago__c;
......
//Loyalty section
            //Calculate loyalty redemption value based off record types and revenue.  Only do this if it's not a Store.
            //Check if myDentity Sale
           if(s.Mydentity_Sale__c == True){  ERROR Variable does not exist
            if(a.recordtypeid != Store){
                
                    // Silver Pearl
                    if(MyIdentitylastQuarter > 499 && MyIdentitylastQuarter <= 1000) {
                        a.Mydentity_Loyalty_Redemption_Value__c = 1;
                        a.mydentity_Loyalty_Level__c = 'Silver Pearl';