Author Archives: Bcc

Dec 14

Test Class – Insert Account and Contact

@isTest public class TestAcctContact { static testMethod void testInsertAcctContact() { Account a   = new Account(); a.Name      =’Tes123′; insert a; Contact c   = new Contact(); c.FirstName = ‘TestFirstName’; c.LastName  = ‘TestLastName’; c.AccountId   = a.Id; insert c; } }

Posted in Main | Comments Off on Test Class – Insert Account and Contact
Nov 03

Clone with Related List Example

/* This class is a custom profile cloning process that include duplicating orig profile record and related lists: CHEMICAL CONSTITUENTS, RCRA/STATE CODES & DOT CODES author – ben.c Create Date 10-27-2015- */ global class CloneProfile { WebService static Id createNewProfile(String … Read More

Posted in Development | Tagged | Comments Off on Clone with Related List Example
Oct 27

Super Clone

https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B4mjFEAR   http://www.davehelgerson.com —   other clone option: http://christopheralunlewis.blogspot.com/2012/04/clone-plus-clone-salesforce-objects.html?_sm_au_=iVVFRH43fsQ2HsfM

Posted in Administration, Development | Tagged | Comments Off on Super Clone