---
schema_version: "1"
id: 5b97d2ccc0a08c745c9f772f4aa0883d0afd48e95bfd6b94b1a76e7a852e54f0
title: EPC Create Context Dimension Batch Job
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_epc_create_context_dimension_batch_job.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_epc_create_context_dimension_batch_job.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: de3444b585b28be3bd396c1541ce47c1efed569d6164560bd02b855a29942e53
description: This job sets the Lookup to Context Dimension
products:
  - Communications
  - Media
  - Energy and Utilities
release: "264"
---
# EPC Create Context Dimension Batch Job

This job sets the Lookup to Context Dimension

A lookup to ContextDimension\_\_c has been added to the EntityFilterCondition\_\_c table as of release CME Winter '18. In earlier releases, the FieldName\_\_c field was used to set the ContextDimension. At admin time, for a simple rule condition, it is easier and less error-prone if the Context Dimension is a lookup and not a text field. This batch job is created to populate this lookup for records created prior to CME Winter '18 release. Records created in CME Winter '18 release and later have this lookup populated.

Run the batch job in execute anonymous:

`Database.executeBatch(new EPCCreateContextDimensionBatchJob(), 1);`

If you run this job on an installed package, as is usually the case at a customer site, then run:

`Database.executeBatch(new vlocity_cmt.EPCFixCompiledAttributeOverrideBatchJob (), 1);`