Difference between revisions of "Part 2: Creating a Document Template"
From AgileApps Support Wiki
Wikieditor (talk | contribs) (Created page with "In this part of the exercise, you use variables to populate a basic Word template to show an example of creating content quickly. Next, you add a Document Template to the Emai...") |
Wikieditor (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
In this part of the exercise, you use variables to populate a basic Word template to show an example of creating content quickly. Next, you add a Document Template to the Email Template defined in Part 1. | In this part of the exercise, you use variables to populate a basic Word template to show an example of creating content quickly. Next, you add a Document Template to the Email Template defined in Part 1. | ||
# In Windows Explorer, navigate to the <workshop_dir> folder and open the file Sample_NDA.docx in a compatible editor. This document contains an example “Non-Disclosure Agreement”. | # In Windows Explorer, navigate to the <workshop_dir> folder and open the file Sample_NDA.docx in a compatible editor. This document contains an example “Non-Disclosure Agreement”. | ||
#: Notice that this document uses replacement variables similar to the ones you used when you updated the '''Email Template''' in the first part of this exercise. When this document is used as a Document Template in webMethods AgileApps Cloud, the “Account” fields will be replaced with values specific to an Order. | #: Notice that this document uses replacement variables similar to the ones you used when you updated the '''Email Template''' in the first part of this exercise. When this document is used as a Document Template in webMethods AgileApps Cloud, the “Account” fields will be replaced with values specific to an Order.<br><br>[[File:NDA_Agreement_Template.png|800px]]<br><br> | ||
# Optionally, you can edit this document to add new variables or change the text. | # Optionally, you can edit this document to add new variables or change the text. | ||
#: To edit a variable reference, do not edit the text directly. Instead, using MS Word document, right-click on the variable, and then select '''Edit Field''' from the pop-up menu. | #: To edit a variable reference, do not edit the text directly. Instead, using MS Word document, right-click on the variable, and then select '''Edit Field''' from the pop-up menu.<br><br>[[File:NDA_Template_Edit.png|800px]]<br><br> | ||
#: Then make your edits in the Field dialog that appears: | #: Then make your edits in the Field dialog that appears:<br><br>[[File:MS_Word_NDA_Field_Edit.png|800px]]<br><br> | ||
# Login to webMethods AgileApps Cloud as yourself. Create a new '''Document Template''' for the '''Orders''' Object: | # Login to webMethods AgileApps Cloud as yourself. Create a new '''Document Template''' for the '''Orders''' Object: | ||
## Navigate to '''Configuration''' > '''Customization''' > '''Objects''' > '''Orders''' > '''Document Templates''', and click '''New Template'''. | ## Navigate to '''Configuration''' > '''Customization''' > '''Objects''' > '''Orders''' > '''Document Templates''', and click '''New Template'''. | ||
## Provide values as shown: | ## Provide values as shown:<br><br>[[File:Objects_Orders_Document_Templates_MyOrders.png|800px]]<br><br> | ||
## Click '''Save'''. | ## Click '''Save'''.<br><br>[[File:MyOrders_Non_Disclosure_Template.PNG|800px]]<br><br> | ||
# Re-open the '''Agent Order Update''' Email Template. Scroll down to the '''Attachments''' section. Click Lookup icon. Check the '''MyOrders Non-Disclosure Template''' created above and click '''Pick Selected Document Templates''': | # Re-open the '''Agent Order Update''' Email Template. Scroll down to the '''Attachments''' section. Click Lookup icon. Check the '''MyOrders Non-Disclosure Template''' created above and click '''Pick Selected Document Templates''':<br><br>[[File:Attachments_Document_Template.png|500px]]<br><br> | ||
# '''Save''' the Email Template. | # '''Save''' the Email Template. | ||
# To see an example of a document generated from the ''''Document Template''': | # To see an example of a document generated from the ''''Document Template''': | ||
Line 16: | Line 16: | ||
## Logout and then login as '''MyManager'''. | ## Logout and then login as '''MyManager'''. | ||
## Look for the new '''Order''' and '''Reject''' its '''ManagerApproval''' Task. | ## Look for the new '''Order''' and '''Reject''' its '''ManagerApproval''' Task. | ||
## Open the email sent by your manager as a result of the rejected order. | ## Open the email sent by your manager as a result of the rejected order.<br><br>[[File:Email_Example_with_Attachments.png|800px]]<br><br> | ||
## Open the document (Sample_NDA.docx) attached to your mail to see the order-specific information that replaces the variables in the Document Template: | ## Open the document (Sample_NDA.docx) attached to your mail to see the order-specific information that replaces the variables in the Document Template:<br><br>[[File:MS_Word_NDA.png|800px]] | ||
==Taking It Further== | ==Taking It Further== | ||
To extend what you learned in this exercise, use the AgileApps Cloud wiki pages (http://agileappscloud.info/) to learn how to implement custom data preprocessors in your email and document templates. | To extend what you learned in this exercise, use the AgileApps Cloud wiki pages (http://agileappscloud.info/) to learn how to implement custom data preprocessors in your email and document templates. | ||
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | |||
:{| border="0" align="left" cellpadding="5" cellspacing="1" | |||
| | |||
[[Part 1: Customizing an Email Template|Previous]] | |||
|} | |||
:{| border="0" align="right" cellpadding="5" cellspacing="1" | |||
| | |||
[[Exercise 08: Integrating a Web Service and a Java API Class|Next]] | |||
|} |
Latest revision as of 05:01, 29 December 2022
In this part of the exercise, you use variables to populate a basic Word template to show an example of creating content quickly. Next, you add a Document Template to the Email Template defined in Part 1.
- In Windows Explorer, navigate to the <workshop_dir> folder and open the file Sample_NDA.docx in a compatible editor. This document contains an example “Non-Disclosure Agreement”.
- Notice that this document uses replacement variables similar to the ones you used when you updated the Email Template in the first part of this exercise. When this document is used as a Document Template in webMethods AgileApps Cloud, the “Account” fields will be replaced with values specific to an Order.
- Notice that this document uses replacement variables similar to the ones you used when you updated the Email Template in the first part of this exercise. When this document is used as a Document Template in webMethods AgileApps Cloud, the “Account” fields will be replaced with values specific to an Order.
- Optionally, you can edit this document to add new variables or change the text.
- Login to webMethods AgileApps Cloud as yourself. Create a new Document Template for the Orders Object:
- Re-open the Agent Order Update Email Template. Scroll down to the Attachments section. Click Lookup icon. Check the MyOrders Non-Disclosure Template created above and click Pick Selected Document Templates:
- Save the Email Template.
- To see an example of a document generated from the 'Document Template:
- Create another Order for account Fred Supplies, assigned to the SouthEast region. Provide some Description text and pick a Close Date.
- Claim the record and set the Finish Order Setup Task to Complete.
- Logout and then login as MyManager.
- Look for the new Order and Reject its ManagerApproval Task.
- Open the email sent by your manager as a result of the rejected order.
- Open the document (Sample_NDA.docx) attached to your mail to see the order-specific information that replaces the variables in the Document Template:
Taking It Further
To extend what you learned in this exercise, use the AgileApps Cloud wiki pages (http://agileappscloud.info/) to learn how to implement custom data preprocessors in your email and document templates.