Loading
Industries Order Management
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Set all DataRaptors to be synced

          Set all DataRaptors to be synced

          To set all dataraptor bundles to be synced, follow these steps:

          1. Click the gear icon, then click Developer Console.
            The Developer Console menu item.
          2. From the Debug menu, select Open Execute Anonymous Window.
            The Debug menu, with the Open Execute Anonymous Window option highlighted.
          3. 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;
          4. 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.
            The Logs tab, showing success.
           
          Loading
          Salesforce Help | Article