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 #334 from navikt/TOLK-2365-epost-om-påmelding-kurs
Tolk-2365 : Som kurseier ønsker jeg mulighet for å få en mail for hver påmelding på kurs
- Loading branch information
Showing
8 changed files
with
258 additions
and
1 deletion.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...pp/disabled-unpackagable-with-auto-deploy/email/unfiled$public/courseNewParticipant.email
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,21 @@ | ||
<!DOCTYPE html> | ||
<html style="overflow-y: hidden;"> | ||
<head><meta><meta content="width=device-width, initial-scale=1.0" name="viewport"> | ||
<title></title> | ||
<style type="text/css">body { margin: 0; padding: 0; } | ||
</style> | ||
</head> | ||
<body style="height: auto; min-height: auto;"> | ||
<table bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center"><img alt="NAV Logo" src="https://navdialog.my.salesforce.com/servlet/servlet.ImageServer?id=0152o000005v5nL&oid=00D2o000000aANV" style="display:block; margin: 0 auto;" width="134" /> | ||
<p style="font-family: 'Source Sans Pro', Tahoma, Verdana, Segoe, sans-serif; font-size: 20px; color: #3e3832; line-height: 1.5; text-align: center;">En ny deltaker har meldt seg på kurset {{{courseName}}}</p> | ||
|
||
<p style="font-family: 'Source Sans Pro', Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; color: #3e3832; line-height: 1.5; text-align: center;">[Dette er en automatisk generert epost. Du får dette varselet fordi du er eier av et kurs og ønsket varsel ved hver påmelding]</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
...ed-unpackagable-with-auto-deploy/email/unfiled$public/courseNewParticipant.email-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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<available>true</available> | ||
<encodingKey>UTF-8</encodingKey> | ||
<name>courseNewParticipant</name> | ||
<style>none</style> | ||
<subject>Ny påmelding til kurs</subject> | ||
<type>custom</type> | ||
<uiType>SFX</uiType> | ||
</EmailTemplate> |
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
187 changes: 187 additions & 0 deletions
187
force-app/main/default/flows/HOT_NotifyCourseOwnerOnNewParticipantRegistration.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,187 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Flow xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>60.0</apiVersion> | ||
<decisions> | ||
<name>notify_owner_or_not</name> | ||
<label>notify owner or not</label> | ||
<locationX>182</locationX> | ||
<locationY>431</locationY> | ||
<defaultConnectorLabel>Default Outcome</defaultConnectorLabel> | ||
<rules> | ||
<name>notify_owner_is_true</name> | ||
<conditionLogic>and</conditionLogic> | ||
<conditions> | ||
<leftValueReference>get_course.Notify_me_on_new_participants__c</leftValueReference> | ||
<operator>EqualTo</operator> | ||
<rightValue> | ||
<booleanValue>true</booleanValue> | ||
</rightValue> | ||
</conditions> | ||
<connector> | ||
<targetReference>create_email_to_course_owner</targetReference> | ||
</connector> | ||
<label>notify owner is true</label> | ||
</rules> | ||
</decisions> | ||
<environments>Default</environments> | ||
<interviewLabel>Notify course owner on new participant registration {!$Flow.CurrentDateTime}</interviewLabel> | ||
<label>Notify course owner on new participant registration</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> | ||
<recordCreates> | ||
<name>create_email_to_course_owner</name> | ||
<label>create email to course owner</label> | ||
<locationX>50</locationX> | ||
<locationY>539</locationY> | ||
<inputAssignments> | ||
<field>HTMLBody__c</field> | ||
<value> | ||
<elementReference>emailbody</elementReference> | ||
</value> | ||
</inputAssignments> | ||
<inputAssignments> | ||
<field>SaveAsActivity__c</field> | ||
<value> | ||
<booleanValue>true</booleanValue> | ||
</value> | ||
</inputAssignments> | ||
<inputAssignments> | ||
<field>Status__c</field> | ||
<value> | ||
<stringValue>Instant</stringValue> | ||
</value> | ||
</inputAssignments> | ||
<inputAssignments> | ||
<field>Subject__c</field> | ||
<value> | ||
<stringValue>Ny påmelding til kurs</stringValue> | ||
</value> | ||
</inputAssignments> | ||
<inputAssignments> | ||
<field>TargetObjectId__c</field> | ||
<value> | ||
<elementReference>$Record.Course__r.OwnerId</elementReference> | ||
</value> | ||
</inputAssignments> | ||
<inputAssignments> | ||
<field>TemplateName__c</field> | ||
<value> | ||
<stringValue>courseNewParticipant</stringValue> | ||
</value> | ||
</inputAssignments> | ||
<inputAssignments> | ||
<field>ToAddress__c</field> | ||
<value> | ||
<elementReference>$Record.Course__r.Owner:User.Email</elementReference> | ||
</value> | ||
</inputAssignments> | ||
<inputAssignments> | ||
<field>WhatId__c</field> | ||
<value> | ||
<elementReference>$Record.Id</elementReference> | ||
</value> | ||
</inputAssignments> | ||
<object>EmailQueue__c</object> | ||
<storeOutputAutomatically>true</storeOutputAutomatically> | ||
</recordCreates> | ||
<recordLookups> | ||
<name>get_course</name> | ||
<label>get course</label> | ||
<locationX>182</locationX> | ||
<locationY>323</locationY> | ||
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound> | ||
<connector> | ||
<targetReference>notify_owner_or_not</targetReference> | ||
</connector> | ||
<filterLogic>and</filterLogic> | ||
<filters> | ||
<field>Id</field> | ||
<operator>EqualTo</operator> | ||
<value> | ||
<elementReference>$Record.Course__c</elementReference> | ||
</value> | ||
</filters> | ||
<getFirstRecordOnly>true</getFirstRecordOnly> | ||
<object>Course__c</object> | ||
<storeOutputAutomatically>true</storeOutputAutomatically> | ||
</recordLookups> | ||
<start> | ||
<locationX>56</locationX> | ||
<locationY>0</locationY> | ||
<connector> | ||
<targetReference>get_course</targetReference> | ||
</connector> | ||
<filterLogic>or</filterLogic> | ||
<filters> | ||
<field>Status__c</field> | ||
<operator>EqualTo</operator> | ||
<value> | ||
<stringValue>Påmeldt</stringValue> | ||
</value> | ||
</filters> | ||
<filters> | ||
<field>Status__c</field> | ||
<operator>EqualTo</operator> | ||
<value> | ||
<stringValue>Venteliste</stringValue> | ||
</value> | ||
</filters> | ||
<object>CourseRegistration__c</object> | ||
<recordTriggerType>Create</recordTriggerType> | ||
<triggerType>RecordAfterSave</triggerType> | ||
</start> | ||
<status>Active</status> | ||
<textTemplates> | ||
<name>emailbody</name> | ||
<isViewedAsPlainText>false</isViewedAsPlainText> | ||
<text><!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title></title> | ||
<style> | ||
body { margin: 0; padding: 0; } | ||
</style> | ||
</head> | ||
<body> | ||
<table cellpadding="0" cellspacing="0" width="100%" bgcolor="#FFFFFF"> | ||
<tr> | ||
<td align="center"> | ||
<img src="https://navdialog.my.salesforce.com/servlet/servlet.ImageServer?id=0152o000005v5nL&oid=00D2o000000aANV" alt="NAV Logo" width="134" style="display:block; margin: 0 auto;"> | ||
<p style="font-family: 'Source Sans Pro', Tahoma, Verdana, Segoe, sans-serif; font-size: 20px; color: #3e3832; line-height: 1.5; text-align: center;">En ny deltaker har meldt seg på kurset {!courseName}</p> | ||
<p style="font-family: 'Source Sans Pro', Tahoma, Verdana, Segoe, sans-serif; font-size: 14px; color: #3e3832; line-height: 1.5; text-align: center;">[Dette er en automatisk generert epost. Du får dette varselet fordi du er eier av et kurs og ønsket varsel ved hver påmelding]</p> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html></text> | ||
</textTemplates> | ||
<variables> | ||
<name>courseName</name> | ||
<dataType>String</dataType> | ||
<isCollection>false</isCollection> | ||
<isInput>false</isInput> | ||
<isOutput>false</isOutput> | ||
<value> | ||
<elementReference>$Record.Course__r.Name</elementReference> | ||
</value> | ||
</variables> | ||
</Flow> |
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
6 changes: 6 additions & 0 deletions
6
...bjectTranslations/Course__c-no/Notify_me_on_new_participants__c.fieldTranslation-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,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomFieldTranslation xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<help></help> | ||
<label>Varsle meg ved hver påmelding?</label> | ||
<name>Notify_me_on_new_participants__c</name> | ||
</CustomFieldTranslation> |
10 changes: 10 additions & 0 deletions
10
...app/main/default/objects/Course__c/fields/Notify_me_on_new_participants__c.field-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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Notify_me_on_new_participants__c</fullName> | ||
<defaultValue>false</defaultValue> | ||
<externalId>false</externalId> | ||
<inlineHelpText>Velg om du ønsker å bli varslet for hver nye påmelding. Eposten blir sendt til eier av kurset.</inlineHelpText> | ||
<label>Notify me on new participants?</label> | ||
<trackTrending>false</trackTrending> | ||
<type>Checkbox</type> | ||
</CustomField> |
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