This step is important if you have existing TaroWorks Forms that have questions with hidden dynamic operations configured so that responses can be mapped correctly.
- Go to Setup > Developer Console.
- Click Debug > Open Execute Anonymous Window.
- Copy and Paste the following script that will determine whether Dynamic Operations should be run or not when the question is hidden:
-
List<gfsurveys__Survey__c> listOfSurvey = [Select Id, Name, gfsurveys__Status__c, gfsurveys__RunHiddenDynamicOperations__c
From gfsurveys__Survey__c where gfsurveys__RunHiddenDynamicOperations__c = False LIMIT 100];
List<gfsurveys__Survey__c> surveyUpdateLst = new List<gfsurveys__Survey__c>();
for(gfsurveys__Survey__c surv : listOfSurvey){
if(surv.gfsurveys__RunHiddenDynamicOperations__c == false){
surv.gfsurveys__RunHiddenDynamicOperations__c = true;
surveyUpdateLst.add(surv);
}
}
if(!surveyUpdateLst.isEmpty()) {
update surveyUpdateLst;
}
-
- Click Execute.
*Please review your forms to verify the checkbox on Run Hidden Dynamic Operations is TRUE. If it doesn't, please try to run the script with different numbers: 100, 500, 5000
Conclusion
Congratulations you've updated the existing TaroWorks Forms. Please continue to 06. Update TaroWorks User Profile
Comments
0 comments
Please sign in to leave a comment.