Prospect Scoring Upgrade
Step 1 - Record Your Current Package Version
Prior to upgrading, you will need to find and record your currently installed version:
- Navigate to Setup > Installed Packages
- Search for TargetX_Prospect Scoring
- Record your current version number
Note: if your current version is 2511.0, you are on the most recent package and should proceed to the Telemarketing Upgrade.
Step 2 - Manually add the code changes via a Change Set
Prospect Scoring is an unmanaged package, so you must manually add the code changes for the Prospect Scoring package via a Change Set. You must complete the steps in a sandbox environment before pushing to production via an Outbound Change Set.
Your starting package version number determines what, if any, additional configuration steps may be required. Please click the link for your initial version number (identified in Step 1 above) from the list below. You will be directed to the first step required for your upgrade and should complete all steps that follow. If you do not see your version number listed, please get in touch with the TargetX Support team.
Step 3 - Log into your Sandbox
Ensure that your sandbox has been refreshed before continuing.
|
Starting Version |
Ending Version |
Configuration Steps by Release These are the steps you need to complete, from the starting version to the ending version. For example, if your starting version is 2205.0 (May '22) and you're upgrading to 2208.6 (August '22), you'll need to complete the configuration steps for 2206.3 (June '22), 2207.0 (July '22), and 2208.6 (August '22). |
|---|---|---|
| 2305.0 | 2505.0 (May '25) |
Item 1: Update API Version on Apex Classes
Item 2: Update API Version on Apex Triggers
Item 3: Update API Version on Visualforce Pages
|
| 2505.0 | 2511.0 (November '25) |
Item 1: Update the calculateProspectScore Apex Class
public static void setContactActivityDate(Map<Id,Contact> conOldMap, List<Contact> conNew) {
TriggerContextUtility.startProspectScoring();
for (contact newCon : conNew) {
if(conOldMap != null) {
Contact oldCon = conOldMap.get(newCon.Id);
if (newCon.Prospect_Contact_Score__c != oldCon.Prospect_Contact_Score__c) {
newCon.Prospect_Score_Last_Updated__c = Date.Today();
}
}
else {
if(newCon.Prospect_Contact_Score__c > 0) {
newCon.Prospect_Score_Last_Updated__c = Date.Today();
}
}
}
TriggerContextUtility.stopProspectScoring();
}
For example:
Item 2: Create the ContactTrigger
trigger contactTrigger on Contact (before insert, before update) {
if(!TriggerContextUtility.checkProspectScoring()){
calculateProspectScore.setContactActivityDate(Trigger.oldMap, Trigger.new);
}
}
|
Item 4: Test the Changes in Your Sandbox
- Login to your Community using an existing test user.
- Verify they can create an Application, submit payment, etc.
- Register a new test user.
- Verify they can create an Application, submit payment, etc.
- Test any additional processes that are important to your institution.
Item 5: Create an Outbound Change Set
- Navigate to Setup and search for Outbound Change Sets.
- Select New.
- Name the Change Set, for example, Community Upgrade February '24.
- Add a Description and Save your changes.
- In the Change Set Components section, select Add.
- Select a Component Type of Visualforce Page or Apex Class, depending on your changes.
- Click the checkboxes for the Apex Classes, Visualforce Components, or Visualforce Pages you updated in previous steps, depending on your starting version. For example:
Upgrading from 2305.0 Apex Class:
- calculateProspectScore
- dataGenerator
- testCalculateProspectScore
- testDataGenerator
- TriggerContextUtility
Apex Triggers:
- postApplicationDelete
- postApplicationUpsert
- postContactScheduleItemDelete
- postContactScheduleItemUpsert
- postEmailBroadcastMemberInsert
- postRelationshipDelete
- postRelationshipUpsert
- postTaskDelete
- postTaskUpsert
Upgrading from 2505.0 Apex Class:
- calculateProspectScore
Apex Triggers:
- ContactTrigger
Item 6: Upload your Change Set
- From the Change Set, you created above, select the Org to which you want to send the Change Set.
- Click Upload.
Note: Uploading the Change Set will send it to the Target Org; it will NOT make changes in your production Org until you Deploy the Change Set.
Item 7: Validate the Change Set in your Production Org
- Login to your production Org.
- Navigate to Setup and search for Inbound Change Sets.
- The Change Set you uploaded should be available under Change Sets Awaiting Deployment.
- Click the Change Set you want to deploy.
- Click Validate.
Note: when validating the change set, select Run Specified Tests and enter the following list:
testCalculateProspectScore, testDataGenerator
Item 8: Deploy the Change Set in your Production Org
- Login to your production Org.
- Navigate to Setup and search for Inbound Change Sets.
- The Change Set you uploaded should be available under Change Sets Awaiting Deployment.
- Click the Change Set you want to deploy.
- Click Deploy. For additional information on deploying Change Sets, please see Salesforce Help & Training article "Deploying a Change Set"
Item 9: Your upgrade is complete
No further configuration is required. You may proceed to the Telemarketing Upgrade.


