Create document fragments for Interactive Communication
This tutorial is a step in the Create your first Interactive Communication series. It is recommended to 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:
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 will be able to:
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 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.
The Bill Details document fragment includes the following fields:
Field | Data Source |
---|---|
Invoice No | Agent UI |
Bill Period | Agent UI |
Bill Date | Agent UI |
Your Plan | Form data model |
Execute the following steps 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:
Select Forms > Document Fragments.
Select Create > Text.
Specify the following information:
Select the Variables tab in the left pane and tap Create.
In the Create Variable section:
Repeat step 4 and 5 to create the following variables:
Create static text for the following fields using the right pane:
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.
The Customer Details document fragment includes the following fields:
Field | Data Source |
---|---|
Customer name | Form data model |
Address | Form data model |
Place of Supply | Agent UI |
State Code | Agent UI |
Mobile Number | Form data model |
Alternate Contact Number | Form data model |
Relationship Number | Form data model |
Number of Connections | Agent UI |
Execute the following steps 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:
Select Forms > Document Fragments.
Select Create > Text.
Specify the following information:
Select the Variables tab in the left pane and tap Create.
In the Create Variable section:
Repeat step 4 and 5 to create the following variables:
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:
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.
The Bill Summary document fragment includes the following fields:
Field | Data Source |
---|---|
Previous Balance | Agent UI |
Payments | Agent UI |
Adjustments | Agent UI |
Charges current bill period | Form data model |
Amount Due | Agent UI |
Due Date | Agent UI |
Execute the following steps 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:
Select Forms > Document Fragments.
Select Create > Text.
Specify the following information:
Select the Variables tab in the left pane and tap Create.
In the Create Variable section:
Repeat step 4 and 5 to create the following variables:
Create static text for the following fields using the right pane:
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.
The Summary of charges document fragment includes the following fields:
Field | Data Source |
---|---|
Call Charges | Form data model |
Conference Call Charges | Form data model |
SMS Charges | Form data model |
Mobile Internet Charges | Form data model |
National Roaming Charges | Form data model |
International Roaming Charges | Form data model |
Value Added Services Charges | Form data model |
Total Charges | Form data model |
TOTAL PAYABLE | Form data model |
Execute the following steps to create static text and use form data model elements in the document fragment:
Select Forms > Document Fragments.
Select Create > Text.
Specify the following information:
Create static text for the following fields using the right pane:
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 tap Create Rule to create a condition based on which the row is displayed in the Interactive Communication:
On the Create Rule pop-up window:
Based on this condition, 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.