Loading
Salesforce Enforces New Security Requirements in Summer 2026Read More
Energy & Utilities Cloud
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
          Extend the Eligibility Criteria for Customer Acquisition Management

          Extend the Eligibility Criteria for Customer Acquisition Management

          Eligibility criteria are generally used to identify if the customer is qualified or potentially interested to enroll for certain products or services. The Customer Acquisition Management application uses the meter type owned by the customer as a criterion for filtering the products and services the customer is eligible for.

          Before You Begin

          As an Energy provider, you can extend eligibility criteria to include any parameters which meet your specific requirements. For example, if your customers have electronic vehicles (EVs), you can provide specific products that meet their EV charging needs.

          The Customer Acquisition Management application includes a base framework for catering to EV customers. You can extend this framework as per your requirements for EV customers.

          The reference UI includes a checkbox. When you select it, it displays three types of EV options that you can choose from.

          Electric Vehicle Eligibility Criteria

          You can choose to extend this functionality by modifying the UI and backend VIPs. There can be multiple implementations of this scenario depending on your requirements.

          This section provides a high-level procedure for one implementation, where context rules are used to add EV criteria to specific products.

          The application currently has three meter types configured - Smart, Standard, and Prepaid. As part of adding new eligibility criteria for EVs, a new meter type ElectricVehicle is introduced. Whenever the user selects the EV checkbox, the products qualifying ElectricVehicle criteria are displayed.

          Note
          Note

          This implementation assumes that the I am interested in Electric Vehicle options checkbox option is only visible for Electricity service type. Also, these instructions are based on re-using the existing Green Energy Tariff as the selected "EV Product". This product comes preconfigured in the reference product model.

          Warning
          Warning

          The implementation procedure described in this section demonstrates the high-level steps required to extend the eligibility criteria. The steps mentioned here may not fully meet your needs as each energy provider may have different market demands and requirements.

          Configure the Context Rules for EV Eligibility Criteria

          To extend the eligibility criteria for electric vehicles (EVs), add a new context rule for the meter type attribute.

          1. In the App Launcher, select Vlocity Product Console.
          2. Click Add next to the Rule. Create a new rule with the following General Properties:

            Field

            Value

            Name

            MeterTypeElectricVehicle

            Code

            MeterTypeElectricVehicle

            Expression Mode

            Or

            Active

            Checked

            Effective Start Date

            Enter today's date

          3. Under Rule Conditions, click Add Conditions and select Simple.

            Field

            Value

            Code

            MeterEV

            Context Dimension

            MeterType

            Operator

            ==

            Value

            ElectricVehicle

            Fail Level

            Hard Fail

          4. Click Save.
          5. Go back to the Vlocity Product Console.
          6. Click Add next to Rule Set. Create a new Rule Set with the following General Properties

            Field

            Value

            Name

            Electric Vehicles Only

            Description

            Electric Vehicle Only

            Rule Type

            Qualification

            Rule Purpose

            Eligibility

            Expression Mode

            Or

            Active

            Checked

            Effective Start Date

            Enter today's date

          7. Click Save.
          8. Select Children Rules and click New Child Rule.

            Add the EV Rule created in the previous step:

            Field

            Value

            Rule

            MeterTypeElectricVehicle

            Sequence

            40

            Action Taken

            Qualify

          9. Click Save.

          The new context rule for EVs is ready.

          Apply Context Rules to the Product

          Add the context rule for electric vehicles (EVs) to the Green Energy product specification.

          1. In the App Launcher, select Vlocity Product Designer.
          2. Select Products from the drop-down.
          3. In the Search box, search Green Energy and select Green Energy Tariff.
          4. Select Context Rules Tab.
          5. In the Qualification Rule Sets pane, search ElectricVehicle and click + next to MeterTypeElectricVehicle.

          Modify Reference UI

          Modify the reference UI to pass the EV option selected by the user to the backend Integration Procedure.

          1. In the App Launcher, select OmniScripts.
          2. On Find In page, search VEE and expand VEEDigitalOrder.
          3. Click the latest version of the VEEDigitalCachingVIP(Version <latest>).
          4. Click New Version.
          5. Clone element getOfferDetails (Integration Procedure Action).
          6. Modify the new cloned Integration Procedure Action element with the following field values:

            Field

            Value

            Name

            getElectricOfferDetails

            Conditional View

            Add new condition:

            • Condition Type: Show Element if True

            • View Condition: EVCheckbox==true

            Remote Properties

            Add new Key-Value pair under Extra Payload:

            • Key - electricMeterType

            • Value - ElectricVehicle

          7. Select getOfferDetails Integration Procedure.
          8. Under Conditional View, add a new condition with the following value
            • Condition Type: Show Element if True

            • View Condition: EVCheckbox!=true

          9. Click Activate Version.

          When the user selects the Electric Vehicle checkbox, the OmniScript passes the EV meter type value to the Integration Procedure.

          Modify the Digital Caching Integration Procedure

          Modify the VEEDigitalCachingVIP Integration Procedure to cache the EV products.

          1. In the App Launcher, select Omnistudio Integration Procedures.
          2. In Find In page, search VEE and expand VEE/DigitalCachingVIP.
          3. Click the latest version of the VEEDigitalCachingVIP(Version <latest>).
          4. In the Procedure Configuration, click Create Version.
          5. In Caching VIP create a new Data Mapper element to create a combination for Electric vehicles.
            "Product": [   
            {     "CatalogCode": "CONSUMERELECTRICITY",     
                   "MeterType": "ElectricVehicle"   
            }
          6. Add a List remote action to combine this new combination with the list of existing combinations for CatalogCode and MeterType. The final list will look like this:
            "Product": [     
            {       
                "CatalogCode": "CONSUMERELECTRICITY",
                "MeterType": "Standard"     
            },     
            {       
                "CatalogCode": "CONSUMERGAS",
                "MeterType": "Standard"     
            },     
            {       
                "CatalogCode": "CONSUMERELECTRICITY",
                "MeterType": "Smart"     
            },     
            {       
                "CatalogCode": "CONSUMERGAS",
                "MeterType": "Smart"     
            },     
            {       
                "CatalogCode": "CONSUMERELECTRICITY",
                "MeterType": "ElectricVehicle"  
            }   
            ]
          7. Perform getOffers remote action on the new list.

          Modify Digital Get Basket Integration Procedure

          Modify the VEEDigitalGetBasket Integration Procedure to fetch the EV products.

          1. In the App Launcher, select Omnistudio Integration Procedures.
          2. In Find In page, search VEE and expand VEE/DigitalGetBasket.
          3. Click the latest version of the VEEDigitalGetBasket(Version <latest>).
          4. In the Procedure Configuration, click Create Version.
          5. Clone the GetOffers remote action element.
          6. Update the new element with the following field values:

            Field

            Value

            Name

            GetElectricOffer

            ADDITIONAL INPUT/OUTPUT/FAILURE RESPONSE

            Modify the value of the key context formula value to =TOSTRING(CONCAT('{"MeterType":"',%electricMetertype%,'"}'))

          7. Merge the two lists obtained from GetOffers and GetElectricOffers using a List Action element similar to MergeOffersImageInbasket.
          8. Perform the GetOfferDetails and GetBasketConfig actions on the list obtained in the above step.
          9. Based on your requirements, you would have to extract the context for the Electric Vehicles from the merged list using formulas and DataMapper transformers. Since they are requirement-specific, the details of these are not included in this procedure. To understand more about the formulas and DataMappers added for the application, see the VEEDigitalCachingVIP Integration Procedure.
          10. To finish, be sure to Run Maintenance Jobs.
           
          Loading
          Salesforce Help | Article