Cause
This issue happens when RecordTypeIDs are missing on the TaroWorks Mobile User record after upgrading to TaroWorks 7.3.1 for mobile users on Partner Community Login Licenses.
Solution
- Go to Setup > Developer Console.
- Click Debug > Open Execute Anonymous Window.
- Copy and Paste the following script that will fetch all TaroWorks Mobile User records with null RecordTypeId and update them :
-
List<gfsurveys__TaroWorks_Mobile_User__c> tmuList = [Select id, RecordTypeId, gfsurveys__License__c from gfsurveys__TaroWorks_Mobile_User__c where RecordTypeId = '']; Id partnerRecordId = [SELECT Id, SobjectType, Name from recordType Where sobjecttype = 'gfsurveys__TaroWorks_Mobile_User__c' and Name = 'Partner Users' LIMIT 1].Id; List<gfsurveys__TaroWorks_Mobile_User__c> tmuListToUpdate = new List<gfsurveys__TaroWorks_Mobile_User__c>(); for(gfsurveys__TaroWorks_Mobile_User__c tmu : tmuList){ tmu.RecordTypeId = partnerRecordId; tmuListToUpdate.add(tmu); } if(tmuListToUpdate.size() > 0){ update tmuListToUpdate; }
-
- Click Execute.
If still encountering this issue please Submit a ticket.
Comments
0 comments
Please sign in to leave a comment.