diff --git a/force-app/main/default/flows/UpdateVIPStatus.flow-meta.xml b/force-app/main/default/flows/UpdateVIPStatus.flow-meta.xml new file mode 100644 index 0000000..9af8cd8 --- /dev/null +++ b/force-app/main/default/flows/UpdateVIPStatus.flow-meta.xml @@ -0,0 +1,194 @@ + + + 57.0 + + Account_is_VIP + + 50 + 815 + + GetAccount.IsVIP__c + Assign + + true + + + + UpdateAccountCheckbox + + + + ContactCountAssignment + + 314 + 575 + + NumberOfVIPContacts + AssignCount + + GetContacts + + + + Account_needs_update_if_VIP_Contacts + + + + IsNoVIP + + 314 + 815 + + GetAccount.IsVIP__c + Assign + + false + + + + UpdateAccountCheckbox + + + + Account_needs_update_if_VIP_Contacts + + 314 + 695 + Default Outcome + + AccountHasVIPContacts + and + + NumberOfVIPContacts + GreaterThan + + 0.0 + + + + Account_is_VIP + + + + + AccountHasNoVIPContacts + and + + NumberOfVIPContacts + EqualTo + + 0.0 + + + + IsNoVIP + + + + + Default + UpdateVIPStatus {!$Flow.CurrentDateTime} + + + BuilderType + + LightningFlowBuilder + + + + CanvasMode + + AUTO_LAYOUT_CANVAS + + + + OriginBuilderType + + LightningFlowBuilder + + + AutoLaunchedFlow + + GetAccount + + 314 + 455 + false + + ContactCountAssignment + + and + + Id + EqualTo + + $Record.AccountId + + + true + Account + true + + + GetContacts + + 314 + 335 + false + + GetAccount + + and + + IsVIP__c + EqualTo + + true + + + + AccountId + EqualTo + + $Record.Account.Id + + + false + Contact + true + + + UpdateAccountCheckbox + + 314 + 1031 + GetAccount + + + 188 + 0 + + GetContacts + + ISNEW() || ISCHANGED({!$Record.IsVIP__c}) + Contact + CreateAndUpdate + RecordAfterSave + + Active + + NumberOfVIPContacts + NumberOfVIPContacts + Number + false + false + false + 0 + + 0.0 + + +