Generating case documents
To provide your stakeholders with crucial information about your business processes in an automated and convenient way, generate case documents as part of your case life cycle. You create case documents by using templates to ensure that you deliver relevant, required data.
When you create templates for your case documents, you include tags that your application populates with case data during case processing. You can include tags for the following entities:- Fields that a case data model contains
- Attachments
- Views
- Correspondence
- In the navigation pane of App Studio, click Case types, and then click the case type that you want to open.
- In a process to which you want to add a Generate document shape, click .
- In the Step properties panel, select a document to use as
a template:
Choices Actions Create a new template - Create a new document in a .docx format in a word
processor.The case document that your application generates reflects the styling that you use when you create a template, for example, the font and size.
- In the Step properties panel, click View and use fields.
- In the View and use fields window, search for a tag that you want to include in your document, and then click Copy tag.
- Paste the tag where you want to include information in your document.
- Repeat steps 3.c and 3.d for the tags that you need, and then save the document.
- In the Choose template document section, click Upload.
- In the Upload file window, click Choose file, and then navigate to the text template.
- Click Open.
- Click Done.
Use an existing template - In the Choose template document list, select a template that you want to use.
- Create a new document in a .docx format in a word
processor.
- In the Document name field, enter a descriptive name for the output document.
- In the Category list, select a category for your document.
- Click Save.
- Case documents tags
Customize your case documents by configuring the tags that you include in your case document templates. For example, if your case includes financial information, you can include tags for the currency.
- Case documents specifications
Ensure that your application generates the necessary documents in a case life cycle by learning more about the specifications of the elements that you can include in your case documents. You can then save time by generating documents that do not display error messages, and understand how you can achieve your business goals by including relevant business data in the output documents.
- Case documents error messages
Resolve any issues when you generate case documents by understanding the error messages. Inline error messages that an output document displays might help you locate and fix the issue.
- Activities for integrating cases with Excel documents
To integrate case data with external resources, call the pxParseExcelFile and pxGenerateExcelFile activities that Pega Platform provides. When you call these activities, you can import and export case data by using Excel files.
- Tags for generating .docx documents through APIs
APIs support generating formatted and personalized documents that you can use during case processing. To save time and resources, the pxGenerateWordDocument API provides the possibility of generating a .docx document on the server side, without installing additional software, such as Silverlight.
Previous topic Defining a threshold with weighted conditions for a case type Next topic Case documents tags