WEBVTT

00:00.160 --> 00:04.700
In this video, we'll show you how easy it is
to use our integration to create Salesforce

00:04.740 --> 00:08.720
Commerce Cloud content assets from
content items in dynamic content.

00:09.960 --> 00:11.320
Here's a look at the architecture.

00:12.340 --> 00:15.780
A content item is published from
the dynamic content production view.

00:17.060 --> 00:21.920
A webhook event is generated with a payload
containing information about the content item.

00:23.640 --> 00:27.880
If the content type of the asset that's just
been published is one of the types set up when

00:27.920 --> 00:32.250
the integration was configured, it starts
processing the content item information.

00:33.309 --> 00:37.400
The integration will then retrieve any
mappings that you set up for this content type,

00:37.860 --> 00:41.620
and map the properties from the content
item to the corresponding fields

00:41.640 --> 00:42.700
in the content asset.

00:43.980 --> 00:48.280
It will then use the Amplience content
rendering service to retrieve the content item

00:48.340 --> 00:49.540
in HTML format.

00:50.350 --> 00:54.830
The Handlebars template specified when the
integration was configured is used to generate

00:54.860 --> 00:57.500
the HTML for the content item.

00:57.720 --> 01:01.980
The content asset is then created in
Salesforce Commerce Cloud, containing the

01:02.040 --> 01:06.580
mapped fields, the HTML content,
and any associated folders.

01:08.000 --> 01:11.780
You can now preview the content asset
within Salesforce Commerce Cloud.

01:13.480 --> 01:17.030
Let's take a look at how an example
content asset integration is configured.

01:17.760 --> 01:23.480
To view an integration, go to the Integrations
home page and choose view or add Salesforce

01:23.520 --> 01:26.940
Commerce Cloud integration, or
choose one we've already set up.

01:27.620 --> 01:31.390
In the setup video, we walked you through
setting up a content slot integration.

01:32.060 --> 01:37.020
For a content asset integration, you'll need
to add content type configurations for each

01:37.030 --> 01:39.720
content type that your integration supports.

01:40.380 --> 01:44.800
When a content item is published in dynamic
content, the integration will only generate a

01:44.840 --> 01:49.740
content asset in Salesforce Commerce Cloud if
the content item has been created from one of

01:49.800 --> 01:50.820
these content types.

01:51.440 --> 01:55.960
In this example, the integration supports
three content types, but you can add up to 20.

01:57.000 --> 02:00.600
Within each content type configuration,
you can set up field mappings.

02:01.040 --> 02:05.500
This allows you to map properties in the
content type to fields in the Salesforce

02:05.600 --> 02:07.100
Commerce Cloud content asset.

02:08.080 --> 02:12.600
Here, the content ID is mapped to a property
called content asset ID in the content type.

02:13.140 --> 02:17.500
This will allow the user to enter a value
that will be used for the asset's ID.

02:18.160 --> 02:23.300
We're also setting the content asset to be
online and searchable and allowing the user to

02:23.360 --> 02:28.840
enter a value for the page URL and setting
the content asset title to the title of the

02:28.880 --> 02:33.180
content item.
The mappings use JSON path syntax, and you can

02:33.200 --> 02:35.710
find a lot more about
that in the documentation.

02:36.420 --> 02:38.549
You can also choose to include folder mappings.

02:38.960 --> 02:42.960
So for this blog content type, we're
mapping four folders with values

02:42.980 --> 02:44.100
that the user can choose.

02:47.200 --> 02:50.640
Here's a blog content item we've
created in dynamic content.

02:50.700 --> 02:54.300
We've given it an asset ID
of spring season 19 blog.

02:54.820 --> 02:58.680
This is what we'll use to search
for the content asset in SFCC.

02:59.220 --> 03:02.540
We've also set up some folders that
will be mapped to the content asset.

03:02.600 --> 03:11.520
And

03:11.540 --> 03:15.200
the content item consists of
three images and some text.

03:21.580 --> 03:23.560
And here's what it looks
like in the visualization.

03:23.800 --> 03:30.340
So to create the content

03:30.560 --> 03:33.340
asset, all we need to do is
publish the content item.

03:33.820 --> 03:45.890
And

03:45.900 --> 03:49.480
it's published.
So a new content item should have been created

03:49.490 --> 03:51.720
in SFCC.
So let's take a look.

03:52.200 --> 03:54.780
We'll search for the asset
using the ID we gave it.

03:59.690 --> 04:06.260
And here's the content asset,
including the map fields and the

04:06.400 --> 04:12.540
HTML content.
So we can now preview

04:12.560 --> 04:19.260
the content asset.
And here's our blog.

