Loading
Get Started with Communications, Media, and Energy & Utilities (CME)...
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
          OmniFDOWrapper

          OmniFDOWrapper

          The OmniFDOWrapper implementation implements the change to order, or asset to order, process.

          Interface

          VlocityOpenInterface2

          Available Methods

          The available methods are implemented in DefaultFDOImplementation, which implements VlocityOpenInterface. DefaultFDOImplementation is not documented because it is a public class.

          canCreateFDO

          The canCreateFDO method returns True or False depending on whether the Change To Order can be performed for the given request date.

          The default implementation is implemented in DefaultFDOImplementation class; which implements VlocityOpenInterface.

          • inputMap

            Type: String Object map

            • accountId: Required. The ID of the account

            • assetIdList: Required. A list of assets to change to order.

            • RequestDate: Required. The stare of the order is calculated based on the request date. If the date is not provided, today's date is used. RequestDate is formatted as follows:

              "Request Date": {"RequestDate": "2020-07-31"}
          • Options

            Type: String Object map

          • outputMap

            Type: String Object map

          createFDO

          Performs the Change To Order and creates a new order with the given request Date. Assets whose ProvisioningStatus = 'Deleted' or Action = 'Disconnect' are not considered.

          The default implementation is implemented in the DefaultFDOImplementation class, which implements VlocityOpenInterface.

          • inputMap

            Type: String Object map

            • accountId: Required. The ID of the account.

            • assetIdList: Required. A list of assets that must change to order.

            • OrderId: (Optional) Providing an OrderId will add a new asset to an existing order. If not provided, a new order is created with the selected asset.

            • price: (Optional) If set to true (the default), pricing is run. Setting this value to false can improve performance.

            • RequestDate: Required. If not provided, today's date is used. The state of the order is calculated based on the state of the request date. RequestDate requires the following format:

              "Request Date": {"RequestDate": "2020-07-31"}
            • validate: (Optional) If set to true (the default), validation is run. Setting this value to false can improve performance.

          • Options

            Type: String Object map.

          • OutputMap

            fdoId: The ID of the future-dated order.

          Sample Code

          global with sharing class OmniFDOWrapper implements VlocityOpenInterface2 {
             global Boolean invokeMethod(String methodName, Map<String, Object> input, 
             Map<String, Object> output, Map<String, Object> options) {
                if (methodName.equals('createFDO')) {
                   createFDO(input, output, options);
                }
                if (methodName.equals('canCreateFDO')) {
                   canCreateFDO(input, output, options);
                }

                return false;
             }
          }
           
          Loading
          Salesforce Help | Article