Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekStewie committed Apr 8, 2024
1 parent f528d6e commit 5e9a120
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<apiVersion>60.0</apiVersion>
<decisions>
<description>If the Animal Action record is created as completed, then the task is marked as
completed</description>
Expand Down Expand Up @@ -34,6 +34,7 @@
</decisions>
<environments>Default</environments>
<interviewLabel>Animal Action - Create Task for new Actions {!$Flow.CurrentDateTime}</interviewLabel>
<isTemplate>true</isTemplate>
<label>Animal Action - Create Task for new Actions</label>
<processMetadataValues>
<name>BuilderType</name>
Expand Down Expand Up @@ -110,7 +111,7 @@
<targetReference>Create_Action_Task</targetReference>
</connector>
<filterFormula>
{!$Setup.Animal_Shelter_Settings__c.Enable_Animal_Action_Tasks__c}=TRUE</filterFormula>
{!$Setup.animalshelters__Animal_Shelter_Settings__c.animalshelters__Enable_Animal_Action_Tasks__c}=TRUE</filterFormula>
<object>Animal_Action__c</object>
<recordTriggerType>Create</recordTriggerType>
<triggerType>RecordAfterSave</triggerType>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>60.0</apiVersion>
<description>Creates a platform event when an action is deleted.</description>
<environments>Default</environments>
<interviewLabel>Animal Action - Deleted Action Platform Event {!$Flow.CurrentDateTime}</interviewLabel>
<isTemplate>true</isTemplate>
<label>Animal Action - Deleted Action Platform Event</label>
<processMetadataValues>
<name>BuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>CanvasMode</name>
<value>
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OriginBuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processType>AutoLaunchedFlow</processType>
<recordCreates>
<name>Create_Platform_Event</name>
<label>Create Platform Event</label>
<locationX>176</locationX>
<locationY>287</locationY>
<inputAssignments>
<field>Record_ID__c</field>
<value>
<elementReference>$Record.Animal__r.Id</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<field>Update_Type__c</field>
<value>
<stringValue>AnimalAlertDelete</stringValue>
</value>
</inputAssignments>
<object>Animal_Update_Event__e</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordCreates>
<start>
<locationX>50</locationX>
<locationY>0</locationY>
<connector>
<targetReference>Create_Platform_Event</targetReference>
</connector>
<object>Animal_Action__c</object>
<recordTriggerType>Delete</recordTriggerType>
<triggerType>RecordBeforeDelete</triggerType>
</start>
<status>Active</status>
</Flow>
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>60.0</apiVersion>
<description>Creates a platform event when a condition is deleted.</description>
<environments>Default</environments>
<interviewLabel>Animal Condition - Delete Platform Event {!$Flow.CurrentDateTime}</interviewLabel>
<isTemplate>true</isTemplate>
<label>Animal Condition - Delete Platform Event</label>
<processMetadataValues>
<name>BuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>CanvasMode</name>
<value>
<stringValue>AUTO_LAYOUT_CANVAS</stringValue>
</value>
</processMetadataValues>
<processMetadataValues>
<name>OriginBuilderType</name>
<value>
<stringValue>LightningFlowBuilder</stringValue>
</value>
</processMetadataValues>
<processType>AutoLaunchedFlow</processType>
<recordCreates>
<name>Create_Platform_event</name>
<label>Create Platform event</label>
<locationX>176</locationX>
<locationY>287</locationY>
<inputAssignments>
<field>Record_ID__c</field>
<value>
<elementReference>$Record.Animal__r.Id</elementReference>
</value>
</inputAssignments>
<inputAssignments>
<field>Update_Type__c</field>
<value>
<stringValue>ConditionDelete</stringValue>
</value>
</inputAssignments>
<object>Animal_Update_Event__e</object>
<storeOutputAutomatically>true</storeOutputAutomatically>
</recordCreates>
<start>
<locationX>50</locationX>
<locationY>0</locationY>
<connector>
<targetReference>Create_Platform_event</targetReference>
</connector>
<object>Condition__c</object>
<recordTriggerType>Delete</recordTriggerType>
<triggerType>RecordBeforeDelete</triggerType>
</start>
<status>Active</status>
</Flow>
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<Flow xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>59.0</apiVersion>
<apiVersion>60.0</apiVersion>
<description>[Animal Shelter] - When a Task is marked as complete the associated Animal Action Record is marked as completed</description>
<environments>Default</environments>
<interviewLabel>Task - Close associated Animal Action {!$Flow.CurrentDateTime}</interviewLabel>
<isTemplate>true</isTemplate>
<label>Task - Close associated Animal Action</label>
<processMetadataValues>
<name>BuilderType</name>
Expand Down Expand Up @@ -105,5 +106,5 @@
<recordTriggerType>CreateAndUpdate</recordTriggerType>
<triggerType>RecordAfterSave</triggerType>
</start>
<status>Active</status>
<status>Draft</status>
</Flow>

0 comments on commit 5e9a120

Please sign in to comment.