Updating Values in the Order and Delivery Fields

Available for Salesforce users only.

SDK allows you to insert values into custom fields when adding a product to an order.

  • The predefined list of fields on the following objects can be updated.

    • Order

    • Order Line Item

    • Delivery

    • Delivery Line Item

  • The following fields are filled automatically at the moment when a product is being added to the order and will be skipped when processed:

    Order Line Item Delivery Line Item Order Delivery
    • $.quantity

    • $.listPrice

    • orders__CatalogId__c

    • orders__CatalogLineItemId__c

    • orders__FreebieConditionId__c

    • orders__FreebieLevelId__c

    • orders__FreebieTypeId__c

    • orders__OrderId__c

    • orders__ParentId__c

    • orders__PriceBookId__c

    • orders__PriceBookLineItemId__c

    • orders__ProductComponentId__c

    • orders__PromotionId__c

    • orders__PromotionLineItemId__c

    • Lookup(Product)

    • $.listPrice

    • orders__DeliveryId__c

    • orders__OrderLineItemId__c

    • Lookup(Product )

    • orders__AccountId__c

    • orders__PriceBookId__c

    • orders__PricingProcedureId__c

    • orders__SalesOrganizationId__c

    • orders__OrderType__c

    • orders__Stage__c

    • Lookup(RetailStore)

  • Fields related to the Pricing Procedure field on the Pricing Procedure and a lookup from the Order object cannot be filled since they will be rewritten by the implemented logic.

    • For Pricing Procedure v.1, do not use the orders__UnitPrice__c, orders__TotalPrice__c, and orders__TotalDiscount__с fields.

    • For Pricing Procedure v. 2, do not use fields specified for the resultPrice and object keys.

To set up updating custom fields in objects when adding a product to an order to further calculate discounts and freebies, create an OM Settings record with the SDK Setting record type. For more information, refer to SDK Setting Field Reference.

When writing code for this logic, follow the version format according to the Version field of the OM Settings record. Otherwise, a warning will be shown that the calculator will be disabled and the total price will be calculated based on List Price values.

See also:

``