Explore Preconfigured Job Steps
Learning Objectives
After completing this unit, you’ll be able to:
- List some preconfigured system job steps.
- Describe how to configure replication processes to use in job steps.
- Explain why you might want to use the IncludeStepsFromJob system step.
Job steps are where the work of the job happens. They give you control over what the job actually does. There are two kinds of job steps: system and custom. When you don’t find a system step that does what you want, you ask a developer to create a custom step. In this unit, you focus on system job steps.
Identify B2C Commerce Job Steps
You use B2C Commerce job steps without adding code. However, you enter parameters. Each job step has its own parameters, applicable to the task that Salesforce B2C Commerce performs in that step.
For example, when you add the step ImportSiteArchive to a job, you specify a parameter for the name of the file to import. Job steps typically have both required and optional parameters.
System Step | Purpose |
|---|---|
CreateSiteMap | Creates a site map. |
ExecutePipeline (Deprecated) | Executes a legacy pipeline. This job step is deprecated. We recommend that you re-create pipelines using job steps. |
ExecutePreconfiguredCodeReplicationProcess | Executes a code replication process. |
ExecutePreconfiguredDataReplicationProcesss | Executes a data replication process. |
ExecuteScriptModule (Deprecated) | Executes a function exported by a script module. This job step is deprecated. We recommend that you create a custom job step to execute a script. |
ExportCatalog | Exports catalog data. |
ExportOrders | Exports order data. |
ExportPriceBook | Exports price data. |
ExportTaxTable | Exports tax data. |
ImportCatalog | Imports catalog data. |
ImportPriceBook | Imports price data. |
ImportSiteArchive | Imports a site archive file into the current instance. |
IncludeStepsFromJob | Includes steps from another job. |
SearchReindex | Rebuilds or updates search indexes. |
SiteExport | Exports site data. |
UndoPreconfiguredCodeReplicationProcess | Undoes a preconfigured code replication process that has already completed. |
UndoPreconfiguredDataReplicationProcess | Undoes a preconfigured data replication process that has already completed. |
UpdateStorefrontURLs | Updates the storefront URLs for objects like categories, products, folders, and content assets. |
To review a comprehensive list of the job steps, see B2C Commerce Job Steps.
Run or Undo Code or Data Replication Processes
A common reason to create jobs is to manage data or code replication processes.
B2C Commerce provides these four system steps for that purpose.
ExecutePreconfiguredCodeReplicationProcessExecutePreconfiguredDataReplicationProcessUndoPreconfiguredCodeReplicationProcessUndoPreconfiguredDataReplicationProcess
To use these replication system steps, you first use Business Manager to create a code or data replication process.
When you configure the code or data replication process for the job step, you set the replication process parameters like this:
- Process ID: Enter a meaningful name, because this is the value you use to configure the job step.
- Type: For data replication processes, select Transfer and Publication. For code replication processes, select Code Transfer and Activation.
- Activation: Select Job Step.
Reuse Steps from Another Job
You use the IncludeStepsFromJob system step to include steps from another job. When you add the IncludeStepsFromJob system step to a job, you configure the JobID parameter to specify the other job’s ID. This configuration makes it easy to create sets of standard steps that you run anytime you want.
Next Steps
In this unit, you learned about system job steps. You also dug deeper into some of the system step types. Next, you learn how to create custom job steps.
Resources
- Trailhead: Build Your Ecommerce Site with Salesforce B2C Commerce
- Trailhead: Salesforce B2C Commerce for Developers
- Salesforce Help: Jobs for B2C Commerce
- Salesforce B2C Developer Documentation: B2C Commerce Job Steps
