• sfdc integrator.ax1790
  • NEWBIE
  • 30 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 11
    Replies
Hello Guys,

I am trying to integrate my application with salesforce CTI ( Computer Telephony Integration). 
I am reserching related articales for that. It will be greate help if anyone can post a best for this.

Also, Can anybody tell me it salesforce CTI works with only users having Service cloud licenses.

Thanks
Utkarsh
Hi,

When i insert 10 records if any of the record is not equal to Utility.AccountRecordType then i need to remove the record from the trigger.new list. 

for(integer i=0;i<Trigger.new.size();i++){
        if(Trigger.new[i].RecordTypeId != Utility.AccountRecordType){
            Trigger.new.remove(i);
        }
    }

Regards
Suresh S

Hi,

 

I need to query records[soql] which starts with non-alphabet characters.

 

Please help me.

 

Suresh S

Can anyone please help me how to display  AggregrateResult in Visualforce Page

Hi,

 

Can we have picklist from custom Settings in standrad page

 

Hi,

 

Is it possible to retry asyncjobs. please help me out of this.

Hi,

 

How to select multiple contacts in lookup field. Is this possible? 

 

Hi,

When i insert 10 records if any of the record is not equal to Utility.AccountRecordType then i need to remove the record from the trigger.new list. 

for(integer i=0;i<Trigger.new.size();i++){
        if(Trigger.new[i].RecordTypeId != Utility.AccountRecordType){
            Trigger.new.remove(i);
        }
    }

Regards
Suresh S
Hello Guys,

I am trying to integrate my application with salesforce CTI ( Computer Telephony Integration). 
I am reserching related articales for that. It will be greate help if anyone can post a best for this.

Also, Can anybody tell me it salesforce CTI works with only users having Service cloud licenses.

Thanks
Utkarsh
Hello All,

New coder in Apex here
Just need suggestions from the experienced people out there if my trigger is efficient and scalable? Many Thanks for you help in advance. Also if someone can suggest how to proceed for a test class for this trigger..i apppreciate your help

// This trigger counts all of the calls made for a particular record type and Event Type  in Event //Displays the count on Account Pagetrigger Activity_Count on Event (after insert, after update, after delete) {      Set<Id> eventIds = new Set<Id>();     Set<Id> accIds = new Set<Id>();     Map<Id,Account> accMap = new Map<Id,Account>();     List<Account> updateList = new List<Account>();      String accPrefix = Account.sObjectType.getDescribe().getKeyPrefix();     system.debug(accPrefix);     for (Event e : Trigger.isDelete ? Trigger.old : Trigger.new)         {            eventIds.add(e.Id);            String str = e.whatId;            if(str != null && str.startsWith(accPrefix)) // Task belongs to Account                    accIds.add(e.whatId);            }      integer countercalls = 0;      integer countermeetings = 0;      //system.debug('This is the list of the account Ids selected related to Task ----'+accIds);      if(accIds.size() > 0)          {          for(Account acc : [SELECT Id, Annual_Actuals_Calls__c,Annual_Actuals_Meetings__c FROM Account WHERE Id in :accIds]){             for(Event evt :[SELECT Id, RecordTypeId,Type FROM Event where WhatId = :acc.Id]){               If(evt.RecordTypeId == '01220000000YZcPAAW' && evt.Type == 'Sales Call')                 countercalls +=1;               If(evt.RecordTypeId == '01220000000YZcPAAW' && (evt.Type == 'Sales Visit' || evt.Type == 'New Client Visit'))                 countermeetings +=1;               }             acc.Annual_Actuals_Calls__c = countercalls;             acc.Annual_Actuals_Meetings__c = countermeetings;             updateList.add(acc);           }                 }       if(updateList.size() > 0)         {           //system.debug('The list to be updated contains these accounts :-----'+updateList);           upsert updateList;         }  }

Hi,

 

I need to query records[soql] which starts with non-alphabet characters.

 

Please help me.

 

Suresh S

Hi,

 

Can we have picklist from custom Settings in standrad page

 

Hi,

 

How to select multiple contacts in lookup field. Is this possible?