• Subhodeep Dey
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 4
    Replies

HI All,

I've installed Twilio in one of my client's Org. And followed all the steps of configuration(https://moometric.com/integrations/sf/salesforce-open-cti-lightning-with-twilio-tutorial/).

But facing the same issue mentioned in the above link, 

Issue: 

Uncaught Error: Unable to make a call. Contact your admin. throws at https://alu--tfsb2--c.cs85.visual.force.com/components/c/callInitiatedPanel.js:57:37  

Please help me with fixing this issue. 

I've one more requirement on same Twilio, If a number is dialed from the dialer or any outbound call is in progress with the Twilio and the receiver won't receive the call or call get disconnected then there should be a pop-up message with the reason on the dialer screen.

I'm attaching a screenshot also.

User-added image

Thanks

Hi All,

I have created a package using my developer org and now I want to upload it in AppExchange. I don't have any partner license.

Please guide me how can I do the same.  

Hi All,

 

I am facing bulkification issue on creating multiple child records from insert multiple parent record using data loader. It's showing  "10:53:29:088 FATAL_ERROR System.LimitException: Too many DML rows: 10001".

 

Please help me for fixing the issue.

 

trigger OppTrigger on Opportunity (after insert, after update, before delete) {
    
    // Record Insert Code
    if(trigger.isInsert || trigger.isundelete){
        if(checkRecursive.runOnce()){
            Set<Id> oppId = new Set<Id>();
            Map<Id,Opportunity> oppmap = new Map<Id,Opportunity>();
            for(Opportunity opp: Trigger.new){
                oppId.add(opp.Id);
            }
            List<Projected_Opportunity__c> proOppList = new List<Projected_Opportunity__c>();
            for(Opportunity opps: [SELECT ID,Name,StageName,Probability,
                                   CloseDate,Month_No__c,Implementation_Date__c,
                                   Contract_Term__c,Amount,Projected_Revenue_1__c,
                                  Q1RF_target__c,Total_Project_Revenue__c FROM Opportunity WHERE ID IN:oppId]){
                  
                 for(Integer i=0; i< Integer.valueOf(opps.Contract_Term__c); i++){
                      Projected_Opportunity__c  po = new Projected_Opportunity__c();
                        po.Opportunity__c = opps.Id; 
                        po.Opportunity_Name__c = opps.Name; 
                        po.Stage__c = opps.StageName;
                        po.Probability__c = opps.Probability;
                        po.Closed_Date__c = opps.CloseDate;
                        po.Month_No__c = opps.Month_No__c;
                        po.Projected_Implementation_Date__c = opps.Implementation_Date__c.addMonths(i);
                        po.Contract_Term__c=opps.Contract_Term__c;
                        po.Amount__c = opps.Amount;
                        po.Monthly_Projected_Revenue__c = opps.Projected_Revenue_1__c;
                        po.Target_Revenue__c = opps.Q1RF_target__c;
                        po.Total_Project_Revenue__c = opps.Total_Project_Revenue__c;
                        proOppList.add(po);
                }                      
                
            }
            if(!proOppList.isEmpty()){
                insert proOppList;
            }
            

        /*    List<Projected_Opportunity__c> polistInsertRecords = new List<Projected_Opportunity__c>();
          for(Opportunity opps: Trigger.new){
                   for(Integer i=0; i< Integer.valueOf(opps.Contract_Term__c); i++){
                      Projected_Opportunity__c  po = new Projected_Opportunity__c();
                        po.Opportunity__c = opps.Id; 
                        po.Opportunity_Name__c = opps.Name; 
                        po.Stage__c = opps.StageName;
                        po.Probability__c = opps.Probability;
                        po.Closed_Date__c = opps.CloseDate;
                        po.Month_No__c = opps.Month_No__c;
                        po.Projected_Implementation_Date__c = opps.Implementation_Date__c.addMonths(i);
                        po.Contract_Term__c=opps.Contract_Term__c;
                        po.Amount__c = opps.Amount;
                        po.Monthly_Projected_Revenue__c = opps.Projected_Revenue_1__c;
                        po.Target_Revenue__c = opps.Q1RF_target__c;
                        po.Total_Project_Revenue__c = opps.Total_Project_Revenue__c;
                        polistInsertRecords.add(po);
                } 
                
            }
            system.debug('polistInsertRecords ' + polistInsertRecords); 
            if(!polistInsertRecords.isEmpty()){
                insert polistInsertRecords;
            }*/
            /*try{
                if(polistInsertRecords.size() >0){
                       insert polistInsertRecords; 
                         system.debug('Record Inserted...');  
                    }
                 }catch(DmlException  e){
                    system.debug(e.getMessage());
                    system.debug(e.getLineNumber());
              }    */
        } 
    }
    //Code for update records
    if(trigger.isUpdate){
        if(checkRecursive.runOnce()){
            Set<Id> oppids = new Set<Id>();
            List<Projected_Opportunity__c> polistInsertRecords = new List<Projected_Opportunity__c>();
          
            for(Opportunity op : trigger.new){
            
                 oppids.add(op.id);
                
            }
            
           
            List<Projected_Opportunity__c> proOppForDel = new List<Projected_Opportunity__c>([Select Id,Opportunity_Name__c,Amount__c,
                                                                                                       Closed_Date__c,Stage__c,Probability__c,
                                                                                                     Projected_Implementation_Date__c,Contract_Term__c,
                                                                                                     Monthly_Projected_Revenue__c,Target_Revenue__c 
                                                                                              From Projected_Opportunity__c 
                                                                                              Where Opportunity__c IN:oppids]);
                                                    
            Delete proOppForDel;
            
            for(Opportunity opps : Trigger.new){ 
                for(Integer i=0; i< opps.Contract_Term__c; i++){
                      Projected_Opportunity__c  po = new Projected_Opportunity__c();
                        po.Opportunity__c = opps.Id; 
                        po.Opportunity_Name__c = opps.Name; 
                        po.Stage__c = opps.StageName;
                        po.Probability__c = opps.Probability;
                        po.Closed_Date__c = opps.CloseDate;
                        po.Month_No__c = opps.Month_No__c;
                        po.Projected_Implementation_Date__c = opps.Implementation_Date__c.addMonths(i);
                        po.Contract_Term__c=opps.Contract_Term__c;
                        po.Amount__c = opps.Amount;
                        po.Monthly_Projected_Revenue__c = opps.Projected_Revenue_1__c;
                        po.Target_Revenue__c = opps.Q1RF_target__c;
                        po.Total_Project_Revenue__c = opps.Total_Project_Revenue__c;
                        polistInsertRecords.add(po);
              
                  } 
                }system.debug('polistInsertRecords ' + polistInsertRecords); 
             try{
                if(polistInsertRecords.size() >0){
                       insert polistInsertRecords; 
                         system.debug('Record Inserted...');  
                    }
                }catch(DmlException  e){
                    system.debug(e.getMessage());
                    system.debug(e.getLineNumber());
             }    
        } 
     }
}

Hi All,

 Please help me!

 I have created a report(summery) using 4 fields  

1. Funding Source 1(Picklist)
2. Family (Lookup)  
3. Adult (Checkbox)  
4. Child(Checkbox)  

User-added image

I used groupby in two fields Funding Source 1 and with in this Family.
 Means All the Families are belongs to the same value of picklist Funding Source 1 will come on the same Value.
Like we can see in the attached image in the yellow highlighted area is a pickist value and in the orange highlighted area is the lookup values.     User-added image  My question is this,  How can I summerize the Families with in the same picklist value.

 

For example,  Picklist value 'Unknown' contains three families '43631','43673' and '43689'.
So I need the count of family will be display beside the picklist value 'Unknown'.

This time we can see in the number of Clints are having in the same Picklist value 'Unknown'.      

User-added image

Please help me to solve it out!

Hi All,

I have created a package using my developer org and now I want to upload it in AppExchange. I don't have any partner license.

Please guide me how can I do the same.  

Hi All,

I have created a package using my developer org and now I want to upload it in AppExchange. I don't have any partner license.

Please guide me how can I do the same.  

Hi All,

 

I am facing bulkification issue on creating multiple child records from insert multiple parent record using data loader. It's showing  "10:53:29:088 FATAL_ERROR System.LimitException: Too many DML rows: 10001".

 

Please help me for fixing the issue.

 

trigger OppTrigger on Opportunity (after insert, after update, before delete) {
    
    // Record Insert Code
    if(trigger.isInsert || trigger.isundelete){
        if(checkRecursive.runOnce()){
            Set<Id> oppId = new Set<Id>();
            Map<Id,Opportunity> oppmap = new Map<Id,Opportunity>();
            for(Opportunity opp: Trigger.new){
                oppId.add(opp.Id);
            }
            List<Projected_Opportunity__c> proOppList = new List<Projected_Opportunity__c>();
            for(Opportunity opps: [SELECT ID,Name,StageName,Probability,
                                   CloseDate,Month_No__c,Implementation_Date__c,
                                   Contract_Term__c,Amount,Projected_Revenue_1__c,
                                  Q1RF_target__c,Total_Project_Revenue__c FROM Opportunity WHERE ID IN:oppId]){
                  
                 for(Integer i=0; i< Integer.valueOf(opps.Contract_Term__c); i++){
                      Projected_Opportunity__c  po = new Projected_Opportunity__c();
                        po.Opportunity__c = opps.Id; 
                        po.Opportunity_Name__c = opps.Name; 
                        po.Stage__c = opps.StageName;
                        po.Probability__c = opps.Probability;
                        po.Closed_Date__c = opps.CloseDate;
                        po.Month_No__c = opps.Month_No__c;
                        po.Projected_Implementation_Date__c = opps.Implementation_Date__c.addMonths(i);
                        po.Contract_Term__c=opps.Contract_Term__c;
                        po.Amount__c = opps.Amount;
                        po.Monthly_Projected_Revenue__c = opps.Projected_Revenue_1__c;
                        po.Target_Revenue__c = opps.Q1RF_target__c;
                        po.Total_Project_Revenue__c = opps.Total_Project_Revenue__c;
                        proOppList.add(po);
                }                      
                
            }
            if(!proOppList.isEmpty()){
                insert proOppList;
            }
            

        /*    List<Projected_Opportunity__c> polistInsertRecords = new List<Projected_Opportunity__c>();
          for(Opportunity opps: Trigger.new){
                   for(Integer i=0; i< Integer.valueOf(opps.Contract_Term__c); i++){
                      Projected_Opportunity__c  po = new Projected_Opportunity__c();
                        po.Opportunity__c = opps.Id; 
                        po.Opportunity_Name__c = opps.Name; 
                        po.Stage__c = opps.StageName;
                        po.Probability__c = opps.Probability;
                        po.Closed_Date__c = opps.CloseDate;
                        po.Month_No__c = opps.Month_No__c;
                        po.Projected_Implementation_Date__c = opps.Implementation_Date__c.addMonths(i);
                        po.Contract_Term__c=opps.Contract_Term__c;
                        po.Amount__c = opps.Amount;
                        po.Monthly_Projected_Revenue__c = opps.Projected_Revenue_1__c;
                        po.Target_Revenue__c = opps.Q1RF_target__c;
                        po.Total_Project_Revenue__c = opps.Total_Project_Revenue__c;
                        polistInsertRecords.add(po);
                } 
                
            }
            system.debug('polistInsertRecords ' + polistInsertRecords); 
            if(!polistInsertRecords.isEmpty()){
                insert polistInsertRecords;
            }*/
            /*try{
                if(polistInsertRecords.size() >0){
                       insert polistInsertRecords; 
                         system.debug('Record Inserted...');  
                    }
                 }catch(DmlException  e){
                    system.debug(e.getMessage());
                    system.debug(e.getLineNumber());
              }    */
        } 
    }
    //Code for update records
    if(trigger.isUpdate){
        if(checkRecursive.runOnce()){
            Set<Id> oppids = new Set<Id>();
            List<Projected_Opportunity__c> polistInsertRecords = new List<Projected_Opportunity__c>();
          
            for(Opportunity op : trigger.new){
            
                 oppids.add(op.id);
                
            }
            
           
            List<Projected_Opportunity__c> proOppForDel = new List<Projected_Opportunity__c>([Select Id,Opportunity_Name__c,Amount__c,
                                                                                                       Closed_Date__c,Stage__c,Probability__c,
                                                                                                     Projected_Implementation_Date__c,Contract_Term__c,
                                                                                                     Monthly_Projected_Revenue__c,Target_Revenue__c 
                                                                                              From Projected_Opportunity__c 
                                                                                              Where Opportunity__c IN:oppids]);
                                                    
            Delete proOppForDel;
            
            for(Opportunity opps : Trigger.new){ 
                for(Integer i=0; i< opps.Contract_Term__c; i++){
                      Projected_Opportunity__c  po = new Projected_Opportunity__c();
                        po.Opportunity__c = opps.Id; 
                        po.Opportunity_Name__c = opps.Name; 
                        po.Stage__c = opps.StageName;
                        po.Probability__c = opps.Probability;
                        po.Closed_Date__c = opps.CloseDate;
                        po.Month_No__c = opps.Month_No__c;
                        po.Projected_Implementation_Date__c = opps.Implementation_Date__c.addMonths(i);
                        po.Contract_Term__c=opps.Contract_Term__c;
                        po.Amount__c = opps.Amount;
                        po.Monthly_Projected_Revenue__c = opps.Projected_Revenue_1__c;
                        po.Target_Revenue__c = opps.Q1RF_target__c;
                        po.Total_Project_Revenue__c = opps.Total_Project_Revenue__c;
                        polistInsertRecords.add(po);
              
                  } 
                }system.debug('polistInsertRecords ' + polistInsertRecords); 
             try{
                if(polistInsertRecords.size() >0){
                       insert polistInsertRecords; 
                         system.debug('Record Inserted...');  
                    }
                }catch(DmlException  e){
                    system.debug(e.getMessage());
                    system.debug(e.getLineNumber());
             }    
        } 
     }
}