Skip to content

Commit 8277c9b

Browse files
authored
Add planId to task and event flows (#2096)
1 parent 4d32900 commit 8277c9b

14 files changed

+148
-68
lines changed

force-app/main/default/flows/TAG_Event.flow-meta.xml

+12
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,12 @@
466466
<elementReference>$Record.TAG_IACooperationId__c</elementReference>
467467
</value>
468468
</inputAssignments>
469+
<inputAssignments>
470+
<field>IAPlanId__c</field>
471+
<value>
472+
<elementReference>$Record.TAG_IAPlanId__c</elementReference>
473+
</value>
474+
</inputAssignments>
469475
<inputAssignments>
470476
<field>IASubtheme__c</field>
471477
<value>
@@ -752,6 +758,12 @@
752758
<elementReference>Get_IA_Cooperation.CooperationId__c</elementReference>
753759
</value>
754760
</inputAssignments>
761+
<inputAssignments>
762+
<field>TAG_IAPlanId__c</field>
763+
<value>
764+
<elementReference>Get_IA_Cooperation.PlanId__c</elementReference>
765+
</value>
766+
</inputAssignments>
755767
<inputAssignments>
756768
<field>TAG_service__c</field>
757769
<value>

force-app/main/default/flows/TAG_Event_Rerun_Scheduled.flow-meta.xml

+29-33
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<assignments>
55
<name>Event_Type_Updated</name>
66
<label>Event Type Updated</label>
7-
<locationX>50</locationX>
8-
<locationY>360</locationY>
7+
<locationX>176</locationX>
8+
<locationY>252</locationY>
99
<assignmentItems>
1010
<assignToReference>EventType</assignToReference>
1111
<operator>Assign</operator>
@@ -17,28 +17,6 @@
1717
<targetReference>Create_Employer_Activity_Event</targetReference>
1818
</connector>
1919
</assignments>
20-
<decisions>
21-
<name>Subject_equals_pubsub</name>
22-
<label>Subject equals pubsub?</label>
23-
<locationX>182</locationX>
24-
<locationY>252</locationY>
25-
<defaultConnectorLabel>Not pubsub</defaultConnectorLabel>
26-
<rules>
27-
<name>Yes_pubsub</name>
28-
<conditionLogic>and</conditionLogic>
29-
<conditions>
30-
<leftValueReference>$Record.Subject</leftValueReference>
31-
<operator>StartsWith</operator>
32-
<rightValue>
33-
<stringValue>pubsub test</stringValue>
34-
</rightValue>
35-
</conditions>
36-
<connector>
37-
<targetReference>Event_Type_Updated</targetReference>
38-
</connector>
39-
<label>Yes pubsub</label>
40-
</rules>
41-
</decisions>
4220
<environments>Default</environments>
4321
<interviewLabel>TAG Event Rerun Scheduled {!$Flow.CurrentDateTime}</interviewLabel>
4422
<label>TAG Event Rerun Scheduled</label>
@@ -64,8 +42,8 @@
6442
<recordCreates>
6543
<name>Create_Employer_Activity_Event</name>
6644
<label>Create Employer Activity Event</label>
67-
<locationX>50</locationX>
68-
<locationY>468</locationY>
45+
<locationX>176</locationX>
46+
<locationY>360</locationY>
6947
<inputAssignments>
7048
<field>AccountNavUnit__c</field>
7149
<value>
@@ -150,6 +128,12 @@
150128
<elementReference>$Record.TAG_IACooperationId__c</elementReference>
151129
</value>
152130
</inputAssignments>
131+
<inputAssignments>
132+
<field>IAPlanId__c</field>
133+
<value>
134+
<elementReference>$Record.TAG_IAPlanId__c</elementReference>
135+
</value>
136+
</inputAssignments>
153137
<inputAssignments>
154138
<field>IASubtheme__c</field>
155139
<value>
@@ -162,12 +146,24 @@
162146
<elementReference>$Record.Id</elementReference>
163147
</value>
164148
</inputAssignments>
149+
<inputAssignments>
150+
<field>LastModifiedById__c</field>
151+
<value>
152+
<elementReference>$Record.LastModifiedById</elementReference>
153+
</value>
154+
</inputAssignments>
165155
<inputAssignments>
166156
<field>LastModifiedDate__c</field>
167157
<value>
168158
<elementReference>$Record.LastModifiedDate</elementReference>
169159
</value>
170160
</inputAssignments>
161+
<inputAssignments>
162+
<field>OwnerId__c</field>
163+
<value>
164+
<elementReference>$Record.OwnerId</elementReference>
165+
</value>
166+
</inputAssignments>
171167
<inputAssignments>
172168
<field>RecordTypeId__c</field>
173169
<value>
@@ -256,10 +252,10 @@
256252
<storeOutputAutomatically>true</storeOutputAutomatically>
257253
</recordCreates>
258254
<start>
259-
<locationX>56</locationX>
255+
<locationX>50</locationX>
260256
<locationY>0</locationY>
261257
<connector>
262-
<targetReference>Subject_equals_pubsub</targetReference>
258+
<targetReference>Event_Type_Updated</targetReference>
263259
</connector>
264260
<filterLogic>and</filterLogic>
265261
<filters>
@@ -287,25 +283,25 @@
287283
<field>CreatedDate</field>
288284
<operator>GreaterThan</operator>
289285
<value>
290-
<dateTimeValue>2025-01-18T13:34:00.000Z</dateTimeValue>
286+
<dateTimeValue>2025-01-31T23:10:00.000Z</dateTimeValue>
291287
</value>
292288
</filters>
293289
<filters>
294290
<field>CreatedDate</field>
295291
<operator>LessThan</operator>
296292
<value>
297-
<dateTimeValue>2025-01-20T13:34:00.000Z</dateTimeValue>
293+
<dateTimeValue>2025-02-28T22:55:00.000Z</dateTimeValue>
298294
</value>
299295
</filters>
300296
<object>Event</object>
301297
<schedule>
302298
<frequency>Once</frequency>
303-
<startDate>2025-01-21</startDate>
304-
<startTime>11:00:00.000Z</startTime>
299+
<startDate>2025-03-05</startDate>
300+
<startTime>20:30:00.000Z</startTime>
305301
</schedule>
306302
<triggerType>Scheduled</triggerType>
307303
</start>
308-
<status>Obsolete</status>
304+
<status>Active</status>
309305
<variables>
310306
<name>EventType</name>
311307
<dataType>String</dataType>

force-app/main/default/flows/TAG_Task.flow-meta.xml

+12
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,12 @@
489489
<elementReference>$Record.TAG_IACooperationId__c</elementReference>
490490
</value>
491491
</inputAssignments>
492+
<inputAssignments>
493+
<field>IAPlanId__c</field>
494+
<value>
495+
<elementReference>$Record.TAG_IAPlanId__c</elementReference>
496+
</value>
497+
</inputAssignments>
492498
<inputAssignments>
493499
<field>IASubtheme__c</field>
494500
<value>
@@ -796,6 +802,12 @@
796802
<elementReference>Get_IA_Cooperation.CooperationId__c</elementReference>
797803
</value>
798804
</inputAssignments>
805+
<inputAssignments>
806+
<field>TAG_IAPlanId__c</field>
807+
<value>
808+
<elementReference>Get_IA_Cooperation.PlanId__c</elementReference>
809+
</value>
810+
</inputAssignments>
799811
<inputAssignments>
800812
<field>TAG_service__c</field>
801813
<value>

force-app/main/default/flows/TAG_Task_Rerun_Scheduled.flow-meta.xml

+35-33
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<assignments>
55
<name>Event_Type_Updated</name>
66
<label>Event Type Updated</label>
7-
<locationX>50</locationX>
8-
<locationY>360</locationY>
7+
<locationX>176</locationX>
8+
<locationY>252</locationY>
99
<assignmentItems>
1010
<assignToReference>EventType</assignToReference>
1111
<operator>Assign</operator>
@@ -17,28 +17,6 @@
1717
<targetReference>Create_Employer_Activity_Event</targetReference>
1818
</connector>
1919
</assignments>
20-
<decisions>
21-
<name>Subject_equals_pubsub</name>
22-
<label>Subject equals pubsub?</label>
23-
<locationX>182</locationX>
24-
<locationY>252</locationY>
25-
<defaultConnectorLabel>Not pubsub</defaultConnectorLabel>
26-
<rules>
27-
<name>Yes_pubsub</name>
28-
<conditionLogic>and</conditionLogic>
29-
<conditions>
30-
<leftValueReference>$Record.Subject</leftValueReference>
31-
<operator>StartsWith</operator>
32-
<rightValue>
33-
<stringValue>pubsub test</stringValue>
34-
</rightValue>
35-
</conditions>
36-
<connector>
37-
<targetReference>Event_Type_Updated</targetReference>
38-
</connector>
39-
<label>Yes pubsub</label>
40-
</rules>
41-
</decisions>
4220
<environments>Default</environments>
4321
<interviewLabel>TAG Task Rerun Scheduled {!$Flow.CurrentDateTime}</interviewLabel>
4422
<label>TAG Task Rerun Scheduled</label>
@@ -64,8 +42,8 @@
6442
<recordCreates>
6543
<name>Create_Employer_Activity_Event</name>
6644
<label>Create Employer Activity Event</label>
67-
<locationX>50</locationX>
68-
<locationY>468</locationY>
45+
<locationX>176</locationX>
46+
<locationY>360</locationY>
6947
<inputAssignments>
7048
<field>AccountNavUnit__c</field>
7149
<value>
@@ -114,6 +92,12 @@
11492
<elementReference>$Record.TAG_ActivityType__c</elementReference>
11593
</value>
11694
</inputAssignments>
95+
<inputAssignments>
96+
<field>CompletedDate__c</field>
97+
<value>
98+
<elementReference>$Record.TAG_CompletedDate__c</elementReference>
99+
</value>
100+
</inputAssignments>
117101
<inputAssignments>
118102
<field>EventObject__c</field>
119103
<value>
@@ -138,6 +122,12 @@
138122
<elementReference>$Record.TAG_IACooperationId__c</elementReference>
139123
</value>
140124
</inputAssignments>
125+
<inputAssignments>
126+
<field>IAPlanId__c</field>
127+
<value>
128+
<elementReference>$Record.TAG_IAPlanId__c</elementReference>
129+
</value>
130+
</inputAssignments>
141131
<inputAssignments>
142132
<field>IASubtheme__c</field>
143133
<value>
@@ -150,12 +140,24 @@
150140
<elementReference>$Record.Id</elementReference>
151141
</value>
152142
</inputAssignments>
143+
<inputAssignments>
144+
<field>LastModifiedById__c</field>
145+
<value>
146+
<elementReference>$Record.LastModifiedById</elementReference>
147+
</value>
148+
</inputAssignments>
153149
<inputAssignments>
154150
<field>LastModifiedDate__c</field>
155151
<value>
156152
<elementReference>$Record.LastModifiedDate</elementReference>
157153
</value>
158154
</inputAssignments>
155+
<inputAssignments>
156+
<field>OwnerId__c</field>
157+
<value>
158+
<elementReference>$Record.OwnerId</elementReference>
159+
</value>
160+
</inputAssignments>
159161
<inputAssignments>
160162
<field>Priority__c</field>
161163
<value>
@@ -244,10 +246,10 @@
244246
<storeOutputAutomatically>true</storeOutputAutomatically>
245247
</recordCreates>
246248
<start>
247-
<locationX>56</locationX>
249+
<locationX>50</locationX>
248250
<locationY>0</locationY>
249251
<connector>
250-
<targetReference>Subject_equals_pubsub</targetReference>
252+
<targetReference>Event_Type_Updated</targetReference>
251253
</connector>
252254
<filterLogic>and</filterLogic>
253255
<filters>
@@ -268,25 +270,25 @@
268270
<field>CreatedDate</field>
269271
<operator>GreaterThan</operator>
270272
<value>
271-
<dateTimeValue>2025-01-18T13:34:00.000Z</dateTimeValue>
273+
<dateTimeValue>2025-01-31T23:10:00.000Z</dateTimeValue>
272274
</value>
273275
</filters>
274276
<filters>
275277
<field>CreatedDate</field>
276278
<operator>LessThan</operator>
277279
<value>
278-
<dateTimeValue>2025-01-20T13:34:00.000Z</dateTimeValue>
280+
<dateTimeValue>2025-02-28T22:55:00.000Z</dateTimeValue>
279281
</value>
280282
</filters>
281283
<object>Task</object>
282284
<schedule>
283285
<frequency>Once</frequency>
284-
<startDate>2025-01-21</startDate>
285-
<startTime>11:00:00.000Z</startTime>
286+
<startDate>2025-03-05</startDate>
287+
<startTime>20:30:00.000Z</startTime>
286288
</schedule>
287289
<triggerType>Scheduled</triggerType>
288290
</start>
289-
<status>Draft</status>
291+
<status>Active</status>
290292
<variables>
291293
<name>EventType</name>
292294
<dataType>String</dataType>

force-app/main/default/flows/Tag_Event_Listener.flow-meta.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<object>EmployerActivityEvent__e</object>
7070
<triggerType>PlatformEvent</triggerType>
7171
</start>
72-
<status>Obsolete</status>
72+
<status>Active</status>
7373
<textTemplates>
7474
<name>FetchValues</name>
7575
<isViewedAsPlainText>true</isViewedAsPlainText>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<fullName>TAG_IAPlanId__c</fullName>
4+
<externalId>false</externalId>
5+
<label>IA Plan Id</label>
6+
<length>40</length>
7+
<required>false</required>
8+
<type>Text</type>
9+
<unique>false</unique>
10+
</CustomField>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<fullName>IAPlanId__c</fullName>
4+
<externalId>false</externalId>
5+
<isFilteringDisabled>false</isFilteringDisabled>
6+
<isNameField>false</isNameField>
7+
<isSortingDisabled>false</isSortingDisabled>
8+
<label>IA Plan Id</label>
9+
<length>40</length>
10+
<required>false</required>
11+
<type>Text</type>
12+
<unique>false</unique>
13+
</CustomField>

force-app/main/default/objects/EmployerActivityEvent__e/fields/IASubtheme__c.field-meta.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<isNameField>false</isNameField>
77
<isSortingDisabled>false</isSortingDisabled>
88
<label>IA Subtheme</label>
9-
<length>64</length>
9+
<length>255</length>
1010
<required>false</required>
1111
<type>Text</type>
1212
<unique>false</unique>

force-app/main/default/permissionsets/Arbeidsgiver_IA.permissionset-meta.xml

+10
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@
5555
<field>Event.TAG_IACooperationId__c</field>
5656
<readable>true</readable>
5757
</fieldPermissions>
58+
<fieldPermissions>
59+
<editable>false</editable>
60+
<field>Event.TAG_IAPlanId__c</field>
61+
<readable>true</readable>
62+
</fieldPermissions>
5863
<fieldPermissions>
5964
<editable>true</editable>
6065
<field>Event.TAG_IsIAPriority__c</field>
@@ -385,6 +390,11 @@
385390
<field>Task.TAG_IACooperationId__c</field>
386391
<readable>true</readable>
387392
</fieldPermissions>
393+
<fieldPermissions>
394+
<editable>false</editable>
395+
<field>Task.TAG_IAPlanId__c</field>
396+
<readable>true</readable>
397+
</fieldPermissions>
388398
<fieldPermissions>
389399
<editable>true</editable>
390400
<field>Task.TAG_IsIAPriority__c</field>

0 commit comments

Comments
 (0)