Introduction
After upgrading to TaroWorks 7.3.X, the detail or edit page of the TaroWorks Mobile Users tab for Mobile Users on Partner Community License or Partner Community Login licenses may not load correctly in some cases.
An update needs to be made on existing TaroWorks Mobile Users to add Partner User record type so that they can be viewed correctly after the upgrade.
This article will cover the following:
- A. Update TaroWorks Mobile Users on Partner Community License. - This will update for mobile users on Partner Community Licenses.
- B. Update TaroWorks Mobile Users on Partner Community Login License. - This will update for mobile users on Partner Community Login Licenses.
A. Update TaroWorks Mobile Users on Partner Community License.
- Go to Setup > Developer Console.
- Click Debug >Open Execute Anonymous Window.
- Copy and paste the below script on the Enter Apex Code pane.
String partnerCommunityLicence = 'Partner Community';
// Query the count of taroworks mobile users
Integer tmuCount = [
SELECT
Count()
FROM
gfsurveys__TaroWorks_Mobile_User__c
WHERE
gfsurveys__License__c = :partnerCommunityLicence
];
if(tmuCount > 0) {
Id batchInstanceId = Database.executeBatch(
new gfsurveys.BatchToUpgradeExtistingTMURecords(),
100
);
} - Click Execute.
B. Update TaroWorks Mobile Users on Partner Community Login License.
- Go to Setup > Developer Console.
- Click Debug >Open Execute Anonymous Window.
- Copy and paste the below script on the Enter Apex Code pane.
String partnerCommunityLicence = 'Partner Community Login';
// Query the count of taroworks mobile users
Integer tmuCount = [
SELECT
Count()
FROM
gfsurveys__TaroWorks_Mobile_User__c
WHERE
gfsurveys__License__c = :partnerCommunityLicence
];
if(tmuCount > 0) {
Id batchInstanceId = Database.executeBatch(
new gfsurveys.BatchToUpgradeExtistingTMURecords(),
100
);
} - Click Execute.
Conclusion
Congratulations you've successfully updated the Record Type to the existing Taroworks Mobile Users. Please continue to 07. Update TaroWorks Mobile User Object.
Comments
0 comments
Please sign in to leave a comment.