dw.campaign
Class SourceCodeInfo

Class representing a code (i.e. a "source code") that has been applied to a
customer's session. Source codes can qualify customers for different
campaigns, promotions, and other site experiences from those that the typical
customer sees. Codes are organized into source code groups.
Typically, a code is applied to a customer's session automatically by
Commerce Cloud Digital when a customer accesses a Digital URL with a well
known request parameter in the querystring. A code may also be explicitly
applied to a customer session using the SetSourceCode
pipelet.
Constants
STATUS_ACTIVE
:
Number = 2
The literal source-code is found and currently active.
STATUS_INACTIVE
:
Number = 1
The literal source-code is found but not active.
STATUS_INVALID
:
Number = 0
The literal source-code is not found in the system.
Properties
code
:
String
(Read Only)
The literal source-code.
group
:
SourceCodeGroup
(Read Only)
The associated source-code group.
redirect
:
URLRedirect
(Read Only)
Retrieves the redirect information from the last processed SourceCodeGroup (active or inactive). If none exists,
then the redirect information is retrieved from the source-code preferences, based on the active/inactive status
of the SourceCodeGroup. The redirect information is then resolved to the output URL. If the redirect information
cannot be resolved to a URL, or there is an error retrieving the preferences, then null is returned.
status
:
Number
(Read Only)
The status of the source-code. One of the following:
STATUS_INVALID - The source code is not found in the system.
STATUS_INACTIVE - The source code is found but not active.
STATUS_INACTIVE - The source code is found and active.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getGroup()
:
SourceCodeGroup
The associated source-code group.
getRedirect()
:
URLRedirect
Retrieves the redirect information from the last processed SourceCodeGroup (active or inactive).
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
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
getGroup
getGroup()
:
SourceCodeGroup
The associated source-code group.
Returns:
the source-code group.
getRedirect
getRedirect()
:
URLRedirect
Retrieves the redirect information from the last processed SourceCodeGroup (active or inactive). If none exists,
then the redirect information is retrieved from the source-code preferences, based on the active/inactive status
of the SourceCodeGroup. The redirect information is then resolved to the output URL. If the redirect information
cannot be resolved to a URL, or there is an error retrieving the preferences, then null is returned.
Returns:
URLRedirect containing the location and status code, null in case of no redirect was found
getStatus
getStatus()
:
Number
The status of the source-code. One of the following:
STATUS_INVALID - The source code is not found in the system.
STATUS_INACTIVE - The source code is found but not active.
STATUS_INACTIVE - The source code is found and active.
Returns:
the status.