Skip to content

Commit

Permalink
fixed missing "Meld Av" funcionality in confirmation email (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
piszosta authored Jan 18, 2023
1 parent 73326ed commit 05011d2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
7 changes: 7 additions & 0 deletions config/project-scratch-def.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@
"isGeoCodeSyncEnabled": false,
"isLocationHistoryEnabled": false,
"fieldServiceNotificationsOrgPref": true
},
"securitySettings": {
"sessionSettings": {
"forceRelogin": false,
"lockerServiceNext": false
},
"enableAdminLoginAsAnyUser": true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -370,38 +370,38 @@ private without sharing class EmailSchedulingHelperTest {

//Only check row 2 and 3 of the beforeQueue list, because process builder has already created email-confirmation, which occupies row 0 and 1
System.assert(
beforeCourse.EmailBeforeEmailQueueId__c.contains(beforeQueue[2].Id),
beforeCourse.EmailBeforeEmailQueueId__c.contains(beforeQueue[0].Id),
'EmailBeforeEmailQueueId__c should contain one of two EmailQueue__c Id\'s: ' + beforeQueue[0].Id
);
System.assert(
beforeCourse.EmailBeforeEmailQueueId__c.contains(beforeQueue[3].Id),
beforeCourse.EmailBeforeEmailQueueId__c.contains(beforeQueue[1].Id),
'EmailBeforeEmailQueueId__c should contain one of two EmailQueue__c Id\'s: ' + beforeQueue[1].Id
);

System.assert(
afterCourse.EmailAfterEmailQueueId__c.contains(afterQueue[2].Id),
afterCourse.EmailAfterEmailQueueId__c.contains(afterQueue[0].Id),
'EmailAfterEmailQueueId__c should contain one of two EmailQueue__c Id\'s: ' + afterQueue[0].Id
);
System.assert(
afterCourse.EmailAfterEmailQueueId__c.contains(afterQueue[3].Id),
afterCourse.EmailAfterEmailQueueId__c.contains(afterQueue[1].Id),
'EmailAfterEmailQueueId__c should contain one of two EmailQueue__c Id\'s: ' + afterQueue[1].Id
);

System.assert(
reminderCourse.EmailReminderEmailQueueId__c.contains(reminderQueue[2].Id),
reminderCourse.EmailReminderEmailQueueId__c.contains(reminderQueue[0].Id),
'EmailReminderEmailQueueId__c should contain one of two EmailQueue__c Id\'s: ' + reminderQueue[0].Id
);
System.assert(
reminderCourse.EmailReminderEmailQueueId__c.contains(reminderQueue[3].Id),
reminderCourse.EmailReminderEmailQueueId__c.contains(reminderQueue[1].Id),
'EmailReminderEmailQueueId__c should contain one of two EmailQueue__c Id\'s: ' + reminderQueue[1].Id
);

System.assert(
manualCourse.EmailManualEmailQueueId__c.contains(manualQueue[2].Id),
manualCourse.EmailManualEmailQueueId__c.contains(manualQueue[0].Id),
'EmailManualEmailQueueId__c should contain one of two EmailQueue__c Id\'s: ' + manualQueue[0].Id
);
System.assert(
manualCourse.EmailManualEmailQueueId__c.contains(manualQueue[3].Id),
manualCourse.EmailManualEmailQueueId__c.contains(manualQueue[1].Id),
'EmailManualEmailQueueId__c should contain one of two EmailQueue__c Id\'s: ' + manualQueue[1].Id
);
}
Expand Down
8 changes: 4 additions & 4 deletions force-app/main/default/flows/CourseRegistration.flow-meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<stringValue>[CourseRegistration__c].CourseParticipant__c</stringValue>
</value>
</processMetadataValues>
<name>formula_2_myRule_1_A1_5501101786</name>
<name>formula_2_myRule_1_A1_1791295064</name>
<dataType>String</dataType>
<expression>{!myVariable_current.CourseParticipant__c}</expression>
</formulas>
Expand All @@ -58,7 +58,7 @@ AND(ISNEW(),ISPICKVAL({!myVariable_current.Status__c},&quot;Påmeldt&quot;) ),
AND(ISCHANGED( {!myVariable_current.Status__c}),ISPICKVAL({!myVariable_current.Status__c} ,&quot;Påmeldt&quot;))
)</expression>
</formulas>
<interviewLabel>CourseRegistration-3_InterviewLabel</interviewLabel>
<interviewLabel>CourseRegistration-2_InterviewLabel</interviewLabel>
<label>Course Registration + Email Ver4</label>
<processMetadataValues>
<name>ObjectType</name>
Expand Down Expand Up @@ -189,7 +189,7 @@ AND(ISCHANGED( {!myVariable_current.Status__c}),ISPICKVAL({!myVariable_current.S
</processMetadataValues>
<field>TargetObjectId__c</field>
<value>
<elementReference>formula_2_myRule_1_A1_5501101786</elementReference>
<elementReference>formula_2_myRule_1_A1_1791295064</elementReference>
</value>
</inputAssignments>
<inputAssignments>
Expand Down Expand Up @@ -261,7 +261,7 @@ AND(ISCHANGED( {!myVariable_current.Status__c}),ISPICKVAL({!myVariable_current.S
</processMetadataValues>
<field>WhatId__c</field>
<value>
<elementReference>myVariable_current.Course__c</elementReference>
<elementReference>myVariable_current.Id</elementReference>
</value>
</inputAssignments>
<object>EmailQueue__c</object>
Expand Down

0 comments on commit 05011d2

Please sign in to comment.