Deprecated Script API
Deprecated Classes
AgentUserStatusCodes
see AgentUserStatusCodes - this class should only be used for the LoginAgentUser / LoginOnBehalfCustomer pipelets
CampaignMgr
Use PromotionMgr instead.
DateUtils
See each method for additional information.
ServiceRegistry
It is recommended to use the LocalServiceRegistry instead of this class.
Deprecated Constants
dw.io.File.REALMDATA
Folder to be removed.
dw.net.FTPClient.DEFAULT_GET_STRING_SIZE
The default size is not supported any more. The get() methods returning a String will always try to return MAX_GET_STRING_SIZE bytes instead.
dw.net.FTPClient.DEFAULT_GET_FILE_SIZE
The default size is not supported any more. The get() methods returning a file will always try to return MAX_GET_FILE_SIZE bytes instead.
dw.order.ProductShippingLineItem.PRODUCT_SHIPPING_ID
this reserved constant is deprecated.
dw.catalog.Recommendation.RECOMMENDATION_TYPE_CROSS_SELL
Use the integer value instead. The recommendation types and their meanings are now configurable in the Business Manager.
dw.catalog.Recommendation.RECOMMENDATION_TYPE_UP_SELL
Use the integer value instead. The recommendation types and their meanings are now configurable in the Business Manager.
dw.catalog.Recommendation.RECOMMENDATION_TYPE_OTHER
Use the integer value instead. The recommendation types and their meanings are now configurable in the Business Manager.
dw.util.StringUtils.ENCODE_TYPE_WML
Don't use this constant anymore.
Deprecated Constructors
dw.crypto.KeyRef.KeyRef(alias : String, password : String)
use KeyRef(String) instead
Deprecated Methods
static dw.campaign.CampaignMgr.applyProductPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean
static dw.campaign.CampaignMgr.applyOrderPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean
static dw.campaign.CampaignMgr.applyShippingPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean
static dw.campaign.CampaignMgr.applyBonusPromotions(lineItemCtnr : LineItemCtnr, promotions : Collection) : boolean
Use PromotionMgr instead.
static dw.campaign.CampaignMgr.getApplicablePromotions(lineItemCtnr : LineItemCtnr) : Collection
There is no replacement for this method.
static dw.campaign.CampaignMgr.getPromotionByCouponCode(couponCode : String) : Promotion
Coupons are now related to multiple promotions. Method returns the first promotion associated with the coupon in case of multiple assigned promotions
static dw.campaign.CampaignMgr.getPromotion(couponCode : String) : Promotion
Coupons are now related to multiple promotions. Method returns the first promotion associated with the coupon code in case of multiple assigned promotions.
dw.catalog.Product.isAvailable() : boolean
Use getAvailabilityModel().isInStock() instead
dw.catalog.Product.getImage() : MediaFile

Commerce Cloud Digital introduces a new more powerful product image management. It allows to group product images by self-defined view types (e.g. 'large', 'thumbnail', 'swatch') and variation values (e.g. for attribute color 'red', 'blue'). Images can be annotated with pattern based title and alt. Product images can be accessed from Digital locations or external storage locations.

Please use the new product image management. Therefore you have to set up the common product image settings like view types, image location, default image alt and title for your catalogs first. After that you can group your product images by the previously defined view types in context of a product. Finally use getImages(String) and getImage(String, Number) to access your images.

dw.catalog.Product.getThumbnail() : MediaFile

Commerce Cloud Digital introduces a new more powerful product image management. It allows to group product images by self-defined view types (e.g. 'large', 'thumbnail', 'swatch') and variation values (e.g. for attribute color 'red', 'blue'). Images can be annotated with pattern based title and alt. Product images can be accessed from Digital locations or external storage locations.

Please use the new product image management. Therefore you have to set up the common product image settings like view types, image location, default image alt and title for your catalogs first. After that you can group your product images by the previously defined view types in context of a product. Finally use getImages(String) and getImage(String, Number) to access your images.

dw.catalog.Product.setAvailableFlag(available : boolean) : void
Don't use this method anymore.
dw.catalog.ProductSearchModel.getProducts() : Iterator
This method should not be used because loading Products for each result of a product search is extremely expensive performance-wise. Please use getProductSearchHits() to iterate ProductSearchHits instead.
dw.catalog.ProductSearchModel.setSortingCondition(attributeID : String, direction : Number) : void
This method is subject to removal. Use setSortingRule(SortingRule) instead.
dw.catalog.ProductVariationModel.isSelectedAttributeValue(attribute : ObjectAttributeDefinition, value : ObjectAttributeValueDefinition) : boolean
Use isSelectedAttributeValue(ProductVariationAttribute, ProductVariationAttributeValue) to identify if the specified product variation attribute value is the one currently selected.
dw.catalog.ProductVariationModel.getAttributeDefinitions() : Collection
This method is deprecated since custom code should work with ProductVariationAttributes and not directly with their corresponding ObjectAttributeDefinitions. Use getProductVariationAttributes() to get the product variation attributes.
dw.catalog.ProductVariationModel.getAllValues(attribute : ObjectAttributeDefinition) : Collection
This method is deprecated since custom code should work with ProductVariationAttributes and not directly with their corresponding ObjectAttributeDefinitions. Use getAllValues(ProductVariationAttribute) to get the collection of ProductVariationAttributeValue instances instead.
dw.catalog.ProductVariationModel.getFilteredValues(attribute : ObjectAttributeDefinition) : Collection
Use getFilteredValues(ProductVariationAttribute) to get the sorted and calculated collection of product variation attribute values.
dw.catalog.ProductVariationModel.getSelectedValue(attribute : ObjectAttributeDefinition) : ObjectAttributeValueDefinition
Use getSelectedValue(ProductVariationAttribute) to get the selected product variation attribute value for the specified attribute.
dw.catalog.ProductVariationModel.getHtmlName(attribute : ObjectAttributeDefinition) : String
Use getHtmlName(ProductVariationAttribute) to get the HTML representation of the product variation attribute id.
dw.catalog.ProductVariationModel.getHtmlName(prefix : String, attribute : ObjectAttributeDefinition) : String
Use getHtmlName(String, ProductVariationAttribute) to get the HTML representation of the product variation attribute id with the custom prefix.
dw.catalog.ProductVariationModel.urlSelectVariationValue(action : String, attribute : ObjectAttributeDefinition, value : ObjectAttributeValueDefinition) : String
Use urlSelectVariationValue(String, ProductVariationAttribute, ProductVariationAttributeValue) to construct an URL to select the specified product variation attribute value of the specified product variation attribute.
dw.catalog.ProductVariationModel.urlUnselectVariationValue(action : String, attribute : ObjectAttributeDefinition) : String
Use urlUnselectVariationValue(String, ProductVariationAttribute) to unselect the product variation attribute value of the specified product variation attribute.
dw.catalog.SearchModel.getRefinementValue(attributeID : String) : String
Use getRefinementValues(String) to get the collection of refinement values.
dw.crypto.MessageDigest.digest(algorithm : String, input : Bytes) : Bytes
Deprecated because the digest algorithm should be the one set in the constructor.
dw.crypto.MessageDigest.digest(input : String) : String
Deprecated because the conversion of the input to bytes using the default platform encoding and the hex-encoded return value are not generally appropriate.
dw.customer.Credentials.getAuthenticationProviderID() : String
As of release 17.2, replaced by methods on the new class ExternalProfile which can be obtained from Customer.getExternalProfiles()
Until the method is fully removed from the API it will get the Authentication Provider from the first element of the Customer.getExternalProfiles() collection
dw.customer.Credentials.getExternalID() : String
As of release 17.2, replaced by methods on the new class ExternalProfile which can be obtained from Customer.getExternalProfiles()
Until the method is fully removed from the API it will get the External ID from the first element of the Customer.getExternalProfiles() collection
dw.customer.Credentials.setAuthenticationProviderID(authenticationProviderID : String) : void
As of release 17.2, replaced by methods on the new class ExternalProfile which can be obtained from Customer.getExternalProfiles()
Until the method is fully removed from the API it will set the Authentication Provider on the first element of the Customer.getExternalProfiles() collection if there is only one. It will create the collection and add an element if no elements are present. It will not change anything and will log an error if there are more than one elements in the collection.
dw.customer.Credentials.setExternalID(externalID : String) : void
As of release 17.2, replaced by methods on the new class ExternalProfile which can be obtained from Customer.getExternalProfiles()
Until the method is fully removed from the API it will set the ExternalID on the first element of the Customer.getExternalProfiles() collection if there is only one. It will create the collection and add an element if no elements are present. It will not change anything and will log an error if there are more than one elements in the collection.
static dw.customer.CustomerMgr.loginCustomer(login : String, password : String, rememberMe : boolean) : Customer
use authenticateCustomer(login, password) and loginCustomer(authStatus, rememberMe) instead since they correctly check for expired passwords
dw.io.File.getPath() : String
Use getFullPath() to access the full path. This method does not return the correct path for files in the CATALOGS or LIBRARIES virtual directories.
dw.io.Reader.read(length : Number) : String
use readN(Number) instead which does not throw an exception if the stream is exhausted
dw.net.FTPClient.get(path : String, encoding : String, file : File, maxGetSize : Number) : boolean
The maxGetSize attribute is not supported anymore. Use the method get(String, String, File) instead.
dw.net.FTPClient.getBinary(path : String, file : File, maxGetSize : Number) : boolean
The maxGetSize attribute is not supported anymore. Use the method getBinary(String, File) instead.
dw.net.FTPClient.get(path : String, maxGetSize : Number) : String
The maxGetSize attribute is not supported anymore. Use the method get(String) instead.
dw.net.FTPClient.get(path : String, encoding : String, maxGetSize : Number) : String
The maxGetSize attribute is not supported anymore. Use the method get(String, String) instead.
dw.net.HTTPClient.open(method : String, url : String, async : boolean, user : String, password : String) : void
dw.order.Basket.setCustomerNo(customerNo : String) : void
The method has been deprecated. Please use Order.setCustomer(Customer) instead for registered customer. For guest customer the customerNo is usually generated during order creation and the attribute is set at order level.
dw.order.CouponLineItem.getPromotion() : Promotion
A coupon code and its coupon can be associated with multiple promotions. Therefore, this method is not appropriate anymore. For backward-compatibility, the method returns one of the promotions associated with the coupon code.
dw.order.CouponLineItem.getPromotionID() : String
A coupon code and it's coupon can be associated with multiple promotions. Therefore, this method is not appropriate anymore. For backward-compatibility, the method returns the ID of one of the promotions associated with the coupon code.
dw.order.LineItem.setNetPrice(aValue : Money) : void
Use updatePrice(Money) which sets the base price and also the net price if the line item is based on net pricing.
dw.order.LineItem.setGrossPrice(aValue : Money) : void
Use updatePrice(Money) which sets the base price and also the gross price if the line item is based on gross pricing.
dw.order.Order.getPaymentTransaction() : PaymentTransaction
Use LineItemCtnr.getPaymentInstruments() to get the list of PaymentInstrument instances and then use getPaymentTransaction() method on each PaymentInstrument to access the individual transactions.
dw.order.Order.getOrderExportXML(encryptionMethod : String, encryptionKey : String, encryptUsingEKID : boolean) : String
dw.order.PaymentInstrument.getEncryptedCreditCardNumber(algorithm : String, publicKey : String) : String
The method has been deprecated. Please use getEncryptedCreditCardNumber(String, CertificateRef) instead.
dw.order.PriceAdjustment.isBasedOnCampaign() : boolean
The method has been deprecated since the name implies that there is a related Campaign, which may not be true. Use !isCustom() instead.
dw.order.Shipment.getMerchandizeTotalPriceAdjustments() : Collection
Shipments cannot have merchandize price adjustments, therefore this method will always return an empty collection
dw.order.Shipment.createShippingPriceAdjustment(promotionID : String) : PriceAdjustment
Deprecated in favor of ShippingLineItem.createShippingPriceAdjustment(String) which explicitly relates the price adjustment to a shipping line item.
dw.order.Shipment.removeShippingPriceAdjustment(priceAdjustment : PriceAdjustment) : void
Deprecated in favor of ShippingLineItem.removeShippingPriceAdjustment(PriceAdjustment) since shipping price adjustments belong to a specific shipping line item.
dw.suggest.Suggestions.hasSuggestedPhrases() : boolean
Please use method getSearchPhraseSuggestions() to obtain the suggested search phrases.
dw.suggest.Suggestions.hasSuggestedTerms() : boolean
Please use method getSearchPhraseSuggestions() to obtain the suggested search phrases.
dw.suggest.Suggestions.getSuggestedPhrases() : Iterator
Please use method getSearchPhraseSuggestions() to obtain the suggested search phrases.
dw.suggest.Suggestions.getSuggestedTerms() : Iterator
Please use method getSearchPhraseSuggestions() to obtain the suggested search phrases.
dw.system.Site.isOMSEnabled() : boolean
This item is deprecated.
static dw.util.DateUtils.nowInUTC() : Date
Create a new Calendar object and set the time zone "UTC" instead.
static dw.util.StringUtils.formatDate(date : Date, format : String, locale : String) : String
static dw.util.StringUtils.stringToWml(str : String) : String
Don't use this method anymore
static dw.web.URLUtils.abs(appendSID : boolean, action : URLAction, params : URLParameter...) : URL
static dw.web.URLUtils.abs(appendSID : boolean, action : String, namesAndParams : String...) : URL
Use abs(String, String...) instead.
static dw.web.URLUtils.http(appendSID : boolean, action : URLAction, params : URLParameter...) : URL
static dw.web.URLUtils.http(appendSID : boolean, action : String, namesAndParams : String...) : URL
static dw.web.URLUtils.https(appendSID : boolean, action : URLAction, params : URLParameter...) : URL
Use the https(URLAction, URLParameter...) method instead.
static dw.web.URLUtils.https(appendSID : boolean, action : String, namesAndParams : String...) : URL
Use the https(String, String...) method instead.
static dw.web.URLUtils.url(appendSID : boolean, action : URLAction, params : URLParameter...) : URL
static dw.web.URLUtils.url(appendSID : boolean, action : String, namesAndParams : String...) : URL
Use url(String, String...) instead.
static TopLevel.global.eval(code : String) : Object
The eval() function is deprecated, because it's potential security risk for server side code injection.