generated from navikt/crm-shared-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from navikt/KnowledgeFeedback
HOT Knowledge feedback notification
- Loading branch information
Showing
1 changed file
with
162 additions
and
0 deletions.
There are no files selected for viewing
162 changes: 162 additions & 0 deletions
162
force-app/main/default/flows/HOT_Knowledge_Feedback_notification.flow-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Flow xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<actionCalls> | ||
<description>send notification about feedback on knowledge article to redaktor group</description> | ||
<name>Send_notification</name> | ||
<label>Send notification</label> | ||
<locationX>50</locationX> | ||
<locationY>755</locationY> | ||
<actionName>customNotificationAction</actionName> | ||
<actionType>customNotificationAction</actionType> | ||
<flowTransactionModel>CurrentTransaction</flowTransactionModel> | ||
<inputParameters> | ||
<name>customNotifTypeId</name> | ||
<value> | ||
<elementReference>Get_Custom_Notification.Id</elementReference> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>recipientIds</name> | ||
<value> | ||
<elementReference>RecipientID</elementReference> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>title</name> | ||
<value> | ||
<stringValue>Det er en tilbakemelding på kunnskapsartikkel</stringValue> | ||
</value> | ||
</inputParameters> | ||
<inputParameters> | ||
<name>body</name> | ||
<value> | ||
<elementReference>$Record.Description</elementReference> | ||
</value> | ||
</inputParameters> | ||
<nameSegment>customNotificationAction</nameSegment> | ||
<offset>0</offset> | ||
<versionSegment>1</versionSegment> | ||
</actionCalls> | ||
<apiVersion>62.0</apiVersion> | ||
<assignments> | ||
<name>Assign_Recipient_IDs</name> | ||
<label>Assign Recipient IDs</label> | ||
<locationX>50</locationX> | ||
<locationY>647</locationY> | ||
<assignmentItems> | ||
<assignToReference>RecipientID</assignToReference> | ||
<operator>Add</operator> | ||
<value> | ||
<elementReference>Get_Group.Id</elementReference> | ||
</value> | ||
</assignmentItems> | ||
<connector> | ||
<targetReference>Send_notification</targetReference> | ||
</connector> | ||
</assignments> | ||
<decisions> | ||
<name>Check_record_type</name> | ||
<label>Check Record Type</label> | ||
<locationX>182</locationX> | ||
<locationY>323</locationY> | ||
<defaultConnectorLabel>Default Outcome</defaultConnectorLabel> | ||
<rules> | ||
<name>Is_Feedback</name> | ||
<conditionLogic>and</conditionLogic> | ||
<conditions> | ||
<leftValueReference>$Record.RecordType.DeveloperName</leftValueReference> | ||
<operator>EqualTo</operator> | ||
<rightValue> | ||
<stringValue>HOT_Feedback</stringValue> | ||
</rightValue> | ||
</conditions> | ||
<connector> | ||
<targetReference>Get_Custom_Notification</targetReference> | ||
</connector> | ||
<label>Is Feedback</label> | ||
</rules> | ||
</decisions> | ||
<description>Send notification to redaktor group when a feedback is received on knowledge article</description> | ||
<environments>Default</environments> | ||
<interviewLabel>HOT {!$Flow.CurrentDateTime}</interviewLabel> | ||
<label>HOT Knowledge Feedback notification</label> | ||
<processMetadataValues> | ||
<name>BuilderType</name> | ||
<value> | ||
<stringValue>LightningFlowBuilder</stringValue> | ||
</value> | ||
</processMetadataValues> | ||
<processMetadataValues> | ||
<name>CanvasMode</name> | ||
<value> | ||
<stringValue>AUTO_LAYOUT_CANVAS</stringValue> | ||
</value> | ||
</processMetadataValues> | ||
<processMetadataValues> | ||
<name>OriginBuilderType</name> | ||
<value> | ||
<stringValue>LightningFlowBuilder</stringValue> | ||
</value> | ||
</processMetadataValues> | ||
<processType>AutoLaunchedFlow</processType> | ||
<recordLookups> | ||
<name>Get_Custom_Notification</name> | ||
<label>Get Custom Notification</label> | ||
<locationX>50</locationX> | ||
<locationY>431</locationY> | ||
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound> | ||
<connector> | ||
<targetReference>Get_Group</targetReference> | ||
</connector> | ||
<filterLogic>and</filterLogic> | ||
<filters> | ||
<field>DeveloperName</field> | ||
<operator>EqualTo</operator> | ||
<value> | ||
<stringValue>HOT_KnowledgeFeedbackNotification</stringValue> | ||
</value> | ||
</filters> | ||
<getFirstRecordOnly>true</getFirstRecordOnly> | ||
<object>CustomNotificationType</object> | ||
<storeOutputAutomatically>true</storeOutputAutomatically> | ||
</recordLookups> | ||
<recordLookups> | ||
<name>Get_Group</name> | ||
<label>Get Group</label> | ||
<locationX>50</locationX> | ||
<locationY>539</locationY> | ||
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound> | ||
<connector> | ||
<targetReference>Assign_Recipient_IDs</targetReference> | ||
</connector> | ||
<filterLogic>and</filterLogic> | ||
<filters> | ||
<field>DeveloperName</field> | ||
<operator>EqualTo</operator> | ||
<value> | ||
<stringValue> HOT_Kunnskapsbasen_Redakt_rer</stringValue> | ||
</value> | ||
</filters> | ||
<getFirstRecordOnly>true</getFirstRecordOnly> | ||
<object>Group</object> | ||
<storeOutputAutomatically>true</storeOutputAutomatically> | ||
</recordLookups> | ||
<start> | ||
<locationX>56</locationX> | ||
<locationY>0</locationY> | ||
<connector> | ||
<targetReference>Check_record_type</targetReference> | ||
</connector> | ||
<object>Case</object> | ||
<recordTriggerType>CreateAndUpdate</recordTriggerType> | ||
<triggerType>RecordAfterSave</triggerType> | ||
</start> | ||
<status>Active</status> | ||
<variables> | ||
<name>RecipientID</name> | ||
<dataType>String</dataType> | ||
<isCollection>true</isCollection> | ||
<isInput>false</isInput> | ||
<isOutput>false</isOutput> | ||
</variables> | ||
</Flow> |