|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<Flow xmlns="http://soap.sforce.com/2006/04/metadata"> |
| 3 | + <apiVersion>65.0</apiVersion> |
| 4 | + <environments>Default</environments> |
| 5 | + <formulas> |
| 6 | + <name>In3Days</name> |
| 7 | + <dataType>Date</dataType> |
| 8 | + <expression>TODAY() + 3</expression> |
| 9 | + </formulas> |
| 10 | + <formulas> |
| 11 | + <description>Starts in 4 days</description> |
| 12 | + <name>In4Days</name> |
| 13 | + <dataType>Date</dataType> |
| 14 | + <expression>TODAY() + 4</expression> |
| 15 | + </formulas> |
| 16 | + <interviewLabel>HOT Course Reminder Email {!$Flow.CurrentDateTime}</interviewLabel> |
| 17 | + <label>HOT Course Reminder Email</label> |
| 18 | + <loops> |
| 19 | + <name>Loop_Through_Courses</name> |
| 20 | + <label>Loop Through Courses</label> |
| 21 | + <locationX>0</locationX> |
| 22 | + <locationY>0</locationY> |
| 23 | + <collectionReference>Get_Courses_Starting_in_3_Days</collectionReference> |
| 24 | + <iterationOrder>Asc</iterationOrder> |
| 25 | + <nextValueConnector> |
| 26 | + <targetReference>Get_Registrations_for_Course</targetReference> |
| 27 | + </nextValueConnector> |
| 28 | + </loops> |
| 29 | + <loops> |
| 30 | + <name>Loop_Through_Registrations</name> |
| 31 | + <label>Loop Through Registrations</label> |
| 32 | + <locationX>0</locationX> |
| 33 | + <locationY>0</locationY> |
| 34 | + <collectionReference>Get_Registrations_for_Course</collectionReference> |
| 35 | + <iterationOrder>Asc</iterationOrder> |
| 36 | + <nextValueConnector> |
| 37 | + <targetReference>Send_Course_Reminder_Email</targetReference> |
| 38 | + </nextValueConnector> |
| 39 | + <noMoreValuesConnector> |
| 40 | + <targetReference>Loop_Through_Courses</targetReference> |
| 41 | + </noMoreValuesConnector> |
| 42 | + </loops> |
| 43 | + <processMetadataValues> |
| 44 | + <name>BuilderType</name> |
| 45 | + <value> |
| 46 | + <stringValue>LightningFlowBuilder</stringValue> |
| 47 | + </value> |
| 48 | + </processMetadataValues> |
| 49 | + <processMetadataValues> |
| 50 | + <name>CanvasMode</name> |
| 51 | + <value> |
| 52 | + <stringValue>AUTO_LAYOUT_CANVAS</stringValue> |
| 53 | + </value> |
| 54 | + </processMetadataValues> |
| 55 | + <processMetadataValues> |
| 56 | + <name>OriginBuilderType</name> |
| 57 | + <value> |
| 58 | + <stringValue>LightningFlowBuilder</stringValue> |
| 59 | + </value> |
| 60 | + </processMetadataValues> |
| 61 | + <processType>AutoLaunchedFlow</processType> |
| 62 | + <recordCreates> |
| 63 | + <name>Send_Course_Reminder_Email</name> |
| 64 | + <label>Send Course Reminder Email</label> |
| 65 | + <locationX>0</locationX> |
| 66 | + <locationY>0</locationY> |
| 67 | + <connector> |
| 68 | + <targetReference>Loop_Through_Registrations</targetReference> |
| 69 | + </connector> |
| 70 | + <inputAssignments> |
| 71 | + <field>Priority__c</field> |
| 72 | + <value> |
| 73 | + <stringValue>1</stringValue> |
| 74 | + </value> |
| 75 | + </inputAssignments> |
| 76 | + <inputAssignments> |
| 77 | + <field>SaveAsActivity__c</field> |
| 78 | + <value> |
| 79 | + <booleanValue>true</booleanValue> |
| 80 | + </value> |
| 81 | + </inputAssignments> |
| 82 | + <inputAssignments> |
| 83 | + <field>Status__c</field> |
| 84 | + <value> |
| 85 | + <stringValue>Queued</stringValue> |
| 86 | + </value> |
| 87 | + </inputAssignments> |
| 88 | + <inputAssignments> |
| 89 | + <field>TargetObjectId__c</field> |
| 90 | + <value> |
| 91 | + <elementReference>Loop_Through_Registrations.CourseParticipant__c</elementReference> |
| 92 | + </value> |
| 93 | + </inputAssignments> |
| 94 | + <inputAssignments> |
| 95 | + <field>TemplateName__c</field> |
| 96 | + <value> |
| 97 | + <stringValue>courseAllScheduledEmailReminder</stringValue> |
| 98 | + </value> |
| 99 | + </inputAssignments> |
| 100 | + <inputAssignments> |
| 101 | + <field>WhatId__c</field> |
| 102 | + <value> |
| 103 | + <elementReference>Loop_Through_Registrations.Id</elementReference> |
| 104 | + </value> |
| 105 | + </inputAssignments> |
| 106 | + <object>EmailQueue__c</object> |
| 107 | + <storeOutputAutomatically>true</storeOutputAutomatically> |
| 108 | + </recordCreates> |
| 109 | + <recordLookups> |
| 110 | + <name>Get_Courses_Starting_in_3_Days</name> |
| 111 | + <label>Get Courses Starting in 3 Days</label> |
| 112 | + <locationX>0</locationX> |
| 113 | + <locationY>0</locationY> |
| 114 | + <assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound> |
| 115 | + <connector> |
| 116 | + <targetReference>Loop_Through_Courses</targetReference> |
| 117 | + </connector> |
| 118 | + <filterLogic>and</filterLogic> |
| 119 | + <filters> |
| 120 | + <field>Active__c</field> |
| 121 | + <operator>EqualTo</operator> |
| 122 | + <value> |
| 123 | + <booleanValue>true</booleanValue> |
| 124 | + </value> |
| 125 | + </filters> |
| 126 | + <filters> |
| 127 | + <field>RegistrationFromDateTime__c</field> |
| 128 | + <operator>GreaterThanOrEqualTo</operator> |
| 129 | + <value> |
| 130 | + <elementReference>In3Days</elementReference> |
| 131 | + </value> |
| 132 | + </filters> |
| 133 | + <filters> |
| 134 | + <field>RegistrationFromDateTime__c</field> |
| 135 | + <operator>LessThan</operator> |
| 136 | + <value> |
| 137 | + <elementReference>In4Days</elementReference> |
| 138 | + </value> |
| 139 | + </filters> |
| 140 | + <getFirstRecordOnly>false</getFirstRecordOnly> |
| 141 | + <object>Course__c</object> |
| 142 | + <storeOutputAutomatically>true</storeOutputAutomatically> |
| 143 | + </recordLookups> |
| 144 | + <recordLookups> |
| 145 | + <name>Get_Registrations_for_Course</name> |
| 146 | + <label>Get Registrations for Course</label> |
| 147 | + <locationX>0</locationX> |
| 148 | + <locationY>0</locationY> |
| 149 | + <assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound> |
| 150 | + <connector> |
| 151 | + <targetReference>Loop_Through_Registrations</targetReference> |
| 152 | + </connector> |
| 153 | + <filterLogic>and</filterLogic> |
| 154 | + <filters> |
| 155 | + <field>Status__c</field> |
| 156 | + <operator>EqualTo</operator> |
| 157 | + <value> |
| 158 | + <stringValue>Påmeldt</stringValue> |
| 159 | + </value> |
| 160 | + </filters> |
| 161 | + <filters> |
| 162 | + <field>Course__c</field> |
| 163 | + <operator>EqualTo</operator> |
| 164 | + <value> |
| 165 | + <elementReference>Loop_Through_Courses.Id</elementReference> |
| 166 | + </value> |
| 167 | + </filters> |
| 168 | + <getFirstRecordOnly>false</getFirstRecordOnly> |
| 169 | + <object>CourseRegistration__c</object> |
| 170 | + <storeOutputAutomatically>true</storeOutputAutomatically> |
| 171 | + </recordLookups> |
| 172 | + <start> |
| 173 | + <locationX>0</locationX> |
| 174 | + <locationY>0</locationY> |
| 175 | + <connector> |
| 176 | + <targetReference>Get_Courses_Starting_in_3_Days</targetReference> |
| 177 | + </connector> |
| 178 | + <schedule> |
| 179 | + <frequency>Daily</frequency> |
| 180 | + <startDate>2025-11-04</startDate> |
| 181 | + <startTime>16:00:00.000Z</startTime> |
| 182 | + </schedule> |
| 183 | + <triggerType>Scheduled</triggerType> |
| 184 | + </start> |
| 185 | + <status>Active</status> |
| 186 | +</Flow> |
0 commit comments