Skip to content

Commit 13fc04d

Browse files
authored
Activate PubSub Integration flows and triggers (#2039)
1 parent 6acef05 commit 13fc04d

7 files changed

+87
-247
lines changed

force-app/main/default/customMetadata/MyTriggerSetting.Event_AFT_DEL_EmployerActivity.md-meta.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<protected>false</protected>
55
<values>
66
<field>Active__c</field>
7-
<value xsi:type="xsd:boolean">false</value>
7+
<value xsi:type="xsd:boolean">true</value>
88
</values>
99
<values>
1010
<field>ClassNamespacePrefix__c</field>

force-app/main/default/customMetadata/MyTriggerSetting.Event_AFT_UND_EmployerActivity.md-meta.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<protected>false</protected>
55
<values>
66
<field>Active__c</field>
7-
<value xsi:type="xsd:boolean">false</value>
7+
<value xsi:type="xsd:boolean">true</value>
88
</values>
99
<values>
1010
<field>ClassNamespacePrefix__c</field>

force-app/main/default/customMetadata/MyTriggerSetting.Task_AFT_DEL_EmployerActivity.md-meta.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<protected>false</protected>
55
<values>
66
<field>Active__c</field>
7-
<value xsi:type="xsd:boolean">false</value>
7+
<value xsi:type="xsd:boolean">true</value>
88
</values>
99
<values>
1010
<field>ClassNamespacePrefix__c</field>

force-app/main/default/customMetadata/MyTriggerSetting.Task_AFT_UND_EmployerActivity.md-meta.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<protected>false</protected>
55
<values>
66
<field>Active__c</field>
7-
<value xsi:type="xsd:boolean">false</value>
7+
<value xsi:type="xsd:boolean">true</value>
88
</values>
99
<values>
1010
<field>ClassNamespacePrefix__c</field>

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

+39-119
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<assignments>
55
<name>Event_Type_Created</name>
66
<label>Event Type Created</label>
7-
<locationX>50</locationX>
8-
<locationY>539</locationY>
7+
<locationX>974</locationX>
8+
<locationY>431</locationY>
99
<assignmentItems>
1010
<assignToReference>EventType</assignToReference>
1111
<operator>Assign</operator>
@@ -20,8 +20,8 @@
2020
<assignments>
2121
<name>Event_Type_Updated</name>
2222
<label>Event Type Updated</label>
23-
<locationX>314</locationX>
24-
<locationY>539</locationY>
23+
<locationX>1238</locationX>
24+
<locationY>431</locationY>
2525
<assignmentItems>
2626
<assignToReference>EventType</assignToReference>
2727
<operator>Assign</operator>
@@ -36,8 +36,8 @@
3636
<assignments>
3737
<name>Store_event_date</name>
3838
<label>Store event date</label>
39-
<locationX>1898</locationX>
40-
<locationY>647</locationY>
39+
<locationX>1370</locationX>
40+
<locationY>839</locationY>
4141
<assignmentItems>
4242
<assignToReference>StartDateTimeVariable</assignToReference>
4343
<operator>Assign</operator>
@@ -52,8 +52,8 @@
5252
<decisions>
5353
<name>Is_Event_related_to_IACase</name>
5454
<label>Is Event related to IACase?</label>
55-
<locationX>974</locationX>
56-
<locationY>1187</locationY>
55+
<locationX>446</locationX>
56+
<locationY>1379</locationY>
5757
<defaultConnectorLabel>Default Outcome</defaultConnectorLabel>
5858
<rules>
5959
<name>Yes</name>
@@ -74,8 +74,8 @@
7474
<decisions>
7575
<name>Is_IA_Case_Number_blank</name>
7676
<label>Is IA Case Number blank?</label>
77-
<locationX>1172</locationX>
78-
<locationY>971</locationY>
77+
<locationX>644</locationX>
78+
<locationY>1163</locationY>
7979
<defaultConnectorLabel>Not blank</defaultConnectorLabel>
8080
<rules>
8181
<name>Yes_is_blank</name>
@@ -103,8 +103,8 @@
103103
<decisions>
104104
<name>Is_IA_event</name>
105105
<label>Is IA event?</label>
106-
<locationX>1634</locationX>
107-
<locationY>539</locationY>
106+
<locationX>1106</locationX>
107+
<locationY>731</locationY>
108108
<defaultConnectorLabel>No not IA event</defaultConnectorLabel>
109109
<rules>
110110
<name>Yes_is_IA_event</name>
@@ -144,36 +144,11 @@
144144
<label>Is IPS event</label>
145145
</rules>
146146
</decisions>
147-
<decisions>
148-
<name>Subject_equals_pubsub</name>
149-
<label>Subject equals pubsub?</label>
150-
<locationX>908</locationX>
151-
<locationY>323</locationY>
152-
<defaultConnector>
153-
<targetReference>Update_fields</targetReference>
154-
</defaultConnector>
155-
<defaultConnectorLabel>Not pubsub</defaultConnectorLabel>
156-
<rules>
157-
<name>Yes_pubsub</name>
158-
<conditionLogic>and</conditionLogic>
159-
<conditions>
160-
<leftValueReference>$Record.Subject</leftValueReference>
161-
<operator>StartsWith</operator>
162-
<rightValue>
163-
<stringValue>pubsub test</stringValue>
164-
</rightValue>
165-
</conditions>
166-
<connector>
167-
<targetReference>Trigger_type</targetReference>
168-
</connector>
169-
<label>Yes pubsub</label>
170-
</rules>
171-
</decisions>
172147
<decisions>
173148
<name>Trigger_type</name>
174149
<label>Trigger type</label>
175-
<locationX>182</locationX>
176-
<locationY>431</locationY>
150+
<locationX>1106</locationX>
151+
<locationY>323</locationY>
177152
<defaultConnector>
178153
<targetReference>Event_Type_Updated</targetReference>
179154
</defaultConnector>
@@ -197,8 +172,8 @@
197172
<decisions>
198173
<name>Which_Record_Type</name>
199174
<label>Which Record Type?</label>
200-
<locationX>1106</locationX>
201-
<locationY>863</locationY>
175+
<locationX>578</locationX>
176+
<locationY>1055</locationY>
202177
<defaultConnectorLabel>Default Outcome</defaultConnectorLabel>
203178
<rules>
204179
<name>IA_Event</name>
@@ -291,8 +266,11 @@
291266
<recordCreates>
292267
<name>Create_Employer_Activity_Event</name>
293268
<label>Create Employer Activity Event</label>
294-
<locationX>182</locationX>
295-
<locationY>731</locationY>
269+
<locationX>1106</locationX>
270+
<locationY>623</locationY>
271+
<connector>
272+
<targetReference>Is_IA_event</targetReference>
273+
</connector>
296274
<inputAssignments>
297275
<field>AccountNavUnit__c</field>
298276
<value>
@@ -485,8 +463,8 @@
485463
<recordLookups>
486464
<name>Get_IA_Case</name>
487465
<label>Get IA Case</label>
488-
<locationX>974</locationX>
489-
<locationY>1079</locationY>
466+
<locationX>446</locationX>
467+
<locationY>1271</locationY>
490468
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
491469
<connector>
492470
<targetReference>Is_Event_related_to_IACase</targetReference>
@@ -506,8 +484,8 @@
506484
<recordLookups>
507485
<name>Get_IA_Case_via_Cooperation</name>
508486
<label>Get IA Case via Cooperation</label>
509-
<locationX>578</locationX>
510-
<locationY>1079</locationY>
487+
<locationX>50</locationX>
488+
<locationY>1271</locationY>
511489
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
512490
<connector>
513491
<targetReference>Set_Case_Number_ID_Theme_Subtheme</targetReference>
@@ -527,8 +505,8 @@
527505
<recordLookups>
528506
<name>Get_IA_Cooperation</name>
529507
<label>Get IA Cooperation</label>
530-
<locationX>578</locationX>
531-
<locationY>971</locationY>
508+
<locationX>50</locationX>
509+
<locationY>1163</locationY>
532510
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
533511
<connector>
534512
<targetReference>Get_IA_Case_via_Cooperation</targetReference>
@@ -548,8 +526,8 @@
548526
<recordLookups>
549527
<name>Get_latest_IA_priority_event</name>
550528
<label>Get latest IA priority event</label>
551-
<locationX>1106</locationX>
552-
<locationY>647</locationY>
529+
<locationX>578</locationX>
530+
<locationY>839</locationY>
553531
<assignNullValuesIfNoRecordsFound>false</assignNullValuesIfNoRecordsFound>
554532
<connector>
555533
<targetReference>Update_account</targetReference>
@@ -580,8 +558,8 @@
580558
<recordUpdates>
581559
<name>Set_Case_Number_ID_Theme_Subtheme</name>
582560
<label>Set Case Number, ID, Theme, Subtheme</label>
583-
<locationX>578</locationX>
584-
<locationY>1187</locationY>
561+
<locationX>50</locationX>
562+
<locationY>1379</locationY>
585563
<inputAssignments>
586564
<field>IACase__c</field>
587565
<value>
@@ -617,8 +595,8 @@
617595
<recordUpdates>
618596
<name>Set_IA_Case_Number</name>
619597
<label>Set IA Case Number</label>
620-
<locationX>842</locationX>
621-
<locationY>1295</locationY>
598+
<locationX>314</locationX>
599+
<locationY>1487</locationY>
622600
<inputAssignments>
623601
<field>IACase__c</field>
624602
<value>
@@ -636,8 +614,8 @@
636614
<recordUpdates>
637615
<name>Update_account</name>
638616
<label>Update account</label>
639-
<locationX>1106</locationX>
640-
<locationY>755</locationY>
617+
<locationX>578</locationX>
618+
<locationY>947</locationY>
641619
<connector>
642620
<targetReference>Which_Record_Type</targetReference>
643621
</connector>
@@ -657,69 +635,11 @@
657635
</inputAssignments>
658636
<object>Account</object>
659637
</recordUpdates>
660-
<recordUpdates>
661-
<name>Update_fields</name>
662-
<label>Update fields</label>
663-
<locationX>1634</locationX>
664-
<locationY>431</locationY>
665-
<connector>
666-
<targetReference>Is_IA_event</targetReference>
667-
</connector>
668-
<inputAssignments>
669-
<field>INT_AccountNAVUnitNr__c</field>
670-
<value>
671-
<elementReference>$Record.RelatedToAccount__r.TAG_NavUnit__r.INT_UnitNumber__c</elementReference>
672-
</value>
673-
</inputAssignments>
674-
<inputAssignments>
675-
<field>INT_AccountOrgNumber__c</field>
676-
<value>
677-
<elementReference>$Record.RelatedToAccount__r.INT_OrganizationNumber__c</elementReference>
678-
</value>
679-
</inputAssignments>
680-
<inputAssignments>
681-
<field>INT_AccountOrgType__c</field>
682-
<value>
683-
<elementReference>$Record.RelatedToAccount__r.CRM_AccountType__c</elementReference>
684-
</value>
685-
</inputAssignments>
686-
<inputAssignments>
687-
<field>INT_AccountParentId__c</field>
688-
<value>
689-
<elementReference>$Record.RelatedToAccount__r.ParentId</elementReference>
690-
</value>
691-
</inputAssignments>
692-
<inputAssignments>
693-
<field>INT_AccountParentOrgNumber__c</field>
694-
<value>
695-
<elementReference>$Record.RelatedToAccount__r.Parent.INT_ParentOrganizationNumber__c</elementReference>
696-
</value>
697-
</inputAssignments>
698-
<inputAssignments>
699-
<field>INT_UserNAVUnitName__c</field>
700-
<value>
701-
<elementReference>$Record.Owner:User.CompanyName</elementReference>
702-
</value>
703-
</inputAssignments>
704-
<inputAssignments>
705-
<field>INT_UserNAVUnitNr__c</field>
706-
<value>
707-
<elementReference>$Record.Owner:User.Department</elementReference>
708-
</value>
709-
</inputAssignments>
710-
<inputAssignments>
711-
<field>INT_UserRegion__c</field>
712-
<value>
713-
<elementReference>$Record.Owner:User.Region__c</elementReference>
714-
</value>
715-
</inputAssignments>
716-
<inputReference>$Record</inputReference>
717-
</recordUpdates>
718638
<recordUpdates>
719639
<name>Update_latest_event_date_on_account</name>
720640
<label>Update latest event date on account</label>
721-
<locationX>1898</locationX>
722-
<locationY>755</locationY>
641+
<locationX>1370</locationX>
642+
<locationY>947</locationY>
723643
<filterLogic>and</filterLogic>
724644
<filters>
725645
<field>Id</field>
@@ -737,10 +657,10 @@
737657
<object>Account</object>
738658
</recordUpdates>
739659
<start>
740-
<locationX>782</locationX>
660+
<locationX>980</locationX>
741661
<locationY>0</locationY>
742662
<connector>
743-
<targetReference>Subject_equals_pubsub</targetReference>
663+
<targetReference>Trigger_type</targetReference>
744664
</connector>
745665
<filterLogic>or</filterLogic>
746666
<filters>

0 commit comments

Comments
 (0)