dw.campaign
Class Campaign
A Campaign is a set of experiences (or site configurations) which may be
deployed as a single unit for a given time frame. The system currently
supports 3 types of experience that may be assigned to a campaign:
- Promotions
- Slot Configurations
- Sorting Rules
A campaign can have a start and end date or be open-ended. It may also have "qualifiers" which determine which customers the campaign applies to. The currently supported qualifiers are:
- Customer groups (where "Everyone" is a possible customer group)
- Source codes
- Coupons
Properties
active
:
boolean
(Read Only)
Returns 'true' if the campaign is currently active, otherwise
'false'.
A campaign is active if it is enabled and scheduled for now.
A campaign is active if it is enabled and scheduled for now.
applicableInStore
:
boolean
(Read Only)
Returns true if campaign is applicable to store, otherwise false.
applicableOnline
:
boolean
(Read Only)
Returns true if campaign is applicable to online site, otherwise false.
coupons
:
Collection
(Read Only)
The coupons assigned to the campaign.
customerGroups
:
Collection
(Read Only)
The customer groups assigned to the campaign.
description
:
String
(Read Only)
The internal description of the campaign.
endDate
:
Date
(Read Only)
The end date of the campaign. If no end date is defined for the
campaign, null is returned. A campaign w/o end date will run forever.
ID
:
String
(Read Only)
The unique campaign ID.
promotions
:
Collection
(Read Only)
Returns promotions defined in this campaign in no particular order.
sourceCodeGroups
:
Collection
(Read Only)
The source codes assigned to the campaign.
startDate
:
Date
(Read Only)
The start date of the campaign. If no start date is defined for the
campaign, null is returned. A campaign w/o start date is immediately
effective.
storeGroups
:
Collection
(Read Only)
Returns store groups assigned to the campaign.
stores
:
Collection
(Read Only)
Returns stores assigned to the campaign.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getCoupons()
:
Collection
Returns the coupons assigned to the campaign.
getCustomerGroups()
:
Collection
Returns the customer groups assigned to the campaign.
getDescription()
:
String
Returns the internal description of the campaign.
getEndDate()
:
Date
Returns the end date of the campaign.
getPromotions()
:
Collection
Returns promotions defined in this campaign in no particular order.
getSourceCodeGroups()
:
Collection
Returns the source codes assigned to the campaign.
getStartDate()
:
Date
Returns the start date of the campaign.
getStoreGroups()
:
Collection
Returns store groups assigned to the campaign.
getStores()
:
Collection
Returns stores assigned to the campaign.
isActive()
:
boolean
Returns 'true' if the campaign is currently active, otherwise 'false'.
isApplicableInStore()
:
boolean
Returns true if campaign is applicable to store, otherwise false.
isApplicableOnline()
:
boolean
Returns true if campaign is applicable to online site, otherwise false.
isEnabled()
:
boolean
Returns true if campaign is enabled, otherwise false.
Methods inherited from class
ExtensibleObject
Salesforce Commerce Cloud Courses
Salesforce B2C Commerce Developer - Certification Tests
Why risk failing the SFCC exam? Get 180 real questions, killer content, and everything you need to crush the Salesforce B2C Commerce Developer certification.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβpassing the certification exam isn't easy. That's where we come in.
Salesforce Javascript Developer I - Certification Tests
Not just another prep courseβthis is your shortcut to passing. Master JavaScript for Salesforce and go from 'hoping to pass' to knowing you will. Ready to start?
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
This isn't just another prep courseβit's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
Salesforce B2C Commerce Architect - Certification Tests
Think the Developer exam was hard? Welcome to the next level.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
The Salesforce B2C Commerce Architect certification is a whole different gameβcomplex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
Methods inherited from class
PersistentObject
Methods inherited from class
Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
Method Detail
getCoupons
getCoupons()
:
Collection
Returns the coupons assigned to the campaign.
Returns:
All coupons assigned to the campaign.
getCustomerGroups
getCustomerGroups()
:
Collection
Returns the customer groups assigned to the campaign.
Returns:
Customer groups assigned to campaign.
getDescription
getDescription()
:
String
Returns the internal description of the campaign.
Returns:
Internal description of campaign.
getEndDate
getEndDate()
:
Date
Returns the end date of the campaign. If no end date is defined for the
campaign, null is returned. A campaign w/o end date will run forever.
Returns:
End date of campaign.
getPromotions
getPromotions()
:
Collection
Returns promotions defined in this campaign in no particular order.
Returns:
All promotions defined in campaign.
getSourceCodeGroups
getSourceCodeGroups()
:
Collection
Returns the source codes assigned to the campaign.
Returns:
All source code groups assigned to campaign.
getStartDate
getStartDate()
:
Date
Returns the start date of the campaign. If no start date is defined for the
campaign, null is returned. A campaign w/o start date is immediately
effective.
Returns:
Start date of campaign.
getStoreGroups
getStoreGroups()
:
Collection
Returns store groups assigned to the campaign.
Returns:
All store groups assigned to the campaign.
getStores
getStores()
:
Collection
Returns stores assigned to the campaign.
Returns:
All stores assigned to the campaign.
isActive
isActive()
:
boolean
Returns 'true' if the campaign is currently active, otherwise
'false'.
A campaign is active if it is enabled and scheduled for now.
A campaign is active if it is enabled and scheduled for now.
Returns:
true of campaign is active, otherwise false.
isApplicableInStore
isApplicableInStore()
:
boolean
Returns true if campaign is applicable to store, otherwise false.
Returns:
true if campaign is applicable to store, otherwise false.