Skip to content

Commit 5e9a120

Browse files
committed
Updates
1 parent f528d6e commit 5e9a120

File tree

4 files changed

+124
-4
lines changed

4 files changed

+124
-4
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>59.0</apiVersion>
3+
<apiVersion>60.0</apiVersion>
44
<decisions>
55
<description>If the Animal Action record is created as completed, then the task is marked as
66
completed</description>
@@ -34,6 +34,7 @@
3434
</decisions>
3535
<environments>Default</environments>
3636
<interviewLabel>Animal Action - Create Task for new Actions {!$Flow.CurrentDateTime}</interviewLabel>
37+
<isTemplate>true</isTemplate>
3738
<label>Animal Action - Create Task for new Actions</label>
3839
<processMetadataValues>
3940
<name>BuilderType</name>
@@ -110,7 +111,7 @@
110111
<targetReference>Create_Action_Task</targetReference>
111112
</connector>
112113
<filterFormula>
113-
{!$Setup.Animal_Shelter_Settings__c.Enable_Animal_Action_Tasks__c}=TRUE</filterFormula>
114+
{!$Setup.animalshelters__Animal_Shelter_Settings__c.animalshelters__Enable_Animal_Action_Tasks__c}=TRUE</filterFormula>
114115
<object>Animal_Action__c</object>
115116
<recordTriggerType>Create</recordTriggerType>
116117
<triggerType>RecordAfterSave</triggerType>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<apiVersion>60.0</apiVersion>
4+
<description>Creates a platform event when an action is deleted.</description>
5+
<environments>Default</environments>
6+
<interviewLabel>Animal Action - Deleted Action Platform Event {!$Flow.CurrentDateTime}</interviewLabel>
7+
<isTemplate>true</isTemplate>
8+
<label>Animal Action - Deleted Action Platform Event</label>
9+
<processMetadataValues>
10+
<name>BuilderType</name>
11+
<value>
12+
<stringValue>LightningFlowBuilder</stringValue>
13+
</value>
14+
</processMetadataValues>
15+
<processMetadataValues>
16+
<name>CanvasMode</name>
17+
<value>
18+
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
19+
</value>
20+
</processMetadataValues>
21+
<processMetadataValues>
22+
<name>OriginBuilderType</name>
23+
<value>
24+
<stringValue>LightningFlowBuilder</stringValue>
25+
</value>
26+
</processMetadataValues>
27+
<processType>AutoLaunchedFlow</processType>
28+
<recordCreates>
29+
<name>Create_Platform_Event</name>
30+
<label>Create Platform Event</label>
31+
<locationX>176</locationX>
32+
<locationY>287</locationY>
33+
<inputAssignments>
34+
<field>Record_ID__c</field>
35+
<value>
36+
<elementReference>$Record.Animal__r.Id</elementReference>
37+
</value>
38+
</inputAssignments>
39+
<inputAssignments>
40+
<field>Update_Type__c</field>
41+
<value>
42+
<stringValue>AnimalAlertDelete</stringValue>
43+
</value>
44+
</inputAssignments>
45+
<object>Animal_Update_Event__e</object>
46+
<storeOutputAutomatically>true</storeOutputAutomatically>
47+
</recordCreates>
48+
<start>
49+
<locationX>50</locationX>
50+
<locationY>0</locationY>
51+
<connector>
52+
<targetReference>Create_Platform_Event</targetReference>
53+
</connector>
54+
<object>Animal_Action__c</object>
55+
<recordTriggerType>Delete</recordTriggerType>
56+
<triggerType>RecordBeforeDelete</triggerType>
57+
</start>
58+
<status>Active</status>
59+
</Flow>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
3+
<apiVersion>60.0</apiVersion>
4+
<description>Creates a platform event when a condition is deleted.</description>
5+
<environments>Default</environments>
6+
<interviewLabel>Animal Condition - Delete Platform Event {!$Flow.CurrentDateTime}</interviewLabel>
7+
<isTemplate>true</isTemplate>
8+
<label>Animal Condition - Delete Platform Event</label>
9+
<processMetadataValues>
10+
<name>BuilderType</name>
11+
<value>
12+
<stringValue>LightningFlowBuilder</stringValue>
13+
</value>
14+
</processMetadataValues>
15+
<processMetadataValues>
16+
<name>CanvasMode</name>
17+
<value>
18+
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
19+
</value>
20+
</processMetadataValues>
21+
<processMetadataValues>
22+
<name>OriginBuilderType</name>
23+
<value>
24+
<stringValue>LightningFlowBuilder</stringValue>
25+
</value>
26+
</processMetadataValues>
27+
<processType>AutoLaunchedFlow</processType>
28+
<recordCreates>
29+
<name>Create_Platform_event</name>
30+
<label>Create Platform event</label>
31+
<locationX>176</locationX>
32+
<locationY>287</locationY>
33+
<inputAssignments>
34+
<field>Record_ID__c</field>
35+
<value>
36+
<elementReference>$Record.Animal__r.Id</elementReference>
37+
</value>
38+
</inputAssignments>
39+
<inputAssignments>
40+
<field>Update_Type__c</field>
41+
<value>
42+
<stringValue>ConditionDelete</stringValue>
43+
</value>
44+
</inputAssignments>
45+
<object>Animal_Update_Event__e</object>
46+
<storeOutputAutomatically>true</storeOutputAutomatically>
47+
</recordCreates>
48+
<start>
49+
<locationX>50</locationX>
50+
<locationY>0</locationY>
51+
<connector>
52+
<targetReference>Create_Platform_event</targetReference>
53+
</connector>
54+
<object>Condition__c</object>
55+
<recordTriggerType>Delete</recordTriggerType>
56+
<triggerType>RecordBeforeDelete</triggerType>
57+
</start>
58+
<status>Active</status>
59+
</Flow>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
3-
<apiVersion>59.0</apiVersion>
3+
<apiVersion>60.0</apiVersion>
44
<description>[Animal Shelter] - When a Task is marked as complete the associated Animal Action Record is marked as completed</description>
55
<environments>Default</environments>
66
<interviewLabel>Task - Close associated Animal Action {!$Flow.CurrentDateTime}</interviewLabel>
7+
<isTemplate>true</isTemplate>
78
<label>Task - Close associated Animal Action</label>
89
<processMetadataValues>
910
<name>BuilderType</name>
@@ -105,5 +106,5 @@
105106
<recordTriggerType>CreateAndUpdate</recordTriggerType>
106107
<triggerType>RecordAfterSave</triggerType>
107108
</start>
108-
<status>Active</status>
109+
<status>Draft</status>
109110
</Flow>

0 commit comments

Comments
 (0)