From fcf043a174ffd6df2f4daddc1d22c3b07ad3dd5b Mon Sep 17 00:00:00 2001 From: Chris Rolfe Date: Mon, 11 Nov 2024 16:41:15 +0000 Subject: [PATCH 1/5] Redundant Flows Updated Removed logic within redundant flows so if they are accidentally activated they will do nothing --- ..._Block_Capacity_Calculations.flow-meta.xml | 258 +--------- .../Animal_Movement_SubFlow.flow-meta.xml | 2 +- ..._Update_Location_Unit_Status.flow-meta.xml | 444 +----------------- ...n_Change_Unit_Status_SubFlow.flow-meta.xml | 2 +- ...cation_Create_Update_Trigger.flow-meta.xml | 40 +- 5 files changed, 54 insertions(+), 692 deletions(-) diff --git a/force-app/main/default/flows/Animal_Block_Capacity_Calculations.flow-meta.xml b/force-app/main/default/flows/Animal_Block_Capacity_Calculations.flow-meta.xml index f6ce182..70cc384 100644 --- a/force-app/main/default/flows/Animal_Block_Capacity_Calculations.flow-meta.xml +++ b/force-app/main/default/flows/Animal_Block_Capacity_Calculations.flow-meta.xml @@ -2,105 +2,23 @@ 60.0 - Available_Child_Record_Count - - 490 - 974 - - varAvailableCount - AssignCount - - varLocationChildRecords - - - - Loop_Through_Child_Records_that_have_Available_Status - - - - Total_Child_Record_Count - - 314 - 350 + Dummy Assignment to allow Flow to be saved + Dummy_Assignment + + 176 + 134 - varTotalCount - AssignCount + tmpVariable + Assign - varLocationChildRecords + Null - - Loop_Through_Child_Records - - - Constant of zero - conZero - Number - - 0.0 - - - - No_Records_Found - - 226 - 758 - - Loop_Through_Child_Records_that_have_Available_Status - - At least 1 record found - - No_Records - and - - varLocationChildRecords - IsNull - - true - - - - Set_Available_Capacity_to_Zero - - - - - Calculates and populates the Block Capacity fields + DEPRECATED [Animal Shelter] Calculates and populates the Block Capacity fields Default Animal - Block Capacity Calculations - true - - Loop_Through_Child_Records - - 226 - 242 - varLocation - varLocationChildRecords - Asc - - Total_Child_Record_Count - - - Update_Total_Capacity_Value - - - - Loop_Through_Child_Records_that_have_Available_Status - - 402 - 866 - varLocation - varLocationChildRecords - Asc - - Available_Child_Record_Count - - - Update_Available_Capacity_Value - - BuilderType @@ -120,169 +38,19 @@ AutoLaunchedFlow - - Get_Location_Child_Records_with_Available_Status - - 226 - 650 - true - - No_Records_Found - - and - - Parent_Block__c - EqualTo - - varLocationId - - - - Unit_Status__c - EqualTo - - Available - - - Locations__c - varLocationChildRecords - Id - - - Get all the Child records for the current Location - Get_Locations_Child_Records - - 226 - 134 - false - - Loop_Through_Child_Records - - and - - Parent_Block__c - EqualTo - - varLocationId - - - Locations__c - varLocationChildRecords - Id - - - Set_Available_Capacity_to_Zero - - 50 - 866 - and - - Id - EqualTo - - varLocationId - - - - Available_Capacity__c - - conZero - - - Locations__c - - - Update the Available Capacity value on the current Location - Update_Available_Capacity_Value - - 402 - 1166 - and - - Id - EqualTo - - varLocationId - - - - Available_Capacity__c - - varAvailableCount - - - Locations__c - - - Update the Total Capacity value on the current Location - Update_Total_Capacity_Value - - 226 - 542 - - Get_Location_Child_Records_with_Available_Status - - and - - Id - EqualTo - - varLocationId - - - - Total_Capacity__c - - varTotalCount - - - Locations__c - - 100 + 50 0 - Get_Locations_Child_Records + Dummy_Assignment - Obsolete + Draft - varAvailableCount - Number - false - false - false - 0 - - - varLocation - SObject - false - false - false - Locations__c - - - varLocationChildRecords - SObject - true - false - false - Locations__c - - - varLocationId + tmpVariable String false - true - false - - - varTotalCount - Number - false false false - 0 diff --git a/force-app/main/default/flows/Animal_Movement_SubFlow.flow-meta.xml b/force-app/main/default/flows/Animal_Movement_SubFlow.flow-meta.xml index d88d6a5..4c353c3 100755 --- a/force-app/main/default/flows/Animal_Movement_SubFlow.flow-meta.xml +++ b/force-app/main/default/flows/Animal_Movement_SubFlow.flow-meta.xml @@ -323,7 +323,7 @@ Movement_Record_Assignments - Draft + Active Create_Movement_Task diff --git a/force-app/main/default/flows/Animal_Update_Location_Unit_Status.flow-meta.xml b/force-app/main/default/flows/Animal_Update_Location_Unit_Status.flow-meta.xml index 6bdf1e2..6e51c51 100755 --- a/force-app/main/default/flows/Animal_Update_Location_Unit_Status.flow-meta.xml +++ b/force-app/main/default/flows/Animal_Update_Location_Unit_Status.flow-meta.xml @@ -2,299 +2,24 @@ 55.0 - Assign_Parent_Block_Fields - - 1821 - 1703 + Dummy Assignment to all flow to be saved + Dummy_Assignment + + 176 + 323 - Get_Parent_Block.Available_Capacity__c + tmpVariable Assign - unitAvailableCount + Null - - Get_Parent_Block.Block_Status__c - Assign - - frmParentBlockAvailability - - - - Get_Parent_Block.Total_Capacity__c - Assign - - unitTotalCount - - - - Update_Parent_Block - - - - Assign_Unavailable_count - - 319 - 794 - - unitsNotInUnavailableStatus - AssignCount - - Get_Units_not_in_Available_Status - - - - All_Status_s_Unavailable - - - - Set_Parent_Block_Unavailable_Boolean - - 601 - 1067 - - parentBlockUnavailable - Assign - - true - - - - Parent_Is_Block - - - Set_Total_Count - - 1290 - 1603 - - unitTotalCount - Add - - Count_Available_Spaces.Capacity__c - - - - Count_Available_Spaces - - - - Set_Unit_Count - - 1131 - 1598 - - unitAvailableCount - Add - - Count_Available_Spaces.Availability__c - - - - Set_Total_Count - - - - All_Status_s_Unavailable - - 600 - 795 - - Parent_Is_Block - - Default Outcome - - All_Unavailable - and - - unitsNotInUnavailableStatus - EqualTo - - 0.0 - - - - Set_Parent_Block_Unavailable_Boolean - - - - - - Has_Unit_been_marked_as_Unavailable - - 668 - 371 - - Is_there_Availability - - Default Outcome - - Yes_Unit_Unavailable - or - - $Record.animalshelters__Unit_Status__c - EqualTo - - Unavailable - - - - Get_Units_not_in_Available_Status - - - - - - Is_there_Availability - - 990 - 568 - Default Outcome - - Unit_Fully_Allocated - and - - $Record.animalshelters__Availability__c - EqualTo - - 0.0 - - - - Set_Status_Allocated - - - - - Unit_Available - and - - $Record.animalshelters__Unit_Full__c - EqualTo - - false - - - - Set_Status_to_Available - - - - - - Parent_Is_Block - - 1003 - 1063 - Default Outcome - - Is_Block - 1 AND 2 AND (3 OR 4 OR 5) - - $Record.animalshelters__Parent_Block__c - IsNull - - false - - - - $Record.animalshelters__Parent_Block__r.RecordType.DeveloperName - EqualTo - - Block - - - - $Record.animalshelters__Allocation__c - NotEqualTo - - $Record__Prior.Allocation__c - - - - $Record.animalshelters__Capacity__c - NotEqualTo - - $Record__Prior.Capacity__c - - - - $Record.animalshelters__Unit_Status__c - NotEqualTo - - $Record__Prior.Unit_Status__c - - - - Get_Unit_Count_of_Available_Blocks - - - - - - Unit_Status_Available - - 1198 - 1428 - - Set_Total_Count - - Default Outcome - - Is_Available - and - - Count_Available_Spaces.Unit_Status__c - EqualTo - - Available - - - - Set_Unit_Count - - - - - [Animal Shelter] Autolaunched flow to update the Location Status based on + DEPRECATED [Animal Shelter] Autolaunched flow to update the Location Status based on availability Default - - frmAllocation - Number - IF({!$Record.animalshelters__Capacity__c} = 1, 0, - {!$Record.animalshelters__Allocation__c}) - 0 - - - frmNoMoreCapacity - Boolean - {!$Record.animalshelters__Availability__c} = 0 - - - frmParentBlockAvailability - String - IF({!parentBlockUnavailable}, 'Unavailable', IF({!unitAvailableCount} - > 0, 'Available','Allocated')) - Animal - Update Location Unit Status - true - - Count_Available_Spaces - - 1321 - 1278 - Get_Unit_Count_of_Available_Blocks - Asc - - Unit_Status_Available - - - Get_Parent_Block - - BuilderType @@ -304,7 +29,7 @@ CanvasMode - FREE_FORM_CANVAS + AUTO_LAYOUT_CANVAS @@ -314,120 +39,11 @@ AutoLaunchedFlow - - Get_Parent_Block - - 1753 - 1294 - false - - Assign_Parent_Block_Fields - - and - - Id - EqualTo - - $Record.Parent_Block__c - - - true - Locations__c - true - - - Get_Unit_Count_of_Available_Blocks - - 1019 - 1278 - false - - Count_Available_Spaces - - and - - Parent_Block__c - EqualTo - - $Record.Parent_Block__c - - - false - Locations__c - true - - - Get_Units_not_in_Available_Status - - 319 - 590 - false - - Assign_Unavailable_count - - and - - Parent_Block__c - EqualTo - - $Record.Parent_Block__c - - - - Unit_Status__c - NotEqualTo - - Unavailable - - - false - Locations__c - true - - - Set_Status_Allocated - - 1001 - 797 - - Parent_Is_Block - - - Unit_Status__c - - Allocated - - - $Record - - - Set_Status_to_Available - - 1153 - 798 - - Parent_Is_Block - - - Unit_Status__c - - Available - - - $Record - - - Update_Parent_Block - - 949 - 1724 - Get_Parent_Block - - 540 - 48 + 50 + 0 - Has_Unit_been_marked_as_Unavailable + Dummy_Assignment {!$Record.RecordType.Name}='Unit' || {!$Record.RecordType.Name}='Foster' || @@ -436,42 +52,12 @@ CreateAndUpdate RecordAfterSave - Obsolete - - parentBlockUnavailable - Boolean - false - false - false - - false - - - - unitAvailableCount - Number - false - false - false - 0 - - 0.0 - - + Draft - unitsNotInUnavailableStatus - Number - false - false - false - 0 - - - unitTotalCount - Number + tmpVariable + String false false false - 0 diff --git a/force-app/main/default/flows/Location_Change_Unit_Status_SubFlow.flow-meta.xml b/force-app/main/default/flows/Location_Change_Unit_Status_SubFlow.flow-meta.xml index cc08650..d793634 100755 --- a/force-app/main/default/flows/Location_Change_Unit_Status_SubFlow.flow-meta.xml +++ b/force-app/main/default/flows/Location_Change_Unit_Status_SubFlow.flow-meta.xml @@ -345,7 +345,7 @@ Is_the_Ignore_Allocated_Units_Flag_Set - Draft + Active allocationCount Number diff --git a/force-app/main/default/flows/Location_Location_Create_Update_Trigger.flow-meta.xml b/force-app/main/default/flows/Location_Location_Create_Update_Trigger.flow-meta.xml index e67c9a7..36ebf30 100644 --- a/force-app/main/default/flows/Location_Location_Create_Update_Trigger.flow-meta.xml +++ b/force-app/main/default/flows/Location_Location_Create_Update_Trigger.flow-meta.xml @@ -1,7 +1,21 @@ 59.0 - [Animal Shelter] Calls Block Calculations Subflow + + Null Assignment to allow the Flow to be saved + Null_Assignment + + 176 + 323 + + tempVariable + Assign + + Null + + + + DEPRECATED [Animal Shelter] Calls Block Calculations Subflow Default Location - Location Create/Update Trigger {!$Flow.CurrentDateTime} true @@ -29,24 +43,18 @@ 50 0 - Call_Block_Calculations_SubFlow + Null_Assignment Locations__c CreateAndUpdate RecordAfterSave - Obsolete - - Call_Block_Calculations_SubFlow - - 176 - 323 - Animal_Block_Capacity_Calculations - - varLocationId - - $Record.Id - - - + Draft + + tempVariable + String + false + false + false + From 0bd770027bde8e76bc04b9c246989f3d691db610 Mon Sep 17 00:00:00 2001 From: Chris Rolfe Date: Tue, 12 Nov 2024 13:20:11 +0000 Subject: [PATCH 2/5] Updated Locations Record Page --- .../Location_Record_Page.flexipage-meta.xml | 222 ++++++++++++++++-- ...tion_Record_Page_Mobile.flexipage-meta.xml | 84 ------- .../Locations__c/Locations__c.object-meta.xml | 4 +- 3 files changed, 205 insertions(+), 105 deletions(-) delete mode 100644 force-app/main/default/flexipages/Location_Record_Page_Mobile.flexipage-meta.xml diff --git a/force-app/main/default/flexipages/Location_Record_Page.flexipage-meta.xml b/force-app/main/default/flexipages/Location_Record_Page.flexipage-meta.xml index 1bb962c..ef2c39d 100644 --- a/force-app/main/default/flexipages/Location_Record_Page.flexipage-meta.xml +++ b/force-app/main/default/flexipages/Location_Record_Page.flexipage-meta.xml @@ -3,13 +3,85 @@ + + actionNames + + + animalshelters__Locations__c.Set_Assessment_Date + + + FeedItem.TextPost + + + FeedItem.ContentPost + + + Global.NewEvent + + + Global.NewTask + + + Edit + + + Global.NewContact + + + Global.LogACall + + + Global.NewOpportunity + + + Global.NewCase + + + Global.NewLead + + + FeedItem.ContentNote + + + Delete + + + Clone + + + ChangeOwnerOne + + + ChangeRecordType + + + PrintableView + + + Share + + + RecordShareHierarchy + + + Submit + + + AssignRecordLabel + + + collapsed false enableActionsConfiguration - false + true + + + enableActionsInNative + true hideChatterActions @@ -46,6 +118,13 @@ Record.Parent_Block__c Recordanimalshelters_Parent_Block_cField + + + {!Record.RecordType.Name} + NE + Foster, Organisation, Site + + @@ -58,27 +137,19 @@ Recordanimalshelters_Unit_Status_cField - - - Record.External_Id__c - Recordanimalshelters__External_Id__cField - - Facet-03fd539c-8e0f-4eb0-b151-8bee0ddb7e23 Facet - - flexipage:blankSpace - flexipage_blankSpace - - - - - flexipage:blankSpace - flexipage_blankSpace2 - + + + uiBehavior + none + + Record.Foster_Contact__c + Recordanimalshelters_Foster_Contact_cField + @@ -86,8 +157,8 @@ uiBehavior none - Record.Unavailability_Reason__c - Recordanimalshelters_Unavailability_Reason_cField + Record.Organisation__c + Recordanimalshelters_Organisation_cField Facet-b253a442-2bd2-40cf-bdfd-9e1853719169 @@ -128,6 +199,16 @@ Recordanimalshelters_Capacity_cField + + + + uiBehavior + none + + Record.Availability__c + Recordanimalshelters_Availability_cField + + Facet-a7620055-5786-4cc0-9883-518671d88af5 Facet @@ -142,6 +223,16 @@ Recordanimalshelters_Allocation_cField + + + + uiBehavior + none + + Record.Unavailability_Reason__c + Recordanimalshelters_Unavailability_Reason_cField + + Facet-ed787de6-d929-46e9-84f2-2b0020282920 Facet @@ -242,6 +333,16 @@ RecordNameField + + + + uiBehavior + none + + Record.External_Id__c + Recordanimalshelters__External_Id__cField + + Facet-375158a2-f668-44cd-afcd-01f267ef0a3f Facet @@ -433,6 +534,32 @@ lst_dynamicRelatedList + + + + parentFieldApiName + Locations__c.Id + + + relatedListApiName + Movements__r + + + relatedListComponentOverride + NONE + + + rowsToDisplay + 10 + + + showActionBar + true + + force:relatedListSingleContainer + force_relatedListSingleContainer + + @@ -576,6 +703,56 @@ Facet + + + + createQuickActionName + animalshelters__NewContact + + + lookupFieldName + Locations__c.Foster_Contact__c + + + updateQuickActionName + Contact._LightningRelatedContact + + console:relatedRecord + console_relatedRecord + + + {!Record.RecordType.Name} + EQUAL + Foster + + + + + + + + createQuickActionName + animalshelters__NewAccount + + + lookupFieldName + Locations__c.Organisation__c + + + updateQuickActionName + Account.animalshelters__Update_Organisation + + console:relatedRecord + console_relatedRecord2 + + + {!Record.RecordType.Name} + EQUAL + Organisation + + + + @@ -611,6 +788,13 @@ locationAnimals animalshelters_locationAnimals + + + {!Record.RecordType.Name} + EQUAL + Unit + + diff --git a/force-app/main/default/flexipages/Location_Record_Page_Mobile.flexipage-meta.xml b/force-app/main/default/flexipages/Location_Record_Page_Mobile.flexipage-meta.xml deleted file mode 100644 index 283d4b6..0000000 --- a/force-app/main/default/flexipages/Location_Record_Page_Mobile.flexipage-meta.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - collapsed - false - - - hideChatterActions - false - - - numVisibleActions - 3 - - force:highlightsPanel - force_highlightsPanel - - - - - - flowArguments - [{"label":"LocationId","dataType":"String","supportsRecordId":true,"value":"{!Record.Id}"}] - - - flowLayout - oneColumn - - - flowName - Animal_Block_Status_Change - - flowruntime:interview - flowruntime_interview - - - {!Record.RecordType.Name} - EQUAL - Block - - - - - - - force:detailPanel - force_detailPanel - - - - - - relatedListComponentOverride - NONE - - - rowsToDisplay - 10 - - - showActionBar - true - - force:relatedListContainer - force_relatedListContainer - - - header - Region - - - main - Region - - Location Record Page Mobile - Locations__c - - RecordPage - diff --git a/force-app/main/default/objects/Locations__c/Locations__c.object-meta.xml b/force-app/main/default/objects/Locations__c/Locations__c.object-meta.xml index 736238b..6205044 100644 --- a/force-app/main/default/objects/Locations__c/Locations__c.object-meta.xml +++ b/force-app/main/default/objects/Locations__c/Locations__c.object-meta.xml @@ -136,8 +136,8 @@ View - Action override created by Lightning App Builder during activation. - Location_Record_Page_Mobile + Action override updated by Lightning App Builder during activation. + Location_Record_Page Small false Flexipage From f7e811815b87afba00f7021a603ce18f1578de1b Mon Sep 17 00:00:00 2001 From: Chris Rolfe Date: Tue, 12 Nov 2024 14:10:12 +0000 Subject: [PATCH 3/5] Flow & Record Page Updates Updated Location Change Flow Updated Location Change Unit Subflow Flow Updated Movement Process Flow Updated Location Record Page --- .../Animal_Record_Page.flexipage-meta.xml | 16 +- .../Location_Record_Page.flexipage-meta.xml | 36 +- .../Animal_Movement_Process.flow-meta.xml | 45 +- .../Location_Change_Status_Flow.flow-meta.xml | 1025 +++++++++++++++-- ...n_Change_Unit_Status_SubFlow.flow-meta.xml | 105 +- 5 files changed, 1018 insertions(+), 209 deletions(-) mode change 100755 => 100644 force-app/main/default/flows/Location_Change_Status_Flow.flow-meta.xml mode change 100755 => 100644 force-app/main/default/flows/Location_Change_Unit_Status_SubFlow.flow-meta.xml diff --git a/force-app/main/default/flexipages/Animal_Record_Page.flexipage-meta.xml b/force-app/main/default/flexipages/Animal_Record_Page.flexipage-meta.xml index a76706c..c7dc43f 100644 --- a/force-app/main/default/flexipages/Animal_Record_Page.flexipage-meta.xml +++ b/force-app/main/default/flexipages/Animal_Record_Page.flexipage-meta.xml @@ -172,12 +172,6 @@ RecordCalculated_Age__cField - - - Record.External_Id__c - Recordanimalshelters__External_Id__cField - - Facet-4c49db03-428d-4fcb-a44e-6e9be7ede66a Facet @@ -933,6 +927,16 @@ RecordNameField + + + + uiBehavior + none + + Record.External_Id__c + Recordanimalshelters__External_Id__cField + + Facet-aac6ddaa-54f0-4332-9a4f-98d918ba8eaf Facet diff --git a/force-app/main/default/flexipages/Location_Record_Page.flexipage-meta.xml b/force-app/main/default/flexipages/Location_Record_Page.flexipage-meta.xml index ef2c39d..834742a 100644 --- a/force-app/main/default/flexipages/Location_Record_Page.flexipage-meta.xml +++ b/force-app/main/default/flexipages/Location_Record_Page.flexipage-meta.xml @@ -119,10 +119,21 @@ Record.Parent_Block__c Recordanimalshelters_Parent_Block_cField + 1 OR 2 OR 3 {!Record.RecordType.Name} - NE - Foster, Organisation, Site + EQUAL + Block + + + {!Record.RecordType.Name} + EQUAL + SubBlock + + + {!Record.RecordType.Name} + EQUAL + Unit @@ -135,6 +146,13 @@ Record.Unit_Status__c Recordanimalshelters_Unit_Status_cField + + + {!Record.RecordType.Name} + EQUAL + Unit + + Facet-03fd539c-8e0f-4eb0-b151-8bee0ddb7e23 @@ -149,6 +167,13 @@ Record.Foster_Contact__c Recordanimalshelters_Foster_Contact_cField + + + {!Record.RecordType.Name} + EQUAL + Foster + + @@ -159,6 +184,13 @@ Record.Organisation__c Recordanimalshelters_Organisation_cField + + + {!Record.RecordType.Name} + EQUAL + Organisation + + Facet-b253a442-2bd2-40cf-bdfd-9e1853719169 diff --git a/force-app/main/default/flows/Animal_Movement_Process.flow-meta.xml b/force-app/main/default/flows/Animal_Movement_Process.flow-meta.xml index b04a59f..b6620a6 100755 --- a/force-app/main/default/flows/Animal_Movement_Process.flow-meta.xml +++ b/force-app/main/default/flows/Animal_Movement_Process.flow-meta.xml @@ -1,6 +1,6 @@ - 59.0 + 60.0 Boarded_Movement_Record @@ -381,8 +381,7 @@ - [Animal Shelter] Screen flow to move animals between locations. Creates Movement - records and updates various statuses + [Animal Shelter] Screen flow to move animals between locations. Creates Movement records and updates various statuses BoarderLocations String @@ -670,12 +669,7 @@ Region Animal_Has_Existing_Location_Screen_Text - <p><strong>{!recordId.Animal_Name__c}</strong> - already has a current - location</p><p><br></p><p><strong>{!Get_Current_Movement_Record.Location_Name__c}</strong></p><p><br></p><p><span - style="color: rgb(68, 68, 68); background-color: rgb(255, 255, - 255);">To leave the animal in its current location, exit here, or - continue to assign a new location</span></p> + <p><strong>{!recordId.Animal_Name__c} </strong>already has a current location of <strong>{!Get_Current_Movement_Record.Location_Name__c}</strong></p><p><br></p><p><br></p> DisplayText @@ -751,14 +745,7 @@ false Error_Movement_Records_Screen_Text - <p><strong style="font-size: - 14px;"><em>ERROR!</em></strong></p><p> - {!recordId.Animal_Name__c} appears to have been assigned multiple locations, and has - multiple movement records that are marked as - current.</p><p><br></p><p>Please check the movement - records for <span style="color: rgb(68, 68, 68); background-color: rgb(255, - 255, 255);">{!recordId.Animal_Name__c}</span>, and resolve this - issue.</p> + <p><strong><em>ERROR!</em></strong></p><p><br></p><p> {!recordId.Animal_Name__c} appears to have been assigned multiple locations, and has multiple movement records that are marked as current.</p><p><br></p><p>Please check the movement records for <span style="color: rgb(68, 68, 68);">{!recordId.Animal_Name__c}</span>, and resolve this issue.</p> DisplayText true @@ -774,12 +761,7 @@ false Error_Text - <p><strong><em>ERROR!</em></strong></p><p><br></p><p>An - error has occurred when attempting to get, create or update - records.</p><p><br></p><p>Please make a note of the - fault message below and contact your Salesforce - Administrator.</p><p><br></p><p><strong>Fault - Message:</strong></p><p>{!$Flow.FaultMessage}</p> + <p><strong><em>ERROR!</em></strong></p><p><br></p><p>An error has occurred when attempting to get, create or update records.</p><p><br></p><p>Please make a note of the fault message below and contact your Salesforce Administrator.</p><p><br></p><p><strong>Fault Message: </strong>{!$Flow.FaultMessage}</p> DisplayText true @@ -832,8 +814,7 @@ Region Screen_TypeOfMovement_Text - <p><b>Type of Movement</b></p><p>Select - a type from the picklist below.</p> + <p><strong>Type of Movement</strong></p><p>Select a type from the picklist below.</p> DisplayText @@ -862,10 +843,7 @@ Region Screen_MovementDate_Text - <p><strong>Movement - Date</strong></p><p>If the movement of the animal will - take place on a date in the future, please select the date, otherwise the - default will be today</p> + <p><strong>Movement Date</strong></p><p>If the movement of the animal will take place on a date in the future, please select the date, otherwise the default will be today</p> DisplayText @@ -892,8 +870,7 @@ Screen_Tasks_Note_Text - <p><strong>NOTE: </strong>Tasks for the movement record - will be created automatically unless disabled in Animal Shelter Settings</p> + <p><strong>NOTE: </strong>Tasks for the movement record will be created automatically unless disabled in Animal Shelter Settings</p> DisplayText true @@ -909,11 +886,7 @@ false Movement_Complete_Screen_Text - <p><strong>Records - Updated!</strong></p><p><br></p><p>The location - for {!recordId.Animal_Name__c} has now been - updated.</p><p><br></p><p>Please click - Finish.</p> + <p><strong>Records</strong></p><p><strong> Updated!</strong></p><p><br></p><p>The location for {!recordId.Animal_Name__c} has now been updated.</p><p><br></p><p>Please click Finish.</p> DisplayText true diff --git a/force-app/main/default/flows/Location_Change_Status_Flow.flow-meta.xml b/force-app/main/default/flows/Location_Change_Status_Flow.flow-meta.xml old mode 100755 new mode 100644 index a85c280..a85d354 --- a/force-app/main/default/flows/Location_Change_Status_Flow.flow-meta.xml +++ b/force-app/main/default/flows/Location_Change_Status_Flow.flow-meta.xml @@ -2,10 +2,75 @@ 60.0 + Add_SubBlock_to_Variable + + 2184 + 782 + + subBlocks + Add + + Get_SubBlock_for_Block_in_Site.childRecords + + + + Get_SubBlock_for_Each_Block + + + + Add_Sublocks + + 1656 + 1706 + + subBlocks + Add + + Get_SubBlock_for_Block.childRecords + + + + Set_Block_Record_Details + + + + Add_Unit_for_Each_Block_SubBlock + + 2184 + 1298 + + Units + Add + + Get_Units_for_Each_Block_in_Site.childRecords + + + + Loop_Through_All_Blocks_SubBlocks + + + + Add_Units + + 1788 + 998 + + Units + Add + + Get_Units_for_Each_SubBlock.childRecords + + + + Loop_Through_SubBlocks + + + + Assigns the output of Get Units Related to Block Subflow to the Units Collection Assign_Block_Units_to_Collection - 380 - 566 + 1348 + 782 Units Add @@ -13,11 +78,69 @@ Get_Units_Related_to_Block.childRecords + + Change_Block_Units_Status_and_Check_for_Allocated_Units + + + + Build_Block_Updates + + 1744 + 2030 - localLocation.Id - Assign + subBlock_Blocks + Add - recordId.Id + subBlock_Block + + + + Set_Block_Record_Details + + + + Build_Block_Updates_Site + + 2316 + 1922 + + subBlock_Blocks + Add + + subBlock_Block + + + + Loop_Through_all_Site_Blocks_SubBlocks + + + + Combine_All_Blocks_and_SubBlocks_for_Site + + 2096 + 974 + + subBlocks + Add + + Get_Blocks_Related_to_Site.childRecords + + + + Loop_Through_All_Blocks_SubBlocks + + + + Combine the SubBlock Units and Block Units + Combine_All_Units + + 1700 + 1190 + + Units + Add + + Get_Units_Related_to_Block.childRecords @@ -25,39 +148,155 @@ - Reset_Unavailability_Reason - - 578 + Combine_Block_SubBlock_records + + 1656 + 1598 + + subBlocks + Add + + recordId + + + + Add_Sublocks + + + + Get_Selected_Choice + + 1084 890 - localLocation.Unavailability_Reason__c + SelectedChoice Assign + + Status_Options + Update_Block_Status - Set_Unavailability_Details - + Set_Block_details + + 1744 + 1922 + + subBlock_Block.Block_Status__c + Assign + + Status_Options + + + + subBlock_Block.Unavailability_Reason__c + Assign + + resetUnavailableReason + + + + subBlock_Block.Id + Assign + + Set_Block_Record_Details.Id + + + + Build_Block_Updates + + + + Set_Block_details_Site + + 2316 + 1814 + + subBlock_Block.Block_Status__c + Assign + + Status_Options + + + + subBlock_Block.Unavailability_Reason__c + Assign + + resetUnavailableReason + + + + subBlock_Block.Id + Assign + + Loop_Through_all_Site_Blocks_SubBlocks.Id + + + + Build_Block_Updates_Site + + + + Set_Unit_as_Available + + 50 + 1166 + + Unit_Assignment.Id + Assign + + recordId.Id + + + + Unit_Assignment.Unit_Status__c + Assign + + Available + + + + Unit_Assignment.Unavailability_Reason__c + Assign + + + + + + Update_Unit + + + + Set_Unit_as_Unavailable + 314 - 998 + 1166 - localLocation.Block_Status__c + Unit_Assignment.Id + Assign + + recordId.Id + + + + Unit_Assignment.Unit_Status__c Assign Unavailable - localLocation.Unavailability_Reason__c + Unit_Assignment.Unavailability_Reason__c Assign Reason_Unavailable - Update_Block_Status + Update_Unit @@ -77,16 +316,63 @@ - Did_Block_Have_Allocated_Units_or_Ignore_Allocations - - 182 - 890 + Are_There_SubBlock_Units + + 820 + 566 + + Change_SubBlock_Units_Status_and_Check_for_Allocations + + SubBlock Units + + No_SubBlock_Units + and + + Get_SubBlock_Units.childRecords + IsNull + + true + + + + + + + Are_there_SubBlocks + + 1524 + 674 + + Loop_Through_SubBlocks + + Default Outcome + + No_SubBlocks + and + + Get_SubBlock_for_Block.childRecords + IsNull + + true + + + + Assign_Block_Units_to_Collection + + + + + + Did_Block_Have_Allocated_Units + + 1524 + 1490 - Set_Unavailability_Details + Combine_Block_SubBlock_records - No - Block Hasn't + No - Block hasn't - Yes_Block_Has + Yes_Block_has and allocatedUnits @@ -95,53 +381,177 @@ true + + Has_Allocated_Units + + + + + + Did_SubBlock_Have_Allocated_Units + + 996 + 782 + + Get_Selected_Choice + + No - SubBlock hasn't + + Yes_SubBlock_has + and - Ignore_Allocated_Units + allocatedUnits EqualTo - false + true Has_Allocated_Units - + - Location_Set_Unavailable - - 380 - 782 + Does_Unit_have_an_Allocation + + 336 + 566 - Reset_Unavailability_Reason + Unit_Available_or_Unavailable + + No Allocations + + Yes_Unit_has_Allocations + and + + recordId.Allocation__c + GreaterThan + + 0.0 + + + + Unit_Has_Allocation + + + + + + Is_the_Ignore_Allocated_Units_Flag_Set + + 182 + 458 + + Does_Unit_have_an_Allocation + + No - Honour Allocations + + Yes_Ignore_Allocations + and + + Ignore_Allocated_Units + EqualTo + + true + + + + Unit_Available_or_Unavailable + + + + + + Has the Unit be set as Available or Unavailable? + Unit_Available_or_Unavailable + + 182 + 1058 + + Set_Unit_as_Unavailable Default Outcome - Unavailable + Available and Status_Options EqualTo - Unavailable_Choice + Available_Choice - Did_Block_Have_Allocated_Units_or_Ignore_Allocations + Set_Unit_as_Available - + + + + + Were_there_any_Allocated_Units + + 2096 + 1598 + + Loop_Through_all_Site_Blocks_SubBlocks + + No - Allocated Units + + Yes_Allocated_Units + and + + allocatedUnits + EqualTo + + true + + + + Has_Allocated_Units + + What_is_the_Locations_RecordType - 611 + 1337 350 Location_RecordType_Error Error + + Unit + and + + recordId.RecordType.DeveloperName + EqualTo + + Unit + + + + Is_the_Ignore_Allocated_Units_Flag_Set + + + + + Sub_Block + and + + recordId.RecordType.DeveloperName + EqualTo + + SubBlock + + + + Get_SubBlock_Units + + + Block and @@ -153,13 +563,27 @@ - Get_Units_Related_to_Block + Get_SubBlock_for_Block + + Site + and + + recordId.RecordType.Name + EqualTo + + Site + + + + Get_Blocks_Related_to_Site + + + - [Animal Shelter] - Flow to change the Status of a Unit, Sub Block or Block to make - the associated Units Available or Unavailable + [Animal Shelter] - Flow to change the Status of a Site, Block, Sub Block or Unit to make the Location(s) Available or Unavailable Reason_Unavailable_Picklist Picklist @@ -169,9 +593,84 @@ Locations__c Default + + resetUnavailableReason + String + IF({!Status_Options} = 'Available', ' ', {!Reason_Unavailable}) + Location - Change Status Flow {!$Flow.CurrentDateTime} true + + Get_SubBlock_for_Each_Block + + 2096 + 566 + Get_Blocks_Related_to_Site.childRecords + Asc + + Get_SubBlock_for_Block_in_Site + + + Combine_All_Blocks_and_SubBlocks_for_Site + + + + Loop_Through_All_Blocks_SubBlocks + + 2096 + 1082 + subBlocks + Asc + + Get_Units_for_Each_Block_in_Site + + + Change_Units_Status_for_All_Site_Units + + + + Loop_Through_all_Site_Blocks_SubBlocks + + 2228 + 1706 + subBlocks + Asc + + Set_Block_details_Site + + + Update_Block_Status_Site + + + + Loop_Through_SubBlocks + + 1700 + 782 + Get_SubBlock_for_Block.childRecords + Asc + + Get_Units_for_Each_SubBlock + + + Combine_All_Units + + + + Set_Block_Record_Details + + 1656 + 1814 + subBlocks + Asc + + Set_Block_details + + + Update_Block_Status_Block + + BuilderType @@ -194,27 +693,73 @@ Update_Block_Status - 380 - 1382 + 1084 + 998 Completed - localLocation + and + + Id + EqualTo + + recordId.Id + + + + Block_Status__c + + Status_Options + + + + Unavailability_Reason__c + + resetUnavailableReason + + + Locations__c + + + Update_Block_Status_Block + + 1656 + 2222 + + true + Completed + + subBlock_Blocks + + + Update_Block_Status_Site + + 2228 + 2114 + + true + Completed + + subBlock_Blocks + + + Update_Unit + + 182 + 1358 + Unit_Assignment Completed - 380 - 1490 + 1084 + 1106 false true false Completed_Text - <p><strong>Locations - Updated!</strong></p><p><br></p><p>All units in - {!recordId.Name__c} have been updated to {!Status_Options}. Click Finish to complete - the wizard.</p> + <p><strong>Locations Updated!</strong></p><p><br></p><p>All units in {!recordId.Name__c} have been updated to {!SelectedChoice}. Click Finish to complete the wizard.</p> DisplayText true @@ -223,20 +768,14 @@ Has_Allocated_Units - 50 - 998 + 1337 + 2564 false true false - Has_Allocated_Units_Text - <p>Block/Sub Block - <strong><em>{!recordId.Name__c}</em></strong> has at least 1 - unit that is housing an animal, and is allocated. - </p><p><br></p><p>Please make arrangements to move the - animals out of any units in this Block/Sub - Block.</p><p><br></p><p>Click - <strong>Finish</strong> to Exit</p> + Copy_1_of_Has_Allocated_Units_Text + <p>Block/Sub Block <strong><em>{!recordId.Name__c}</em></strong> has at least 1 unit that is housing an animal, and is allocated. </p><p><br></p><p>Please make arrangements to move the animals out of any units in this Block/Sub Block.</p><p><br></p><p>Click <strong>Finish</strong> to Exit</p> DisplayText true @@ -245,7 +784,7 @@ Initial_Screen - 611 + 1337 134 false true @@ -255,8 +794,7 @@ Start_Screen_Text - <p>To change the status of the current Location and any child - Locations, select an option below</p> + <p>To change the status of the current Location and any child Locations, select an option below</p> DisplayText @@ -275,6 +813,21 @@ UseStoredValues false + + unavailableSelectedText + <p>As you have chosen to make the Location(s) unavailable please choose a reason for the unavailability</p> + DisplayText + + and + + Status_Options + EqualTo + + Unavailable_Choice + + + + width @@ -305,14 +858,6 @@ - - InitialScreenIgnoreAllocatedWarning - <p><strong style="color: rgb(247, 69, - 69);">WARNING!</strong><strong> - </strong>Setting - the Ignore Allocated Units checkbox will update the status of the Units that - may house animals</p> - DisplayText - Ignore_Allocated_Units Boolean @@ -321,9 +866,33 @@ Ignore Allocated Units InputField - <p>Update Status Regardless of Unit Occupancy</p> UseStoredValues true + + and + + Status_Options + EqualTo + + Unavailable_Choice + + + + + + InitialScreenIgnoreAllocatedWarning + <p><strong style="color: rgb(247, 69, 69);">WARNING!</strong><strong> - </strong>Setting the above checkbox will update the status of the Units that may house animals</p> + DisplayText + + and + + Ignore_Allocated_Units + EqualTo + + true + + + width @@ -336,31 +905,44 @@ false SectionWithoutHeader - <p>This wizard allows you to update the status for all units within a single - block at the same time. </p><p><br></p><p>For example if - the block needs to be closed for maintenance, you can use this to update the whole block - to unavailable.</p> + <p>This wizard allows you to update the status for all units within a single block at the same time. </p><p><br></p><p>For example if the block needs to be closed for maintenance, you can use this to update the whole block to unavailable.</p> true true Location_RecordType_Error - 842 + 2492 458 false true false Location_RecordType_Error_Text - <p>ERROR! - The Location {!recordId.Name__c} must be a Block</p> + <p>ERROR! - The Location {!recordId.Name__c} has no Record Type</p> + DisplayText + + true + true + + + Unit_Has_Allocation + + 204 + 674 + false + true + false + + Unit_Has_Allocation_Text + <p>Unit <strong><em>{!recordId.Name__c}</em></strong> has an allocation. </p><p><br></p><p>Please make arrangements to move the animal(s) out of the the unit.</p><p><br></p><p>Click <strong>Finish</strong> to Exit</p> DisplayText true true - 485 + 1211 0 Initial_Screen @@ -370,10 +952,86 @@ Change_Block_Units_Status_and_Check_for_Allocated_Units - 380 + 1524 + 1382 + + Did_Block_Have_Allocated_Units + + Location_Change_Unit_Status_SubFlow + + ignoreAllocatedUnits + + Ignore_Allocated_Units + + + + newStatus + + Status_Options + + + + newUnavailabilityReason + + Reason_Unavailable + + + + unitsForStatusChange + + Units + + + + allocatedUnits + unitsHaveAllocation + + + + Change_SubBlock_Units_Status_and_Check_for_Allocations + + 996 674 - Location_Set_Unavailable + Did_SubBlock_Have_Allocated_Units + + Location_Change_Unit_Status_SubFlow + + newStatus + + Status_Options + + + + newUnavailabilityReason + + Reason_Unavailable + + + + unitsForStatusChange + + Get_SubBlock_Units.childRecords + + + + ignoreAllocatedUnits + + Ignore_Allocated_Units + + + + allocatedUnits + unitsHaveAllocation + + + + Change_Units_Status_for_All_Site_Units + + 2096 + 1490 + + Were_there_any_Allocated_Units Location_Change_Unit_Status_SubFlow @@ -405,10 +1063,33 @@ unitsHaveAllocation + + Get_Blocks_Related_to_Site + + 2096 + 458 + + Get_SubBlock_for_Each_Block + + Location_Get_Location_Child_Records_Subflow + + childRecordTypeName + + Block + + + + locationRecord + + recordId + + + true + Get_RecordType_Id_for_Unit - 611 + 1337 242 What_is_the_Locations_RecordType @@ -428,13 +1109,128 @@ true + + Get_SubBlock_for_Block + + 1524 + 458 + + Get_Units_Related_to_Block + + Location_Get_Location_Child_Records_Subflow + + childRecordTypeName + + SubBlock + + + + locationRecord + + recordId + + + true + + + Get_SubBlock_for_Block_in_Site + + 2184 + 674 + + Add_SubBlock_to_Variable + + Location_Get_Location_Child_Records_Subflow + + childRecordTypeName + + SubBlock + + + + locationRecord + + Get_SubBlock_for_Each_Block + + + true + + + Get_SubBlock_Units + + 820 + 458 + + Are_There_SubBlock_Units + + Location_Get_Location_Child_Records_Subflow + + childRecordTypeName + + Unit + + + + locationRecord + + recordId + + + true + + + Get_Units_for_Each_Block_in_Site + + 2184 + 1190 + + Add_Unit_for_Each_Block_SubBlock + + Location_Get_Location_Child_Records_Subflow + + childRecordTypeName + + Unit + + + + locationRecord + + Loop_Through_All_Blocks_SubBlocks + + + true + + + Get_Units_for_Each_SubBlock + + 1788 + 890 + + Add_Units + + Location_Get_Location_Child_Records_Subflow + + childRecordTypeName + + Unit + + + + locationRecord + + Loop_Through_SubBlocks + + + true + Get_Units_Related_to_Block - 380 - 458 + 1524 + 566 - Assign_Block_Units_to_Collection + Are_there_SubBlocks Location_Get_Location_Child_Records_Subflow @@ -459,7 +1255,31 @@ false - localLocation + currentItem_Filter_for_Allocated_Records + SObject + false + false + false + Locations__c + + + currentItem_Filter_for_MultiAnimal_Units + SObject + false + false + false + Locations__c + + + currentItem_Filter_for_Units_with_an_Allocation + SObject + false + false + false + Locations__c + + + currentItem_Filter_Units_for_Allocated_Units SObject false false @@ -474,6 +1294,45 @@ false Locations__c + + SelectedChoice + String + false + false + false + + + subBlock_Block + SObject + false + false + false + Locations__c + + + subBlock_Blocks + SObject + true + false + false + Locations__c + + + subBlocks + SObject + true + false + false + Locations__c + + + Unit_Assignment + SObject + false + false + false + Locations__c + Units SObject diff --git a/force-app/main/default/flows/Location_Change_Unit_Status_SubFlow.flow-meta.xml b/force-app/main/default/flows/Location_Change_Unit_Status_SubFlow.flow-meta.xml old mode 100755 new mode 100644 index d793634..c0f9a75 --- a/force-app/main/default/flows/Location_Change_Unit_Status_SubFlow.flow-meta.xml +++ b/force-app/main/default/flows/Location_Change_Unit_Status_SubFlow.flow-meta.xml @@ -2,26 +2,10 @@ 61.0 - Add_Unit_Id_to_List - - 534 - 350 - - UnitIdList - Add - - Get_Units.Id - - - - Get_Units - - - - Build_Units_to_Set_to_New_Status - + Build_Units_to_Set_to_Available + 468 - 1766 + 1358 updatedUnits Add @@ -37,7 +21,7 @@ Count_No_of_Allocated_Units 446 - 758 + 350 allocationCount AssignCount @@ -53,7 +37,7 @@ Set_Allocated_Units_Flag_to_True 314 - 974 + 566 unitsHaveAllocation Assign @@ -66,7 +50,7 @@ Set_Allocation_to_Available 336 - 1574 + 1166 updatedUnit.Id Assign @@ -89,14 +73,14 @@ - Build_Units_to_Set_to_New_Status + Build_Units_to_Set_to_Available Set_Allocation_to_Unavailable 600 - 1574 + 1166 updatedUnit.Id Assign @@ -119,14 +103,14 @@ - Build_Units_to_Set_to_New_Status + Build_Units_to_Set_to_Available Set_Flag_Allocated_Units_to_False 578 - 974 + 566 unitsHaveAllocation Assign @@ -159,10 +143,10 @@ FilterCollectionProcessor 446 - 650 + 242 currentItem_Filter_Units_for_Allocated_Units FilterCollectionProcessor - Get_Units_From_Id_List + unitsForStatusChange and currentItem_Filter_Units_for_Allocated_Units.Allocation__c @@ -173,9 +157,9 @@ currentItem_Filter_Units_for_Allocated_Units.Unit_Status__c - NotEqualTo + EqualTo - Unavailable + Allocated @@ -186,7 +170,7 @@ Are_any_of_the_Units_allocated 446 - 866 + 458 Set_Flag_Allocated_Units_to_False @@ -213,7 +197,7 @@ 248 134 - Get_Units + Filter_Units_for_Allocated_Units No - Honor Allocations @@ -236,7 +220,7 @@ What_is_the_new_Status 468 - 1466 + 1058 Set_Allocation_to_Unavailable @@ -257,38 +241,23 @@ - [Animal Shelter] - Subflow to change the status of units. Inputs: Unit record - collection, Ignore Allocated Units Flag, Outputs: Allocated Units + [Animal Shelter] - Subflow to change the status of units. Inputs: Unit record collection, Ignore Allocated Units Flag, Outputs: Allocated Units Default Location - Change Unit Status SubFlow {!$Flow.CurrentDateTime} true - - Get_Units - - 446 - 242 - unitsForStatusChange - Asc - - Add_Unit_Id_to_List - - - Get_Units_From_Id_List - - Loop_Through_All_Units 248 - 1358 + 950 unitsForStatusChange Asc What_is_the_new_Status - Update_All_Units_to_New_Status + Update_All_Units_to_Available @@ -310,32 +279,11 @@ AutoLaunchedFlow - - Get_Units_From_Id_List - - 446 - 542 - false - - Filter_Units_for_Allocated_Units - - and - - Id - In - - UnitIdList - - - false - Locations__c - true - - Update_All_Units_to_New_Status - + Update_All_Units_to_Available + 248 - 1958 + 1550 updatedUnits @@ -384,13 +332,6 @@ true false - - UnitIdList - String - true - false - false - unitsForStatusChange SObject From c6100cefc98586093eba5bb9a6bda64afc59dd53 Mon Sep 17 00:00:00 2001 From: Chris Rolfe Date: Tue, 12 Nov 2024 15:03:56 +0000 Subject: [PATCH 4/5] Updated Animal Update Location Flow --- ...ter_Profile_Record_Page.flexipage-meta.xml | 16 ++- .../Breed_Record_Page.flexipage-meta.xml | 24 +++- ..._Update_Location_Unit_Status.flow-meta.xml | 125 ++++++++++++++---- 3 files changed, 124 insertions(+), 41 deletions(-) mode change 100755 => 100644 force-app/main/default/flows/Animal_Update_Location_Unit_Status.flow-meta.xml diff --git a/force-app/main/default/flexipages/Adopter_Profile_Record_Page.flexipage-meta.xml b/force-app/main/default/flexipages/Adopter_Profile_Record_Page.flexipage-meta.xml index 4785f20..c1fad2c 100644 --- a/force-app/main/default/flexipages/Adopter_Profile_Record_Page.flexipage-meta.xml +++ b/force-app/main/default/flexipages/Adopter_Profile_Record_Page.flexipage-meta.xml @@ -137,12 +137,6 @@ RecordActive_cField - - - Record.External_Id__c - Recordanimalshelters__External_Id__cField - - Facet-92cdd80a-d30e-4517-98bf-a61936ed30e8 Facet @@ -706,6 +700,16 @@ RecordLastModifiedByIdField + + + + uiBehavior + none + + Record.External_Id__c + Recordanimalshelters__External_Id__cField + + Facet-4a418350-86ed-4a9a-8a58-f6712c733533 Facet diff --git a/force-app/main/default/flexipages/Breed_Record_Page.flexipage-meta.xml b/force-app/main/default/flexipages/Breed_Record_Page.flexipage-meta.xml index a543f72..c08cdad 100644 --- a/force-app/main/default/flexipages/Breed_Record_Page.flexipage-meta.xml +++ b/force-app/main/default/flexipages/Breed_Record_Page.flexipage-meta.xml @@ -97,12 +97,6 @@ RecordLatin_Name_cField - - - Record.External_Id__c - Recordanimalshelters__External_Id__cField - - Facet-364e5636-e37f-406b-a65a-3fc58ea55842 Facet @@ -195,6 +189,10 @@ columns Facet-48fc255f-1a93-4686-94ba-27526c423105 + + horizontalAlignment + false + label Information @@ -217,6 +215,16 @@ RecordCreatedByIdField + + + + uiBehavior + none + + Record.External_Id__c + Recordanimalshelters__External_Id__cField + + Facet-e64b7f31-c680-496f-b8e3-34ae84cd4392 Facet @@ -275,6 +283,10 @@ columns Facet-ae83c7a4-75e1-4600-821c-027f4bd9e7ce + + horizontalAlignment + false + label System Information diff --git a/force-app/main/default/flows/Animal_Update_Location_Unit_Status.flow-meta.xml b/force-app/main/default/flows/Animal_Update_Location_Unit_Status.flow-meta.xml old mode 100755 new mode 100644 index 6e51c51..fe4621c --- a/force-app/main/default/flows/Animal_Update_Location_Unit_Status.flow-meta.xml +++ b/force-app/main/default/flows/Animal_Update_Location_Unit_Status.flow-meta.xml @@ -1,24 +1,74 @@ - 55.0 - - Dummy Assignment to all flow to be saved - Dummy_Assignment - - 176 + 60.0 + + Has_Unit_been_marked_as_Unavailable + + 534 323 - - tmpVariable - Assign - - Null - - - - DEPRECATED [Animal Shelter] Autolaunched flow to update the Location Status based on - availability + Yes Unit is Unavailable + + No_Unit_is_Not_Unavailable + or + + $Record.animalshelters__Unit_Status__c + NotEqualTo + + Unavailable + + + + Is_there_Availability + + + + + + Is_there_Availability + + 314 + 431 + Default Outcome + + Unit_Fully_Allocated + and + + NoMoreCapacity + EqualTo + + true + + + + Set_Status_Allocated + + + + + Unit_Available + and + + NoMoreCapacity + EqualTo + + false + + + + Set_Status_to_Available + + + + + Autolaunched flow to update the Location Status based on availability Default + + NoMoreCapacity + Boolean + {!$Record.animalshelters__Availability__c} = 0 + Animal - Update Location Unit Status + true BuilderType @@ -39,25 +89,42 @@ AutoLaunchedFlow - + + Set_Status_Allocated + 50 + 539 + + Unit_Status__c + + Allocated + + + $Record + + + Set_Status_to_Available + + 314 + 539 + + Unit_Status__c + + Available + + + $Record + + + 408 0 - Dummy_Assignment + Has_Unit_been_marked_as_Unavailable - {!$Record.RecordType.Name}='Unit' || - {!$Record.RecordType.Name}='Foster' || - {!$Record.RecordType.Name}='Organisation' + {!$Record.RecordType.Name}= "Unit" Locations__c CreateAndUpdate RecordAfterSave - Draft - - tmpVariable - String - false - false - false - + Active From a22ef16d98f64e0cb34899278c3c1aaba38cc257 Mon Sep 17 00:00:00 2001 From: Chris Rolfe Date: Tue, 12 Nov 2024 15:08:31 +0000 Subject: [PATCH 5/5] Update Location_Location_Create_Update_Trigger.flow-meta.xml --- .../flows/Location_Location_Create_Update_Trigger.flow-meta.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/force-app/main/default/flows/Location_Location_Create_Update_Trigger.flow-meta.xml b/force-app/main/default/flows/Location_Location_Create_Update_Trigger.flow-meta.xml index 36ebf30..f67d1bc 100644 --- a/force-app/main/default/flows/Location_Location_Create_Update_Trigger.flow-meta.xml +++ b/force-app/main/default/flows/Location_Location_Create_Update_Trigger.flow-meta.xml @@ -18,7 +18,6 @@ DEPRECATED [Animal Shelter] Calls Block Calculations Subflow Default Location - Location Create/Update Trigger {!$Flow.CurrentDateTime} - true BuilderType