Configure mobile campaign components
Configure components to display the image, video, and text cards in a campaign for your users to view and interact with on mobile devices.
Before you begin
To configure components to display a campaign on mobile devices, ensure that you have established the following items:
Developed content for your campaign. For more information, see Campaigns for Content Experiences and Configure mobile content.
Defined the appearance criteria for at least one card type. For more information, see Create appearance templates for cards for a mobile campaign and Configure the details for the appearance of cards for a mobile campaign.
Have the Employee Center Pro Content Publishing plugin [com.sn_content_delivery] installed. For more information, see Activate Content Publishing.
Role required: admin
Procedure
Create a data item to collect the data for the campaign content.
In the web-based UI, enter
sys_sg_data_item.listin the filter navigator to open a list of data items.Click New to create a data item.
On the form, fill in the fields.
| Field | Description |
|---|---|
| Name | A title for the data item. You can have multiple data items with the same name. |
| Description | Optional additional details. |
| Condition Type | Select the method to use when building conditions to retrieve data from your data item. The available options are: - Declarative Create conditions for the data item using the condition builder.
Use a script to determine the conditions of your data item. A text window to enter a script appears below this field when you select this option.
This condition is only used when creating data items for chart screens. Don't choose this Condition Type for campaigns. |
| Table | `sn_cd_content_mobile`, the Employee Center table, which contains the content of the cards. |
| Query Condition | Condition that filters content data retrieved from the Employee Center table. For example, if a field called month exists in the table, you could set the condition [month][is][September] to indicate you want to pull content only when the month equals September. |
| Group by | Select the field used to group the records in your list. |
4. Click **Submit**.
Create an item configuration for each item view you use.
In the web-based UI, enter
sys_sg_master_item.listin the filter navigator.Click New to create an item configuration.
On the form, fill in the fields.
| Field | Description |
|---|---|
| Name | A title for the list item configuration.Note: Include the card type in the name. |
| Card | The card you want to use for the list item. Search for an existing card or select New to configure one. |
| Table | `sn_cd_content_mobile`, the Employee Center table, which contains the content of the cards. |
| Condition | Condition that filters display-related data retrieved from the HR Service Content Delivery table. Use a declarative condition to create conditions for the item configuration using the condition builder. For example, you could specify to display all image records related to the condition September, which you defined in the data item condition. You then set the condition [Content type][is][Image] and as a result all images tagged as September are displayed in the mobile campaign. |
| Embedded screen | Not applicable for mobile campaigns. |
Create a list stream, which connects the data item with the item configuration.
In the web-based UI, enter
sys_sg_item_stream.listin the filter navigator.Click New to create an list stream.
On the form, fill in the fields.
Field Description Name A title for the list stream. Data item The data item you created. In the List Stream M2M item configuration section, click Insert a new row.
Insert the item configuration you created.
Click Save.
Click Submit.
Create a list stream container.
In the web-based UI, enter
sys_sg_item_stream_container.listin the filter navigator.Click New.
In the Name field, enter a title for the list stream container.
Right-click on the form header (
Form header menu button\) and select **Save**.
5. In the Stream Container M2M streams section, click **New**.
6. On the form, fill in the fields.
|Field|Description|
|-----|-----------|
|Stream|The stream that you want to add to the stream container.|
|Stream container|The stream container that contains the stream.|
|Order|A number that indicates where to place the stream container. Lower-numbered items display before higher-numbered items.|
7. Click **Submit**.
8. Click **Update**.
Create a screen launcher content UI section to contain the campaign.
In the web-based UI, enter
sys_sg_content_section.listin the filter navigator.Click New.
On the form, fill in the fields.
Field Description Title Title for the content UI section. This title is not displayed in the mobile UI. Active Option for enabling the display of the campaign in your mobile instance. Click Submit.
What to do next
Add the content UI section to a screen launcher. For more information, see Configure a content UI section.