• Alex LatitudeGT
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies

Hey guys i have created a Account Lookup field on a Campaign Member object which i'm currently using a trigger to populate.

Does anyone know if this is possible?

 

At the moment i cant seem to populate any lookup fields even though the soql is getting the correct data. After the trigger runs the Account field in the Campaign Member remains empty.

Any help would be appreciated.

 

Here is the trigger below:

 

trigger CampaignMemberLookup on CampaignMember (before update) {

   List<Id> contactID = new List<Id>();

 

   for (CampaignMember cm : trigger.new) { 

      CampaignMember old_cm = Trigger.oldMap.get(cm.Id);

      if (cm.ContactId != old_cm.ContactId) {

         contactID.add(cm.ContactId);

      }

   }

 

   List<Contact> myList= [Select Id, Account__c FROM Contact WHERE Id IN : contactID];

 

Map<Id, Account__c > myMap= new Map<Id, Account__c >();

for (Contact : myList)  {

tradingMap.put(c.Id, c.Account__c );

   }

 

for (CampaignMember cm : trigger.new) {

      if (myMap.containsKey(cm.ContactId)) {

         cm.Account__c = myMap.get(cm.ContactId);

      }

}

Hi all,

 

New here - apologise if I'm going over something that has already been brought up or answered.

 

We are a foreign exchange company and have clients booking FX transactions on our online platform. Once these trades are made, they flow into our sfdc instance as a 'deal' - a custom object that sits under an account.

 

Is there a way to follow an account in chatter, and be alerted via the feed when a deal is created?

 

Would be a great tool for us!

 

Thanks,

 

Alex

Hey guys i have created a Account Lookup field on a Campaign Member object which i'm currently using a trigger to populate.

Does anyone know if this is possible?

 

At the moment i cant seem to populate any lookup fields even though the soql is getting the correct data. After the trigger runs the Account field in the Campaign Member remains empty.

Any help would be appreciated.

 

Here is the trigger below:

 

trigger CampaignMemberLookup on CampaignMember (before update) {

   List<Id> contactID = new List<Id>();

 

   for (CampaignMember cm : trigger.new) { 

      CampaignMember old_cm = Trigger.oldMap.get(cm.Id);

      if (cm.ContactId != old_cm.ContactId) {

         contactID.add(cm.ContactId);

      }

   }

 

   List<Contact> myList= [Select Id, Account__c FROM Contact WHERE Id IN : contactID];

 

Map<Id, Account__c > myMap= new Map<Id, Account__c >();

for (Contact : myList)  {

tradingMap.put(c.Id, c.Account__c );

   }

 

for (CampaignMember cm : trigger.new) {

      if (myMap.containsKey(cm.ContactId)) {

         cm.Account__c = myMap.get(cm.ContactId);

      }

}

hi all,

anyone know a good CTI to integrates switchvox into salesforce?

 

currently we have limited access to salesforce via the switchboard provided by switchvox.

but our original idea is to have the phone system inside the salesforce along with the salesforce softphone.

please let me know if you know a good CTI to do this.

 

all i can find so far is the camrivox.com, it can be used to integrates Asterisk PBX into salesforce.

 

thank you in advance.

 

 

 

Regards,