View this page in the latest version of Appian. Set Up My Cases Module Share Share via LinkedIn Reddit Email Copy Link Print On This Page Introduction After installing the My Cases module, you must set it up before using it with the Case Management Studio Base application. This guide walks you through the required setup steps, which include: Updating security and permissions. Updating the Case record. Setting up the My Cases Intake Form in the Control Panel. Updating rule references. Adding record actions. Adding the Submitter role. Applying email updates. Before performing these incorporation steps, ensure that your system meets the required prerequisites System Prerequisites This section details the prerequisites your system must meet to run the My Cases module. Appian platform running version 26.9 or greater. A supported version of MariaDB as a business data source. Note: Instructions below are for MariaDB databases. For use with other databases, the SQL script must be modified to fit syntax requirements. A supported web browser. Imported Case Management Studio Base application version 2.4 or higher, which includes the following application containers: CMGT Case Management Studio Base (CMGT) CMGT Control Panel Generated Objects (CMGT) CMGT Add-On - My Cases Module (CMGT_LA) application container imported and installed in the target environment. Step 1: Security and permission updates The first step in setting up the My Cases module with your Case Management Studio Base application involves modifying group membership and setting up user permissions to allow external users to access My Cases. Modify group membership This step involves updating the CMGT All Users group to include the CMGT LA External Users group. This will allow authenticated external users access to My Cases. To modify the CMGT All Users group: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open the CMGT All Users group. Click Add Members. Search for CMGT LA External Users in Groups to Add. Click Add. Set user permissions Next, you must grant the External Users group access to a subset of the CMGT process models. Note: The process models listed below are required when you are setting up this module with Case Management Studio v2.4 and later only. If you are setting up this module with Case Management Studio v1.7, see Setting Up My Cases Module for the correct list. To modify user permissions: In Appian Designer, go to the CMGT Case Management Studio Base application. Click Create Package and name the package Grant External Users group access to CMGT Process Models. Add the following process models to the package: Submit Case CMGT_Document_Create CMGT_Entity_CreateUpdate CMGT_Role_Add CMGT_SUB_DocumentStorage CMGT_SUB_OpenNextTasks CMGT_SUB_SendEmail CMGT_SUB_SetCaseFolderSecurity CMGT_Task_Complete_AutomatedTask_Wrapper CMGT_Task_Create CMGT_Task_Complete CMGT_WorkflowPath_CreateUpdate CMGT_SUB_CopyAndUpdateEmailAttachments CMGT_RelatedCaseMap_Create CMGT_SUB_Task_Complete_AutomatedTask_SendEmail CMGT_SUB_Task_Complete_AutomatedTask_WorkflowRouting CMGT_Role_Manage CMGT_Role_Delete CMGT_Automation_Evaluation CMGT_SUB_SubmitCase_ParallelProcesses CMGT_Comment_CreateUpdate Note: If you have any custom process models that an external user might kick off, such as a custom sub-process that runs on case creation, these process models should be added to this package as well. Open up the package and navigate to the Security Summary. Update the security for the CMGT LA External Users group to Viewers. Step 2: Update the Case record After you set up user permissions, you must configure the Case record with the case views you want your users to see. Add the Wrapper Summary interface The steps in this section involve updating the Summary view of the CMGT_CaseMetaData record type to enable authenticated users to view the Case Summary for their cases on the My Cases site. You will do this by adding the CMGT_LA_Case_RecordView_Summary_Wrapper interface to the CMGT_CaseMetaData record type Summary view. To add the CMGT_LA_Case_RecordView_Summary_Wrapper interface to the Case record summary: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open the CMGT_CaseMetaData record type. Click Views. Click the Edit icon next to the Summary view. Replace the CMGT_Case_RecordView_Summary interface with the CMGT_LA_Case_RecordView_Summary_Wrapper interface. Pass in the following query to the case parameter. 1 2 3 4 5 6 7 8 9 10 rule!CMGT_QR_GetCase( caseId: rv!identifier, fields: { recordType!CMGT_Case.relationships.modifiedByUser, recordType!CMGT_Case.relationships.createdByUser, rule!CMGT_UTIL_ReturnRecordRelationshipsOfRecordObject( case: rv!record ) } ) Note: In the CMGT_UTIL_ReturnRecordRelationshipsOfRecordObject expression rule, ensure the rule input is called case. Otherwise, rv!record can't be passed to that input. Configure the External Messages view Adding the CMGT_LA_Case_RecordView_Messages interface to the CMGT_CaseMetaData record gives case workers and case managers a dedicated view for communicating with the authenticated external user associated with the case. To add the External Messages view to the CMGT_CaseMetaData record: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open the CMGT_CaseMetaData record type. Click Add View Manually. In the View Name code block, enter in the External Messages translation string from the CMGT_LA_Translations object. Select the CMGT_LA_Case_RecordView_Messages under the interface section. Pass in rv!identifier to the caseId parameter. Navigate to the Views and Actions Security tab within the record type. Click the Edit icon associated with the External Messages view. In the Who can see this view? section, select “Only users…” and add the CMGT Internal Users group to the Found in groups selection. Step 3: Set up the My Cases Intake Form This is a required step to surface the My Cases intake form on the Control Panel, and call the form in the correct My Cases interface object. In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open the CMGT_ControlPanel control panel object. Go to Standard Configurations and scroll down to the Interfaces section. Click Add Interface to add a new business user configurable interface, and enter the following values for each field: Intent: Create Display Name: My Cases Intake Form Web Address Identifier: my-cases-intake-form Description: (optional) Click Submit Go to Cases within the Hierarchy and scroll down to the Forms and Interfaces section. Select the CMGT_LA_Case_IntakeForm interface for the My Cases Intake Form. Note: When you create an Intake Form in the Control Panel workspace for each category and type, you will also need to create a My Cases Intake Form in the Control Panel workspace for each category and type. Save the control panel object. Search for and open the CMGT_LA_Case_CreateCase_FormDisplayWrapper interface. In the steps parameter of the wizard layout, call the Control Panel reference to the My Cases intake form after the existing wizard step as shown: Save the interface. Step 4: Update Rule References Update object rule references In this step, you will update several object references that call the Portal Utility expression rule and replace it with the My Cases Utility expression rule: In Appian Designer, go to the CMGT Case Management Studio Base application. For each of the following objects, replace all references to the CMGT_UTIL_IsOnPortal expression rule with CMGT_LA_UTIL_IsLimitedAccessOrPortal: CMGT_Document_Sub_UploadDocument CMGT_Document_RecordAction_CaseUpload_SaveLogic Update case confirmation screen rule In this step, you will update the expression rule that checks whether to display case confirmation with a new condition that enables authenticated users to see this confirmation on My Cases. To update the expression rule: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open the CMGT_Create_Case_DisplayConfirmationScreen_Conditions expression rule. Add the following code block after the first condition in the expression rule: 1 ri!case['recordType!{d81cdd0e-c54d-4b8e-beec-b7ae37fefe7f}CMGT_Case.fields.{8a645dfc-516a-4ed4-8a22-858b04b67a2a}source'] = cons!CMGT_LA_TXT_SOURCE_APPIAN_LIMITED_USERS, Click SAVE. Update the Submit Case process model forms This step involves updating the Start and Confirmation forms in the Submit Case process model to enable users to see the case creation record action and case creation confirmation on My Cases. To update the Start and Confirmation forms: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open the Submit Case process model. From the File menu, select Properties…. Select the Process Start Form tab. Replace the CMGT_Case_RecordAction_Create interface with the CMGT_LA_Case_RecordAction_Create_Wrapper interface. Pass in case for the case parameter, documentsToDelete for the documentsToDelete parameter, and data for the data parameter. Click OK. In the Submit Case process model, open the Case Confirmation node. Select the Forms tab. Replace the CMGT_Sub_CreateCase_Confirmation interface with the CMGT_LA_Sub_CreateCase_Confirmation_Wrapper interface. Pass in case for the case parameter and isCaseSubmissionSuccessful for the isCaseSubmissionSuccessful parameter. Click OK. From the File menu, click Save & Publish. Step 5: Add the Update Message and Delete Message record actions Next, add record actions to the CMGT_Comment record type to allow users to update and delete messages. Add the Update Message record action Follow the steps in this section to add the Update Message action to CMGT_Comment record type, update the record action security, and add the action to the appropriate interface. To add the Update Message record action: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open the CMGT_Comment record type. Click Actions. In the Related Actions section, click CONFIGURE NEW ACTION MANUALLY. In the Display Name field, enter the Update Message translation string from the CMGT_LA_Translations object. Key: updateMessage Icon: pencil-square-o Dialog Height: Tall Dialog Width,: Wide Process Model: CMGT_LA_Message_CreateUpdate Context: Enter the following code block: 1 2 3 4 5 6 7 8 { comments: rule!CMGT_QR_GetCommentV2( commentId: rv!identifier, includeUserTagsAndDocumentMaps: true, returnType: "SINGLE_OBJECT", recordTypesToIncludeAllFields:'recordType!{e57250b0-f216-4a23-afd9-39e7d532d302-cmgt}CMGT_Comment' ) } Click DONE. Click SAVE. Modify the Update Message record action security Follow the steps in this section to update the security on the Update Message record action. To modify the action security: In the CMGT_Comment record type, go to the Views and Actions Security tab. Click the Actions tab. In the Related Actions section, click the Edit icon for the Update Message action. In the Who can see this view? section, select Only users…. Select the createdBy field under the Found in fields dropdown. Click OK. Click SAVE. Add the Update Message record action to the Message Thread interface Adding the Update Message record action to the Message Thread interface allows authenticated users to view and provide message updates on their created and claimed cases. Navigate back to the CMGT Add-On - My Cases Module application. Search for and open the CMGT_LA_Message_Sub_MessageThread_DisplayMessage interface. Add in the newly created Update Message related action within the existing a!recordActionField() as follows: Click SAVE. Add the Delete Message record action Follow the steps in this section to add the Delete Message record action to the CMGT_Comment record type, configure security, and add the action to the appropriate interface. To add the Delete Message record action: Navigate back to the CMGT Case Management Studio Base application. Search for and open the CMGT_Comment record type. Click Actions. In the Related Actions section, click CONFIGURE NEW ACTION MANUALLY. Display Name : Enter the Delete Message translation string from the CMGT_LA_Translations object Key: deleteMessage Icon: trash Dialog Height: Short Dialog Width: Medium Process Model: CMGT_LA_Message_Delete Context: Enter the following code block: 1 2 3 4 5 6 7 8 { comments: rule!CMGT_QR_GetCommentV2( commentId: rv!identifier, includeUserTagsAndDocumentMaps: true, returnType: "SINGLE_OBJECT", recordTypesToIncludeAllFields:'recordType!{e57250b0-f216-4a23-afd9-39e7d532d302-cmgt}CMGT_Comment' ) } Click DONE. Click SAVE. Modify the Delete Message record action security In this section, you will update the user security on the Delete Message record action. In the CMGT_Comment record type, navigate to the Views and Actions Security tab. Click the Actions tab. In the Related Actions section, click the Edit icon for the Delete Message action. In the Who can see this view? section, select Only users…. Select the createdBy field under the Found in fields dropdown. Click OK. Click SAVE. Add the Delete Message record action to the Message Thread interface In this section, you will add the Delete Message record action to the Message Thread interface. To add the Delete Message record action: Navigate back to the CMGT Add-On - My Cases Module application. Search for and open the CMGT_LA_Message_Sub_MessageThread_DisplayMessage interface. Add in the newly created Delete Message related action within the existing a!recordActionField() under the Update Message action as follows: Click SAVE. Update the case event history The final step in this section involves updating the expression rule that formats the case event history to include message events: To update the case event history: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open CMGT_EventHistory_Case_FormatDetails expression rule. Add the following code block above the default: local!details.value condition in the a!match(): 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 whenTrue: contains( { cons!CMGT_LA_REFID_EVENT_TYPE_CASE_CREATE_MESSAGE, cons!CMGT_LA_REFID_EVENT_TYPE_CASE_UPDATE_MESSAGE, cons!CMGT_LA_REFID_EVENT_TYPE_CASE_REPLY_TO_MESSAGE, cons!CMGT_LA_REFID_EVENT_TYPE_CASE_DELETE_MESSAGE }, fv!value ), then: concat( 'translation!{d0339ad7-e175-458f-9219-ed1620be6e1d}CMGT_LA_Translations.{48b61db9-42d4-44e5-988d-8ac713130a6c}Message: {value}'( 'translation!{d0339ad7-e175-458f-9219-ed1620be6e1d}CMGT_LA_Translations.{48b61db9-42d4-44e5-988d-8ac713130a6c}Message: {value}.translationvariables.{26bedc4f-aa52-4263-b7f2-7bdfc9a2c3de}value': rule!CMGT_UTIL_StripHtmlTags( value: local!details.commentText, isFormatted: true ) ), if( rule!CMGT_UTIL_IsBlank( local!details.taggedUsers ), "", concat( char( 10 ), 'translation!{765a2893-6d2c-4330-8d7a-ac85f4a6f417}CMGT_BaseTranslations.{1989f3c9-20e5-4be9-822b-7b1dc48f424b}Tagged users: {value}'( 'translation!{765a2893-6d2c-4330-8d7a-ac85f4a6f417}CMGT_BaseTranslations.{1989f3c9-20e5-4be9-822b-7b1dc48f424b}Tagged users: {value}.translationvariables.{0ceb2d10-7e2a-44f9-919d-e51150bb29d3}value': joinarray( a!forEach( items: local!details.taggedUsers, expression: rule!CMGT_UTIL_DisplayUserFullName( username: fv!item ) ), ", " ) ) ) ), if( rule!CMGT_UTIL_IsBlank( local!details.documents ), "", concat( char( 10 ), 'translation!{765a2893-6d2c-4330-8d7a-ac85f4a6f417}CMGT_BaseTranslations.{c0d05eca-625c-4aba-afba-fda052e49cb2}Linked documents: {value}'( 'translation!{765a2893-6d2c-4330-8d7a-ac85f4a6f417}CMGT_BaseTranslations.{c0d05eca-625c-4aba-afba-fda052e49cb2}Linked documents: {value}.translationvariables.{7299566d-8206-4962-bb5e-71475e411afb}value': joinarray( a!forEach( items: local!details.documents, expression: fv!item ), ", " ) ) ) ) ), Click SAVE. Step 6: Add the submitter role Next, you will add the Submitter role to the rules, audit history, and events. Add Submitter Role during Case Creation In this step, you will add the submitter role to the case creation process by updating the Case Creation expression rule. To update the Case Creation expression rule: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open CMGT_Role_CreateCase_CreateRoles_Wrapper expression rule. Add the following code block after the first item in the curly brackets {}: 1 2 3 4 rule!CMGT_LA_Role_CreateCase_Submitter( case: ri!case, initiator: ri!initiator ), Click SAVE. Update Audit History to include the Submitter Role event Next, you will need to add the Submitter role event to the Audit History by updating the Case Event History expression rule. To update the Event History expression rule: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open CMGT_EventHistory_Case_FormatDetails expression rule. Add the following code block within the third whenTrue clause of the a!match(): 1 cons!CMGT_LA_REFID_EVENT_TYPE_CASE_ADD_SUBMITTER Click SAVE. Update Events to include Submitter Role event In this step, you will update the Events expression rule to include the Submitter Role. To add the Submitter role event to Events: In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open CMGT_Role_SetEvents expression rule. Add the following code block after the last then clause and before the default clause in the nested a!match(): 1 2 equals: cons!CMGT_LA_REFID_ROLE_TYPE_SUBMITTER, then: cons!CMGT_LA_REFID_EVENT_TYPE_CASE_ADD_SUBMITTER, Click SAVE. Step 7: Applying email updates Follow the steps in this section to update the External Messages URL Stub constant to enable email updates. In Appian Designer, go to the CMGT Case Management Studio Base application. Search for and open the CMGT_CaseMetaData record type. Navigate to the Views tab. Copy the URL stub for the External Messages view. Navigate back to Appian Designer and go to the CMGT Add-On - My Cases Module application. Search for and open the CMGT_LA_TXT_URL_STUB_CASE_META_DATA_RECORD_MESSAGES_TAB constant. Paste the copied URL stub in for the value of the constant. Click SAVE. Next step Now that you have set up the My Cases module, authenticated users can view and provide updates on their submitted cases. Feedback Was this page helpful? SHARE FEEDBACK Loading...