EPC Update Attribute Configurable Batch Job

This job sets the IsConfigurable__c for products with attributes created prior to the use of the Product Console. For products that were created in legacy Salesforce Aloha page through the Attributes Setup component, the IsConfigurable__c flag was used differently than it is in Product Console.

To update the flag for usage in Product Console, change the flag according to the logic:

  1. If IsReadOnly__c is False and IsConfigurable__c is False, then set IsConfigurable__c to True. Otherwise, do not change IsConfigurable__c.
  2. Enter a Datetime where all attribute assignments created before that date will be updated
  3. Run the batch job in execute anonymous:
    Datetime createdBeforeDate = Datetime.newInstanceGmt(2016, 1, 1, 0, 0, 0); //example, change to reflect your date
    UpdateAttributeConfigurableBatchJob epcBatch = new UpdateAttributeConfigurableBatchJob(createdBeforeDate);
    Database.executeBatch(epcBatch);