You are here:
Set all DataRaptors to be synced
To set all dataraptor bundles to be synced, follow these steps:
- Click the gear icon, then click Developer Console.
- From the Debug menu, select Open Execute Anonymous Window.
- Replace whatever is in the window with the following text, then click Execute.
// Update DRBundles where OMplusSyncEnabled__c = NULL // associated DRMapItems will be updated through triggers List<vlocity_cmt__DRBundle__c> bundles = [ SELECT Id, vlocity_cmt__OMplusSyncEnabled__c FROM vlocity_cmt__DRBundle__c WHERE vlocity_cmt__OMplusSyncEnabled__c = NULL ]; for (vlocity_cmt__DRBundle__c bundle : bundles) { bundle.vlocity_cmt__OMplusSyncEnabled__c = true; } update bundles; // Update DRMapItems where OMplusSyncEnabled__c = NULL // just in case the triggers were disabled List<vlocity_cmt__DRMapItem__c> mapItems = [ SELECT Id, vlocity_cmt__OMplusSyncEnabled__c FROM vlocity_cmt__DRMapItem__c WHERE vlocity_cmt__OMplusSyncEnabled__c = NULL ]; for (vlocity_cmt__DRMapItem__c mapItem : mapItems) { mapItem.vlocity_cmt__OMplusSyncEnabled__c = true; } update mapItems; - Click the Logs tab at the bottom of the window to make sure that the script executed correctly. If not, there will be some information about what went wrong.




