Communities Upgrade
Step 1 - Record the 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 Communities
- Record your current version number
Note: if your current version is 2411.1, you are on the most recent package and should proceed to the Application Review Upgrade. See also: How can I tell which version of Communities I'm on when I 'manually' upgrade Communities.
Step 2 - Choose an Upgrade Path
Communities is an unmanaged package. You have two options to upgrade the Communities package:
- Option 1: Delete and Reinstall Communities.
- Option 2: Manually add the code changes via a Change Set.
Upgrade Path Option 1: Delete and Reinstall Communities
With this option, you will need to Uninstall the existing Communities package and install the latest package. You will need to reapply any customizations you had previously applied.
Tip: Take screenshots, or copy them to Notepad, to document your page names/assignments before uninstalling Communities.
Item 1: Uninstall Communities Package
Upgrading Communities by deleting the package and reinstalling.
Item 2: Check for the Custom Object tab
- Navigate to Setup and search for Tabs.
- Check to see if you have a Custom Object tab for Community Themes.
- If you do NOT have the tab, proceed to the next step.
- If you DO have the tab, Delete the tab and then proceed to the next step.
- If you DO have the tab but do NOT have the option to Delete it, proceed to the next step.
Item 3: Install the Upgraded Package
This is your "ending version" (i.e., the version you want to upgrade to). You can select any version that's higher than your current package version. Packages are cumulative, meaning the upgraded package you select includes all features from previous packages. For example, if you're upgrading from Package A to Package D, that package includes all features from Packages B and C.
- Navigate to TargetX Recruitment Suite: Admin Group or TargetX Online App: Admin Group to select and obtain the upgraded package.
- Choose "Install for Admins Only."
- Remember to update the appropriate Profiles and Permission Sets if additional security is required.
Item 4: Reapply Community Settings
- Navigate to Setup and search for Digital Experiences (formerly All Communities).
- Select the Workspaces link for the Community you want to review.
- Click Administration, then Members.
- Add your Community User profile to the list of selected profiles (make sure you also leave the system administrator there).
- Select Save.
- Under the Administration tab on the left, select login & registration
- Under "Login," select VisualForce Page.
- Select the TX_CommunitiesLogin Visualforce page for your login page
- Under the "Password" section
- Under Forgot Password, select Visualforce Page
- Select TX_ForgotPassword
- Under Change Password select Visualforce Page
- Select TX_ChangePassword
- Under "Registration," click "Allow external users to self-register."
- Select VisualForce Page.
- Select TX_CommunitiesSelfReg as the self registration VisualForce page.
- Under "Assign Registering Users to," choose the Community User profile and Community User Account. If you don't see these profiles, select view ALL.
- Select Save.
- Choose Email on the left, and update to the appropriate email address.
Item 5: Reapply your Customizations
If you are unsure about what customizations you have, you can save the Visualforce pages as text documents to use as a backup after upgrading. You can then use a free tool like textcompare.com to view the differences between your 'backup' file and the updated components.
Item 6: Enable CAPTCHA
CAPTCHA was introduced in the 1902.0 version of Communities. Follow the steps to Configure CAPTCHA for the Online Application.
Item 7: Your upgrade is complete.
Do not proceed to Upgrade Path Option 2. You may proceed to the Application Review Upgrade.
Upgrade Path Option 2: Manually add the code changes via a Change Set
If you completed all the steps for Upgrade Path Option 1, you do not need to complete the following changes. With Option 2, you do not install a new package but manually apply the latest changes to the unmanaged package using the information below. If you choose this option, 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.
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). |
---|---|---|
2209.0 |
2210.0 (October '22) |
Item 1: Replace the TX_TestCommunities Apex Class
@isTest(SeeAllData=false)
public static testMethod void testNoRole()
System.assertEquals(ApexPages.getMessages()[0].getDetail(), 'Account Owner Missing Role');
Boolean foundError = false; for(ApexPages.Message message: ApexPages.getMessages()) { if(message.getDetail() == 'Account Owner Missing Role') { foundError = true; break; } } System.assert(foundError, '\'Account Owner Missing Role\' error not found');
|
2210.0 |
2211.0 (November '22) |
Item 1: Update the TX_SiteLogin component
<div role="alert" aria-live="rude" aria-hidden="false" class="aria-alert" id="alertZone"> Updated line: <div role="alert" aria-live="assertive" aria-hidden="false" class="aria-alert" id="alertZone">
<div class="targetx-application-form-slides" role="main"> <h1 class="targetx-application-form-title" role="banner">Sign In</h1> Updated lines: <div class="targetx-application-form-slides"> <h1 class="targetx-application-form-title">Sign In</h1>
Item 2: Update the TX_CommunitiesProvision Visualforce page
<div class="targetx-header-university-icon"></div> Updated line: <div role="img" class="targetx-header-university-icon" aria-label="Logo"></div>
Item 3: Update the TX_CommunitiesTemplate Visualforce page
<div class="targetx-header-university-icon"></div> Updated line: <div role="img" class="targetx-header-university-icon" aria-label="Logo"></div>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"></meta> Updated line: <meta name="viewport" content="width=device-width, initial-scale=1"></meta>
<body><main> … </main></body>
|
2211.0 | 2402.0 (February '24) |
Item 1: Update TX_AutocompleteController Apex Class In this step, you’ll update the TX_AutocompleteController Apex class to public without sharing:
Original line: public with sharing class TX_AutocompleteController { Updated line: public without sharing class TX_AutocompleteController { 4. Save your changes. Item 2: Updates for School Picker In this step, you will verify if you are using Record Type filtering for Account in sharing settings and make necessary updates:
Example |
2402.0 | 2411.1 (November '24) |
Item 1: Update TX_CommunitiesSelfRegController Apex Class
//if(cs.size() == 0 && !hasDuplicateUser(email)) cs = insertContactFirst() ;
if(cs.size() > 0 && cs[0].AccountId != null) accountId = cs[0].AccountId;
|
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 2206.0 Visualforce Page:
TX_ChangePasswordUpgrading from 2209.0 Apex Class:
TX_TestCommunitiesUpgrading from 2210.0 Component:
TX_SiteLogin
Visualforce Page:
TX_CommunitiesProvision
TX_CommunitiesTemplateUpgrading from 2211.0 Apex Class:
TX_AutocompleteController
Note: If you need to create the additional Apex Classes from the article listed above, check the boxes for those as well:
- TX_FLSChk
- TX_testTools
- TX_FLSChk_Test
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.
Notes:
- If you get Code Coverage errors, please see the article: Resolving Code Coverage errors when validating an Inbound Change Set for Communities?
- When testing the 2402.0 update, use the TX_AutocompleteController to validate against the TX_AutocompleteControllerTests test.
- Otherwise, run the specified test for the inbound change set = TX_TestCommunities.
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 Application Review Upgrade.