diff --git a/force-app/main/default/flows/TAG_Event.flow-meta.xml b/force-app/main/default/flows/TAG_Event.flow-meta.xml index 3011ef44..61f6aad8 100644 --- a/force-app/main/default/flows/TAG_Event.flow-meta.xml +++ b/force-app/main/default/flows/TAG_Event.flow-meta.xml @@ -1,6 +1,22 @@ 60.0 + + Store_event_date + + 1898 + 647 + + StartDateTimeVariable + Assign + + $Record.StartDateTime + + + + Update_latest_event_date_on_account + + Is_Event_related_to_IACase @@ -26,7 +42,7 @@ Is_IA_Case_Number_blank - 1128 + 1172 971 Not blank @@ -55,7 +71,7 @@ Is_IA_event - 1326 + 1634 539 No not IA event @@ -73,6 +89,28 @@ + + Is_IPS_event + and + + $Record.RecordTypeName__c + EqualTo + + Arbeidsgivermøte + + + + $Record.StartDateTime + GreaterThan + + $Record.Account.TAG_LastEventDate__c + + + + Store_event_date + + + Is_updated_or_created @@ -102,7 +140,7 @@ Subject_equals_pubsub - 754 + 908 323 Update_fields @@ -127,7 +165,7 @@ Which_Record_Type - 1018 + 1106 863 Default Outcome @@ -226,7 +264,7 @@ EventMessage__c - StoreEventValuesForPubSub + StoreEventValues @@ -241,7 +279,7 @@ Created - PubSub_Event__e + EmployerActivityEvent__e true @@ -252,7 +290,7 @@ EventMessage__c - StoreEventValuesForPubSub + StoreEventValues @@ -267,7 +305,7 @@ Updated - PubSub_Event__e + EmployerActivityEvent__e true @@ -336,7 +374,7 @@ Get_latest_IA_priority_event - 1018 + 1106 647 false @@ -424,7 +462,7 @@ Update_account - 1018 + 1106 755 Which_Record_Type @@ -448,7 +486,7 @@ Update_fields - 1326 + 1634 431 Is_IA_event @@ -503,8 +541,29 @@ $Record + + Update_latest_event_date_on_account + + 1898 + 755 + and + + Id + EqualTo + + $Record.RelatedToAccount__r.Id + + + + TAG_LastEventDate__c + + StartDateTimeVariable + + + Account + - 628 + 782 0 Subject_equals_pubsub @@ -536,6 +595,11 @@ RecordAfterSave Active + + StoreEventValues + true + {"id":"{!$Record.Id}", "tema":"{!$Record.TAG_ActivityType__c}", "tjeneste":"{!$Record.TAG_service__c}", "emne":"{!$Record.Subject}", "opprettet_dato":"{!opprettet_dato_text}", "endret_dato":"{!endret_dato_text}", "virksomhet_orgnr":"{!$Record.CRM_AccountOrgNumber__c}", "moete_dato":"{!moete_dato_text}", "virksomhet_NAV_enhet":"{!$Record.TAG_AccountNAVUnit__c}", "virksomhet_type":"{!$Record.TAG_AccountOrgType__c}", "ansatt_NAV_enhet":"{!$Record.TAG_UserNAVUnit__c}", "overordnet_virksomhet_id":"{!$Record.TAG_AccountParentId__c}", "overordnet_virksomhet_orgnr":"{!$Record.TAG_AccountParentOrgNumber__c}", "status":"{!$Record.TAG_Status__c}", "kanal":"{!$Record.Type}", "region":"{!$Record.CRM_Region__c}", "ansatt_NAV_enhet_navn":"{!$Record.CRM_Unit__c}", "paaminnelse_dato":"{!paaminnelse_dato_text}", "oppgaveposttype_id":"{!$Record.RecordTypeId}", "start_tid":"{!start_tid_text}", "slutt_tid":"{!slutt_tid_text}", "moeteundertype":"{!$Record.EventSubtype}", "varighet":"{!$Record.DurationInMinutes}", "relatert_til":"{!$Record.WhatId}", "relatert_til_hvem":"{!$Record.WhoId}", "IA_saksnummer":"{!$Record.TAG_IACaseNumber__c}", "IA_undertema":"{!$Record.IASubtheme__c}", "IA_samarbeid_id":"{!$Record.TAG_IACooperationId__c}", "posttype_navn":"{!$Record.RecordTypeName__c}"} + StoreEventValuesForPubSub true diff --git a/force-app/main/default/flows/TAG_Task.flow-meta.xml b/force-app/main/default/flows/TAG_Task.flow-meta.xml index 0bcebee0..9e38d09d 100644 --- a/force-app/main/default/flows/TAG_Task.flow-meta.xml +++ b/force-app/main/default/flows/TAG_Task.flow-meta.xml @@ -33,7 +33,7 @@ Is_IA_priority - 1194 + 1304 1247 Not IA priority @@ -62,7 +62,7 @@ Is_Related_to_Account - 1194 + 1304 839 Is_IA_priority @@ -112,7 +112,7 @@ Subject_equals_pubsub - 688 + 743 323 Update_fields @@ -137,7 +137,7 @@ Update_Activity_Date - 1194 + 1304 539 Is_Related_to_Account @@ -162,7 +162,7 @@ Which_Record_Type - 930 + 974 1571 Default Outcome @@ -256,7 +256,7 @@ EventMessage__c - StoreTaskValuesForPubSub + StoreTaskValues @@ -271,7 +271,7 @@ Created - PubSub_Event__e + EmployerActivityEvent__e true @@ -282,7 +282,7 @@ EventMessage__c - StoreTaskValuesForPubSub + StoreTaskValues @@ -297,13 +297,13 @@ Updated - PubSub_Event__e + EmployerActivityEvent__e true Get_dummy_account_Id - 1062 + 1172 947 false @@ -388,7 +388,7 @@ Get_latest_IA_priority_task - 930 + 974 1355 false @@ -425,7 +425,7 @@ Set_Activity_Date_to_today - 1062 + 1172 647 Is_Related_to_Account @@ -497,7 +497,7 @@ Update_account - 930 + 974 1463 Which_Record_Type @@ -521,7 +521,7 @@ Update_AccountOrgType2_field - 1062 + 1172 1055 Is_IA_priority @@ -545,7 +545,7 @@ Update_fields - 1194 + 1304 431 Update_Activity_Date @@ -601,7 +601,7 @@ $Record - 562 + 617 0 Subject_equals_pubsub @@ -626,6 +626,11 @@ RecordAfterSave Active + + StoreTaskValues + true + {"id":"{!$Record.Id}", "tema":"{!$Record.TAG_ActivityType__c}", "tjeneste":"{!$Record.TAG_service__c}", "emne":"{!$Record.Subject}", "opprettet_dato":"{!opprettet_dato_text}", "endret_dato":"{!endret_dato_text}", "virksomhet_orgnr":"{!$Record.CRM_AccountOrgNumber__c}", "forfallsdato":"{!forfallsdato_text}", "virksomhet_NAV_enhet":"{!$Record.TAG_AccountNAVUnit__c}", "virksomhet_type":"{!$Record.TAG_AccountOrgType__c}", "ansatt_NAV_enhet":"{!$Record.TAG_UserNAVUnit__c}", "overordnet_virksomhet_id":"{!$Record.TAG_AccountParentId__c}", "overordnet_virksomhet_orgnr":"{!$Record.TAG_AccountParentOrgNumber__c}", "status":"{!$Record.TAG_Status__c}", "prioritet":"{!$Record.Priority}", "kanal":"{!$Record.Type}", "oppgaveundertype":"{!$Record.TaskSubtype}", "region":"{!$Record.CRM_Region__c}", "ansatt_NAV_enhet_navn":"{!$Record.CRM_Unit__c}", "paaminnelse_dato":"{!paaminnelse_dato_text}", "oppgaveposttype_id":"{!$Record.RecordTypeId}", "relatert_til":"{!$Record.WhatId}", "relatert_til_hvem":"{!$Record.WhoId}", "IA_saksnummer":"{!$Record.TAG_IACaseNumber__c}", "IA_undertema":"{!$Record.IASubtheme__c}", "IA_samarbeid_id":"{!$Record.TAG_IACooperationId__c}", "posttype_navn":"{!$Record.RecordTypeName__c}"} + StoreTaskValuesForPubSub true diff --git a/force-app/main/default/flows/Tag_Event_Listener.flow-meta.xml b/force-app/main/default/flows/Tag_Event_Listener.flow-meta.xml index f34038c0..426001d8 100644 --- a/force-app/main/default/flows/Tag_Event_Listener.flow-meta.xml +++ b/force-app/main/default/flows/Tag_Event_Listener.flow-meta.xml @@ -66,14 +66,14 @@ Create_Application_Log_Action_1 - PubSub_Event__e + EmployerActivityEvent__e PlatformEvent - Obsolete + Draft FetchValues true - <p>{"Uuid":"{!$Record.EventUuid}",&nbsp;"ReplayId":"{!$Record.ReplayId}", "Date":"{!$Record.CreatedDate}", "EventType":"<span style="background-color: rgb(255, 255, 255); color: rgb(68, 68, 68);">{!$Record.EventType__c}</span>", "EventMessage":"{!$Record.EventMessage__c}"}</p> + {"Uuid":"{!$Record.EventUuid}", "ReplayId":"{!$Record.ReplayId}", "Date":"{!$Record.CreatedDate}", "EventType":"{!$Record.EventType__c}", "EventObject":"{!$Record.EventObject__c}", "EventMessage":"{!$Record.EventMessage__c}"} GetFields diff --git a/force-app/main/default/objects/EmployerActivityEvent__e/EmployerActivityEvent__e.object-meta.xml b/force-app/main/default/objects/EmployerActivityEvent__e/EmployerActivityEvent__e.object-meta.xml new file mode 100644 index 00000000..cd857111 --- /dev/null +++ b/force-app/main/default/objects/EmployerActivityEvent__e/EmployerActivityEvent__e.object-meta.xml @@ -0,0 +1,8 @@ + + + Deployed + HighVolume + + Employer Activity Events + PublishImmediately + diff --git a/force-app/main/default/objects/EmployerActivityEvent__e/fields/EventMessage__c.field-meta.xml b/force-app/main/default/objects/EmployerActivityEvent__e/fields/EventMessage__c.field-meta.xml new file mode 100644 index 00000000..5572f179 --- /dev/null +++ b/force-app/main/default/objects/EmployerActivityEvent__e/fields/EventMessage__c.field-meta.xml @@ -0,0 +1,12 @@ + + + EventMessage__c + false + false + false + false + + 131072 + LongTextArea + 3 + diff --git a/force-app/main/default/objects/EmployerActivityEvent__e/fields/EventObject__c.field-meta.xml b/force-app/main/default/objects/EmployerActivityEvent__e/fields/EventObject__c.field-meta.xml new file mode 100644 index 00000000..36671e6c --- /dev/null +++ b/force-app/main/default/objects/EmployerActivityEvent__e/fields/EventObject__c.field-meta.xml @@ -0,0 +1,13 @@ + + + EventObject__c + false + false + false + false + + 32 + false + Text + false + diff --git a/force-app/main/default/objects/EmployerActivityEvent__e/fields/EventType__c.field-meta.xml b/force-app/main/default/objects/EmployerActivityEvent__e/fields/EventType__c.field-meta.xml new file mode 100644 index 00000000..1be5276b --- /dev/null +++ b/force-app/main/default/objects/EmployerActivityEvent__e/fields/EventType__c.field-meta.xml @@ -0,0 +1,13 @@ + + + EventType__c + false + false + false + false + + 32 + false + Text + false +