|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 | 2 | <Flow xmlns="http://soap.sforce.com/2006/04/metadata">
|
3 | 3 | <apiVersion>60.0</apiVersion>
|
| 4 | + <assignments> |
| 5 | + <name>Legg_til_email_i_collection</name> |
| 6 | + <label>Legg til email i collection</label> |
| 7 | + <locationX>264</locationX> |
| 8 | + <locationY>647</locationY> |
| 9 | + <assignmentItems> |
| 10 | + <assignToReference>emails</assignToReference> |
| 11 | + <operator>Add</operator> |
| 12 | + <value> |
| 13 | + <elementReference>email</elementReference> |
| 14 | + </value> |
| 15 | + </assignmentItems> |
| 16 | + <connector> |
| 17 | + <targetReference>Send_email_to_all_participants_loop</targetReference> |
| 18 | + </connector> |
| 19 | + </assignments> |
| 20 | + <assignments> |
| 21 | + <name>Opprett_email</name> |
| 22 | + <label>Opprett email</label> |
| 23 | + <locationX>264</locationX> |
| 24 | + <locationY>539</locationY> |
| 25 | + <assignmentItems> |
| 26 | + <assignToReference>email.SaveAsActivity__c</assignToReference> |
| 27 | + <operator>Assign</operator> |
| 28 | + <value> |
| 29 | + <booleanValue>true</booleanValue> |
| 30 | + </value> |
| 31 | + </assignmentItems> |
| 32 | + <assignmentItems> |
| 33 | + <assignToReference>email.Status__c</assignToReference> |
| 34 | + <operator>Assign</operator> |
| 35 | + <value> |
| 36 | + <stringValue>Instant</stringValue> |
| 37 | + </value> |
| 38 | + </assignmentItems> |
| 39 | + <assignmentItems> |
| 40 | + <assignToReference>email.TargetObjectId__c</assignToReference> |
| 41 | + <operator>Assign</operator> |
| 42 | + <value> |
| 43 | + <elementReference>Send_email_to_all_participants_loop.CourseParticipant__c</elementReference> |
| 44 | + </value> |
| 45 | + </assignmentItems> |
| 46 | + <assignmentItems> |
| 47 | + <assignToReference>email.TemplateName__c</assignToReference> |
| 48 | + <operator>Assign</operator> |
| 49 | + <value> |
| 50 | + <stringValue>courseCancellation</stringValue> |
| 51 | + </value> |
| 52 | + </assignmentItems> |
| 53 | + <assignmentItems> |
| 54 | + <assignToReference>email.WhatId__c</assignToReference> |
| 55 | + <operator>Assign</operator> |
| 56 | + <value> |
| 57 | + <elementReference>Send_email_to_all_participants_loop.Id</elementReference> |
| 58 | + </value> |
| 59 | + </assignmentItems> |
| 60 | + <connector> |
| 61 | + <targetReference>Legg_til_email_i_collection</targetReference> |
| 62 | + </connector> |
| 63 | + </assignments> |
4 | 64 | <description>Sends emails to participants when course is cancelled</description>
|
5 | 65 | <environments>Default</environments>
|
6 | 66 | <interviewLabel>Course Cancellation email {!$Flow.CurrentDateTime}</interviewLabel>
|
|
13 | 73 | <collectionReference>Get_all_participants</collectionReference>
|
14 | 74 | <iterationOrder>Asc</iterationOrder>
|
15 | 75 | <nextValueConnector>
|
16 |
| - <targetReference>Create_emails</targetReference> |
| 76 | + <targetReference>Opprett_email</targetReference> |
17 | 77 | </nextValueConnector>
|
| 78 | + <noMoreValuesConnector> |
| 79 | + <targetReference>Create_Records1</targetReference> |
| 80 | + </noMoreValuesConnector> |
18 | 81 | </loops>
|
19 | 82 | <processMetadataValues>
|
20 | 83 | <name>BuilderType</name>
|
|
36 | 99 | </processMetadataValues>
|
37 | 100 | <processType>AutoLaunchedFlow</processType>
|
38 | 101 | <recordCreates>
|
39 |
| - <name>Create_emails</name> |
40 |
| - <label>Create emails</label> |
41 |
| - <locationX>264</locationX> |
42 |
| - <locationY>539</locationY> |
43 |
| - <connector> |
44 |
| - <targetReference>Send_email_to_all_participants_loop</targetReference> |
45 |
| - </connector> |
46 |
| - <inputAssignments> |
47 |
| - <field>SaveAsActivity__c</field> |
48 |
| - <value> |
49 |
| - <booleanValue>true</booleanValue> |
50 |
| - </value> |
51 |
| - </inputAssignments> |
52 |
| - <inputAssignments> |
53 |
| - <field>Status__c</field> |
54 |
| - <value> |
55 |
| - <stringValue>Instant</stringValue> |
56 |
| - </value> |
57 |
| - </inputAssignments> |
58 |
| - <inputAssignments> |
59 |
| - <field>TargetObjectId__c</field> |
60 |
| - <value> |
61 |
| - <elementReference>Send_email_to_all_participants_loop.CourseParticipant__c</elementReference> |
62 |
| - </value> |
63 |
| - </inputAssignments> |
64 |
| - <inputAssignments> |
65 |
| - <field>TemplateName__c</field> |
66 |
| - <value> |
67 |
| - <stringValue>courseCancellation</stringValue> |
68 |
| - </value> |
69 |
| - </inputAssignments> |
70 |
| - <inputAssignments> |
71 |
| - <field>WhatId__c</field> |
72 |
| - <value> |
73 |
| - <elementReference>Send_email_to_all_participants_loop.Id</elementReference> |
74 |
| - </value> |
75 |
| - </inputAssignments> |
76 |
| - <object>EmailQueue__c</object> |
77 |
| - <storeOutputAutomatically>true</storeOutputAutomatically> |
| 102 | + <name>Create_Records1</name> |
| 103 | + <label>Create Records</label> |
| 104 | + <locationX>176</locationX> |
| 105 | + <locationY>839</locationY> |
| 106 | + <inputReference>emails</inputReference> |
78 | 107 | </recordCreates>
|
79 | 108 | <recordLookups>
|
80 | 109 | <name>Get_all_participants</name>
|
|
124 | 153 | <triggerType>RecordAfterSave</triggerType>
|
125 | 154 | </start>
|
126 | 155 | <status>Active</status>
|
| 156 | + <variables> |
| 157 | + <name>email</name> |
| 158 | + <dataType>SObject</dataType> |
| 159 | + <isCollection>false</isCollection> |
| 160 | + <isInput>false</isInput> |
| 161 | + <isOutput>false</isOutput> |
| 162 | + <objectType>EmailQueue__c</objectType> |
| 163 | + </variables> |
| 164 | + <variables> |
| 165 | + <name>emails</name> |
| 166 | + <dataType>SObject</dataType> |
| 167 | + <isCollection>true</isCollection> |
| 168 | + <isInput>false</isInput> |
| 169 | + <isOutput>false</isOutput> |
| 170 | + <objectType>EmailQueue__c</objectType> |
| 171 | + </variables> |
127 | 172 | </Flow>
|
0 commit comments