Tutorial: Create document fragments tutorial-create-document-fragments
This tutorial is a step in the Create your first Interactive Communication series. Adobe recommends that you follow the series in chronological sequence to understand, perform, and demonstrate the complete tutorial use case.
Document fragments are reusable components of a correspondence that are used to compose an Interactive Communication. The document fragments are of the following types:
- Text - A text asset is a piece of content that consists of one or more paragraphs of text. A paragraph can be static or dynamic.
- List - List is a group of document fragments, including text, lists, conditions, and images.
- Condition - Conditions enable you to define what content gets included in the Interactive Communication based on the data received from the Form Data Model.
This tutorial walks you through the steps to create multiple text document fragments based on the anatomy provided in Plan the Interactive Communication section. At the end of this tutorial, you should be able to do the following:
- Create document fragments
- Create variables
- Create and apply rules
The following is the list of document fragments that are created in this tutorial:
Each Document Fragment includes fields with static text, data received from the form data model, and data entered using the Agent UI. All these fields have been depicted in the Plan the Interactive Communication section.
While creating document fragments in this tutorial, variables are created for fields that receive data using the Agent UI.
Use FDM_Create_First_IC, as described in the Create form data model section, as the form data model to create document fragments in this tutorial.
Step 1: Create Bill Details text Document Fragment step-create-bill-details-text-document-fragment
The Bill Details Document Fragment includes the following fields:
To create variables for fields with Agent UI as the data source, create static text, and use form data model elements in the Document Fragment, do the following:
-
Select Forms > Document Fragments.
-
Select Create > Text.
-
Specify the following information:
-
Enter bill_details_first_ic as the name in the Title field. The title gets auto-populated in the Name field.
-
Select Form Data Model from the Data Model section.
-
Select FDM_Create_First_IC as the form data model and select Select.
-
Select Next.
-
-
Select the Variables tab in the left pane and select Create.
-
In the Create Variable section:
- Enter Invoicenumber as the name of the variable.
- Select String as the type.
- Select Create.
Repeat steps 4 and 5 to create the following variables:
- Billperiod: String type
- BillDate: Date type
-
Create static text for the following fields using the right pane:
- Invoice No
- Bill Period
- Bill Date
- Your Plan
-
Place the cursor next to the Invoice No field and double-click the InvoiceNumber variable from the Variables tab in the left pane.
-
Place the cursor next to the Bill Period field and double-click the Billperiod variable.
-
Place the cursor next to the Bill Date field and double-click the Bill Date variable.
-
Select the Data Model Objects tab in the left pane.
-
Place the cursor next to the Your Plan field and double-click the customer > customerplan property.
-
Click Save to create the Bill Details text Document Fragment.
Step 2: Create Customer Details text Document Fragment step-create-customer-details-text-document-fragment
The Customer Details Document Fragment includes the following fields:
To create variables for fields with Agent UI as the data source, create static text, and use form data model elements in the Document Fragment, do the following:
-
Select Forms > Document Fragments.
-
Select Create > Text.
-
Specify the following information:
-
Enter customer_details_first_ic as the name in the Title field. The title gets auto-populated in the Name field.
-
Select Form Data Model from the Data Model section.
-
Select FDM_Create_First_IC as the form data model and select Select.
-
Select Next.
-
-
Select the Variables tab in the left pane and select Create.
-
In the Create Variable section:
- Enter Placesupply as the name of the variable.
- Select String as the type.
- Select Create.
Repeat steps 4 and 5 to create the following variables:
- Statecode: Number type
- Numberconnections: Number type
-
Select the Data Model Objects tab, place the cursor in the right pane, and double-click the customer > name property.
-
Press Enter to move the cursor to the next line and double-click the customer > address property.
-
Create static text for the following fields using the right pane:
- Mobile Number
- Alternate Contact Number
- Place of Supply
- Relationship Number
- State Code
- Number of connections
-
Place the cursor next to the Mobile Number field and double-click the customer > mobilenum property.
-
Place the cursor next to the Alternate Contact Number field and double-click the** customer** > alternatemobilenumber property.
-
Place the cursor next to the Relationship Number field and double-click the customer > relationshipnumber property.
-
Select the Variables tab, place the cursor next to the Place of Supply field and double-click the Placesupply variable.
-
Place the cursor next to the State Code field and double-click the Statecode variable.
-
Place the cursor next to the Number of Connections field and double-click the Numberconnections variable.
-
Click Save to create the Customer Details text Document Fragment.
Step 3: Create Bill Summary text Document Fragment step-create-bill-summary-text-document-fragment
The Bill Summary Document Fragment includes the following fields:
To create variables for fields with Agent UI as the data source, create static text, and use form data model elements in the Document Fragment, do the following:
-
Select Forms > Document Fragments.
-
Select Create > Text.
-
Specify the following information:
-
Enter bill_summary_first_ic as the name in the Title field. The title gets auto-populated in the Name field.
-
Select Form Data Model from the Data Model section.
-
Select FDM_Create_First_IC as the form data model and select Select.
-
Select Next.
-
-
Select the Variables tab in the left pane and select Create.
-
In the Create Variable section:
- Enter Previousbalance as the name of the variable.
- Select Number as type.
- Select Create.
Repeat steps 4 and 5 to create the following variables:
- Payments: Number type
- Adjustments: Number type
- Amountdue: Number type
- Duedate: Date type
-
Create static text for the following fields using the right pane:
- Previous Balance
- Payments
- Adjustments
- Charges current bill period
- Amount Due
- Due Date
- Late payment charges after the Due Date is $ 20
-
Place the cursor next to the Previous Balance field and double-click the Previousbalance variable.
-
Place the cursor next to the Payments field and double-click the Payments variable.
-
Place the cursor next to the Adjustments field and double-click the Adjustments variable.
-
Place the cursor next to the Amount Due field and double-click the Amountdue variable.
-
Place the cursor next to the Due Date field and double-click the Duedate variable.
-
Select the Data Model Objects tab, place the cursor next to the Charges current bill period field in the right pane, and double-click the bills > usagecharges property.
-
Click Save to create the Customer Details text Document Fragment.
Step 4: Create Summary of charges text Document Fragment step-create-summary-of-charges-text-document-fragment
The Summary of charges Document Fragment includes the following fields:
To create static text and use form data model elements in the Document Fragment, do the following:
-
Select Forms > Document Fragments.
-
Select Create > Text.
-
Specify the following information:
-
Enter summary_charges_first_ic as the name in the Title field. The title gets auto-populated in the Name field.
-
Select Form Data Model from the Data Model section.
-
Select FDM_Create_First_IC as the form data model and select Select.
-
Select Next.
-
-
Create static text for the following fields using the right pane:
- Call Charges
- Conference Call Charges
- SMS Charges
- Mobile Internet Charges
- National Roaming Charges
- International Roaming Charges
- Value Added Services Charges
- Total Charges
- TOTAL PAYABLE
-
Select the Data Model Objects tab.
-
Place the cursor next to the Call Charges field and double-click the bills > callcharges property.
-
Place the cursor next to the Conference Call Charges field and double-click the bills > confcallcharges property.
-
Place the cursor next to the SMS Charges field and double-click the bills > smscharges property.
-
Place the cursor next to the Mobile Internet Charges field and double-click the bills > internetcharges property.
-
Place the cursor next to the National Roaming Charges field and double-click the bills > roamingnational property.
-
Place the cursor next to the International Roaming Charges field and double-click the bills > roamingintnl property.
-
Place the cursor next to the Value Added Services Charges field and double-click the bills > vas property.
-
Place the cursor next to the Total Charges field and double-click the bills > usagecharges property.
-
Place the cursor next to the TOTAL PAYABLE field and double-click the bills > usagecharges property.
-
Select the text in the Value Added Services Charges row and select Create Rule to create a condition based on which the row is displayed in the Interactive Communication:
-
On the Create Rule pop-up window:
-
Select Data Models and Variables and then bills > callcharges.
-
Select is less than as the operator.
-
Select Number and enter the value as 60.
Based on this condition, the Value Added Services Charges row is displayed only if the value for the Call Charges field is less than 60.
-
-
Click Save to create the Summary of charges text Document Fragment.