• timjock
  • NEWBIE
  • 0 Points
  • Member since 2008

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

Is anyone out there a Data Cleanse and Import provider?

If so reply here, we are interested in this service.

How do I create another custom related list just like Notes & Attachments?

 

I need a separate one on Accounts specific to account plans.

 

Thanks

I'm trying to do my first unit test for a lead Trigger that works fine in Sandbox. Can someone share or point me to some sample code?

 

Thanks

I'm new to Apex code and need to do a simple Unit test for this Trigger. How do I do this?
trigger associateLeadToCampaign on Lead (after insert) {
Set<String> campCode = new Set<String>();
//Capture the campaign code values for making using the query
for(Lead l : Trigger.new)
{
    if(l.Campaign_Code__c != '')
    campCode.add(l.Campaign_Code__c);
}
//Query all the Campaign records that match the campaign code
List<Campaign> campagn = [Select Id, Campaign_Code__c from Campaign where Campaign_Code__c IN :campcode];
Map<String, Campaign> campMap = new Map<String, Campaign>();
//Construct a map for later retrieval
for(Campaign c : campagn){
campMap.put(c.Campaign_Code__c, c);   
}
List<CampaignMember> cmList = new List<CampaignMember>();
//Loop thru all the leads and create the Campaign Member records to associate lead to a matching campaign
for(Lead l : Trigger.new)
{
    if(campMap.containsKey(l.Campaign_Code__c))
    {
        System.debug('The Lead ' + l.Id + ' can be associated to Campaign with Campaign_Code__c ' +l.Campaign_Code__c);
        CampaignMember cm = new CampaignMember();
        cm.CampaignId = campMap.get(l.Campaign_Code__c).Id;
        cm.leadId = l.Id;
        cm.Status = 'Sent';
        cmList.add(cm);
    }
}
insert cmList;
}

We need to have drop-down links on our Home Page Component HTML, but SF strips out any CSS or Javascript. Considering this, how do I setup simple HTML drop down menus?

Any ideas are greatly appreciated.

I need to setup a Time Trigger to run a workflow once a week, but don't see how to do this. Ideally every Monday at 2AM or it could be any time each Sunday. Can you help?

We need to have drop-down links on our Home Page Component HTML, but SF strips out any CSS or Javascript. Considering this, how do I setup simple HTML drop down menus?

Any ideas are greatly appreciated.

I need to setup a Time Trigger to run a workflow once a week, but don't see how to do this. Ideally every Monday at 2AM or it could be any time each Sunday. Can you help?