Update Product Page
Updates one or more text fields on a product page in Sana Admin. Use this action to keep product page content up to date automatically, for example, when product information changes in your PIM system or another external source.
Product data in Sana Commerce Cloud comes from your ERP system, and a PIM system can enrich it with descriptions, attributes, and images. The product page fields updated by this action are the ones you can also edit manually in Sana Admin on the product page. The action changes only the product page information in Sana Admin. It does not change data in your ERP or PIM system.
All product fields are disabled by default. The action updates only the fields that you enable. Fields that remain disabled keep their current values.
| Field | Description |
|---|---|
| Step name | A descriptive name for this action. You can use the default name or enter your own. |
| Product ID |
The product whose page to update. Select a product ID (string) or a product variable.
Enter a value manually or click Add variable to use data from the trigger or a previous step. |
| Page title |
Turn on this option to update the product page title. The title is shown on the product details page in the webstore.
In the Page title field, enter the new page title or click Add variable to use data from the trigger or a previous step. Leave the field empty to clear the existing value. If no page title is set, Sana shows the product name from the ERP system. |
| Main description |
Turn on this option to update the main description. The description is shown on the product details page in the webstore.
In the Main description field, enter the new description or click Add variable to use data from the trigger or a previous step. Leave the field empty to clear the existing value. |
| Meta title |
Turn on this option to update the meta title. The meta title is shown on the browser tab of the open page.
In the Meta title field, enter the new meta title or click Add variable to use data from the trigger or a previous step. Leave the field empty to clear the existing value. |
| Meta description |
Turn on this option to update the meta description. Search engines can use the meta description to show a short description of the page in search results.
In the Meta description field, enter the new meta description or click Add variable to use data from the trigger or a previous step. Leave the field empty to clear the existing value. |
If you enable a field and leave it empty, the action clears the existing value of this field on the product page in Sana Admin. If you do not want to change a field, keep it disabled. When you use a variable, make sure it always contains a value; otherwise, the existing value is cleared.
For more information about the product page fields, see Basic Settings, Product Description, and SEO.
Using Variables
The Product ID, Page title, Main description, Meta title, and Meta description fields support variables. Instead of entering fixed values, you can insert a variable so that each time the workflow runs, the product page is updated with the data from that run. This is what makes the action useful for automation: one workflow can update any number of product pages, each with different product information.
To use a variable, click Add variable below the field and select the necessary variable from the list. The list contains the variables available at this point in the workflow. Depending on how you design the workflow, the data can come from:
-
The payload variable of the API call trigger, when an external system sends the product data to the workflow.
-
The result variable of the Parse JSON action, when the data is received in a response to the Send HTTP Request action.
-
The variable of a data retrieval action, such as Get products, when you update the product pages in a loop.
Examples
Update a Product Page When Data Changes in a PIM System
Use the API call trigger when your PIM system or an integration platform can send an HTTP POST request when product information changes.
-
API call trigger: Select Supports JSON payload. Set the payload variable Product to the Object type with the fields ProductId, Title, Description, MetaTitle, and MetaDescription, all of type String. Mark ProductId as required.
-
Update product page:
-
Product ID: Product.ProductId
-
Page title: enable and use the variable Product.Title
-
Main description: enable and use the variable Product.Description
-
Meta title: enable and use the variable Product.MetaTitle
-
Meta description: enable and use the variable Product.MetaDescription
Retrieve Product Information from a PIM System on Schedule
Use the Scheduled time trigger when your PIM system provides a REST API and you want Sana to request the data.
-
Scheduled time trigger: Run the workflow, for example, every night.
-
Send HTTP Request action: Send a GET request to the PIM API to retrieve the product data. Save the response in a variable, for example, PimResponse.
-
Parse JSON action: Parse PimResponse and save the result in the Product variable of the Object type with the fields you need.
-
Update product page: Insert the Product fields in the necessary fields, as in the previous example.