diff --git a/force-app/main/default/customPermissions/Arbeidsgiver.customPermission-meta.xml b/force-app/main/default/customPermissions/Arbeidsgiver.customPermission-meta.xml
deleted file mode 100644
index 44ccc4768..000000000
--- a/force-app/main/default/customPermissions/Arbeidsgiver.customPermission-meta.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- false
-
-
diff --git a/force-app/main/default/globalValueSets/BasicSkills.globalValueSet-meta.xml b/force-app/main/default/globalValueSets/BasicSkills.globalValueSet-meta.xml
deleted file mode 100644
index 86b248e7f..000000000
--- a/force-app/main/default/globalValueSets/BasicSkills.globalValueSet-meta.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
- Snakke norsk
- false
-
-
-
- Skrive norsk
- false
-
-
-
- Lese norsk
- false
-
-
-
- Regning og tallforståelse
- false
-
-
-
- Andre utfordringer
- false
-
-
- Grunnleggende ferdigheter
- false
-
diff --git a/force-app/main/default/globalValueSets/Municipalities.globalValueSet-meta.xml b/force-app/main/default/globalValueSets/Municipalities.globalValueSet-meta.xml
deleted file mode 100644
index ae29598bf..000000000
--- a/force-app/main/default/globalValueSets/Municipalities.globalValueSet-meta.xml
+++ /dev/null
@@ -1,2271 +0,0 @@
-
-
-
- Risør
- false
-
-
-
- Grimstad
- false
-
-
-
- Arendal
- false
-
-
-
- Gjerstad
- false
-
-
-
- Vegårshei
- false
-
-
-
- Tvedestrand
- false
-
-
-
- Froland
- false
-
-
-
- Lillesand
- false
-
-
-
- Birkenes
- false
-
-
-
- Åmli
- false
-
-
-
- Iveland
- false
-
-
-
- Evje og Hornnes
- false
-
-
-
- Bygland
- false
-
-
-
- Valle
- false
-
-
-
- Bykle
- false
-
-
-
- Kristiansand
- false
-
-
-
- Mandal
- false
-
-
-
- Farsund
- false
-
-
-
- Flekkefjord
- false
-
-
-
- Vennesla
- false
-
-
-
- Songdalen
- false
-
-
-
- Søgne
- false
-
-
-
- Marnardal
- false
-
-
-
- Åseral
- false
-
-
-
- Audnedal
- false
-
-
-
- Lindesnes
- false
-
-
-
- Lyngdal
- false
-
-
-
- Hægebostad
- false
-
-
-
- Kvinesdal
- false
-
-
-
- Sirdal
- false
-
-
-
- Stavanger - Hundvåg
- false
-
-
-
- Stavanger - Tasta
- false
-
-
-
- Stavanger - Eiganes og Våland
- false
-
-
-
- Stavanger - Madla
- false
-
-
-
- Stavanger - Storhaug
- false
-
-
-
- Stavanger - Hillevåg
- false
-
-
-
- Stavanger - Hinna
- false
-
-
-
- Eigersund
- false
-
-
-
- Sandnes
- false
-
-
-
- Haugesund
- false
-
-
-
- Sokndal
- false
-
-
-
- Lund
- false
-
-
-
- Bjerkreim
- false
-
-
-
- Hå
- false
-
-
-
- Klepp
- false
-
-
-
- Time
- false
-
-
-
- Gjesdal
- false
-
-
-
- Sola
- false
-
-
-
- Randaberg
- false
-
-
-
- Forsand
- false
-
-
-
- Strand
- false
-
-
-
- Hjelmeland
- false
-
-
-
- Suldal
- false
-
-
-
- Sauda
- false
-
-
-
- Finnøy
- false
-
-
-
- Rennesøy
- false
-
-
-
- Kvitsøy
- false
-
-
-
- Bokn
- false
-
-
-
- Tysvær
- false
-
-
-
- Karmøy
- false
-
-
-
- Utsira
- false
-
-
-
- Vindafjord
- false
-
-
-
- Bergen - Arna
- false
-
-
-
- Bergen - Bergenhus
- false
-
-
-
- Bergen - Fana
- false
-
-
-
- Bergen - Fyllingsdalen
- false
-
-
-
- Bergen - Laksevåg
- false
-
-
-
- Bergen - Ytrebygda
- false
-
-
-
- Bergen - Årstad
- false
-
-
-
- Bergen - Åsane
- false
-
-
-
- Etne
- false
-
-
-
- Sveio
- false
-
-
-
- Bømlo
- false
-
-
-
- Stord
- false
-
-
-
- Fitjar
- false
-
-
-
- Tysnes
- false
-
-
-
- Kvinnherad
- false
-
-
-
- Jondal
- false
-
-
-
- Odda
- false
-
-
-
- Ullensvang
- false
-
-
-
- Eidfjord
- false
-
-
-
- Ulvik
- false
-
-
-
- Granvin
- false
-
-
-
- Voss
- false
-
-
-
- Kvam
- false
-
-
-
- Fusa
- false
-
-
-
- Samnanger
- false
-
-
-
- Os
- false
-
-
-
- Austevoll
- false
-
-
-
- Sund
- false
-
-
-
- Fjell
- false
-
-
-
- Askøy
- false
-
-
-
- Vaksdal
- false
-
-
-
- Modalen
- false
-
-
-
- Osterøy
- false
-
-
-
- Meland
- false
-
-
-
- Øygarden
- false
-
-
-
- Radøy
- false
-
-
-
- Lindås
- false
-
-
-
- Austrheim
- false
-
-
-
- Fedje
- false
-
-
-
- Masfjorden
- false
-
-
-
- Flora
- false
-
-
-
- Gulen
- false
-
-
-
- Solund
- false
-
-
-
- Hyllestad
- false
-
-
-
- Høyanger
- false
-
-
-
- Vik
- false
-
-
-
- Balestrand
- false
-
-
-
- Leikanger
- false
-
-
-
- Sogndal
- false
-
-
-
- Aurland
- false
-
-
-
- Lærdal
- false
-
-
-
- Årdal
- false
-
-
-
- Luster
- false
-
-
-
- Askvoll
- false
-
-
-
- Fjaler
- false
-
-
-
- Gaular
- false
-
-
-
- Jølster
- false
-
-
-
- Førde
- false
-
-
-
- Naustdal
- false
-
-
-
- Bremanger
- false
-
-
-
- Vågsøy
- false
-
-
-
- Selje
- false
-
-
-
- Eid
- false
-
-
-
- Hornindal
- false
-
-
-
- Gloppen
- false
-
-
-
- Stryn
- false
-
-
-
- Molde
- false
-
-
-
- Ålesund
- false
-
-
-
- Kristiansund
- false
-
-
-
- Vanylven
- false
-
-
-
- Sande
- false
-
-
-
- Herøy i Møre
- false
-
-
-
- Ulstein
- false
-
-
-
- Hareid
- false
-
-
-
- Volda
- false
-
-
-
- Ørsta
- false
-
-
-
- Ørskog
- false
-
-
-
- Norddal
- false
-
-
-
- Stranda
- false
-
-
-
- Stordal
- false
-
-
-
- Sykkylven
- false
-
-
-
- Skodje
- false
-
-
-
- Sula
- false
-
-
-
- Giske
- false
-
-
-
- Haram
- false
-
-
-
- Vestnes
- false
-
-
-
- Rauma
- false
-
-
-
- Nesset
- false
-
-
-
- Midsund
- false
-
-
-
- Sandøy
- false
-
-
-
- Aukra
- false
-
-
-
- Fræna
- false
-
-
-
- Eide
- false
-
-
-
- Averøy
- false
-
-
-
- Gjemnes
- false
-
-
-
- Tingvoll
- false
-
-
-
- Sunndal
- false
-
-
-
- Surnadal
- false
-
-
-
- Halsa
- false
-
-
-
- Smøla
- false
-
-
-
- Aure
- false
-
-
-
- Bodø
- false
-
-
-
- Narvik
- false
-
-
-
- Bindal
- false
-
-
-
- Sømna
- false
-
-
-
- Brønnøy
- false
-
-
-
- Vega
- false
-
-
-
- Vevelstad
- false
-
-
-
- Herøy
- false
-
-
-
- Alstahaug
- false
-
-
-
- Leirfjord
- false
-
-
-
- Vefsn
- false
-
-
-
- Grane
- false
-
-
-
- Hattfjelldal
- false
-
-
-
- Dønna
- false
-
-
-
- Nesna
- false
-
-
-
- Hemnes
- false
-
-
-
- Rana
- false
-
-
-
- Lurøy
- false
-
-
-
- Træna
- false
-
-
-
- Rødøy
- false
-
-
-
- Meløy
- false
-
-
-
- Gildeskål
- false
-
-
-
- Beiarn
- false
-
-
-
- Saltdal
- false
-
-
-
- Fauske – Fuossko
- false
-
-
-
- Sørfold
- false
-
-
-
- Steigen
- false
-
-
-
- Hamarøy
- false
-
-
-
- Divtasvuodna – Tysfjord
- false
-
-
-
- Lødingen
- false
-
-
-
- Evenes
- false
-
-
-
- Ballangen
- false
-
-
-
- Røst
- false
-
-
-
- Værøy
- false
-
-
-
- Flakstad
- false
-
-
-
- Vestvågøy
- false
-
-
-
- Vågan
- false
-
-
-
- Hadsel
- false
-
-
-
- Bø
- false
-
-
-
- Øksnes
- false
-
-
-
- Sortland
- false
-
-
-
- Andøy
- false
-
-
-
- Moskenes
- false
-
-
-
- Gratangen
- false
-
-
-
- Tjeldsund
- false
-
-
-
- Tromsø
- false
-
-
-
- Harstad
- false
-
-
-
- Kvæfjord
- false
-
-
-
- Skånland
- false
-
-
-
- Ibestad
- false
-
-
-
- Loabák – Lavangen
- false
-
-
-
- Bardu
- false
-
-
-
- Salangen
- false
-
-
-
- Målselv
- false
-
-
-
- Sørreisa
- false
-
-
-
- Dyrøy
- false
-
-
-
- Tranøy
- false
-
-
-
- Torsken
- false
-
-
-
- Berg
- false
-
-
-
- Lenvik
- false
-
-
-
- Balsfjord
- false
-
-
-
- Karlsøy
- false
-
-
-
- Lyngen
- false
-
-
-
- Storfjord – Omasvuotna – Omasvuono
- false
-
-
-
- Gáivuotna – Kåfjord – Kaivuono
- false
-
-
-
- Skjervøy
- false
-
-
-
- Nordreisa - Ráisa - Raisi
- false
-
-
-
- Kvænangen
- false
-
-
-
- Vardø
- false
-
-
-
- Vadsø
- false
-
-
-
- Hammerfest
- false
-
-
-
- Guovdageaidnu – Kautokeino
- false
-
-
-
- Alta
- false
-
-
-
- Loppa
- false
-
-
-
- Hasvik
- false
-
-
-
- Kvalsund
- false
-
-
-
- Måsøy
- false
-
-
-
- Nordkapp
- false
-
-
-
- Porsanger – Porsáŋgu – Porsanki
- false
-
-
-
- Kárášjohka – Karasjok
- false
-
-
-
- Lebesby
- false
-
-
-
- Gamvik
- false
-
-
-
- Berlevåg
- false
-
-
-
- Deatnu - Tana
- false
-
-
-
- Unjárga – Nesseby
- false
-
-
-
- Båtsfjord
- false
-
-
-
- Sør-Varanger
- false
-
-
-
- Trondheim - Midtbyen
- false
-
-
-
- Trondheim - Østbyen
- false
-
-
-
- Trondheim - Lerkendal
- false
-
-
-
- Trondheim - Heimdal
- false
-
-
-
- Os i Trøndelag
- false
-
-
-
- Steinkjer
- false
-
-
-
- Namsos
- false
-
-
-
- Hemne
- false
-
-
-
- Snillfjord
- false
-
-
-
- Hitra
- false
-
-
-
- Frøya
- false
-
-
-
- Ørland
- false
-
-
-
- Agdenes
- false
-
-
-
- Bjugn
- false
-
-
-
- Åfjord
- false
-
-
-
- Roan
- false
-
-
-
- Osen
- false
-
-
-
- Oppdal
- false
-
-
-
- Rennebu
- false
-
-
-
- Meldal
- false
-
-
-
- Orkdal
- false
-
-
-
- Røros
- false
-
-
-
- Holtålen
- false
-
-
-
- Midtre Gauldal
- false
-
-
-
- Melhus
- false
-
-
-
- Skaun
- false
-
-
-
- Klæbu
- false
-
-
-
- Malvik
- false
-
-
-
- Selbu
- false
-
-
-
- Tydal
- false
-
-
-
- Meråker
- false
-
-
-
- Stjørdal
- false
-
-
-
- Frosta
- false
-
-
-
- Levanger
- false
-
-
-
- Verdal
- false
-
-
-
- Verran
- false
-
-
-
- Namdalseid
- false
-
-
-
- Snåase-Snåsa
- false
-
-
-
- Lierne
- false
-
-
-
- Raarvikhe – Røyrvik
- false
-
-
-
- Namsskogan
- false
-
-
-
- Grong
- false
-
-
-
- Høylandet
- false
-
-
-
- Overhalla
- false
-
-
-
- Fosnes
- false
-
-
-
- Flatanger
- false
-
-
-
- Vikna
- false
-
-
-
- Nærøy
- false
-
-
-
- Leka
- false
-
-
-
- Inderøy
- false
-
-
-
- Indre Fosen
- false
-
-
-
- Rindal
- false
-
-
-
- Bærum
- false
-
-
-
- Asker
- false
-
-
-
- Drammen
- false
-
-
-
- Kongsberg
- false
-
-
-
- Ringerike
- false
-
-
-
- Hole
- false
-
-
-
- Flå
- false
-
-
-
- Nes
- false
-
-
-
- Gol
- false
-
-
-
- Hemsedal
- false
-
-
-
- Ål
- false
-
-
-
- Hol
- false
-
-
-
- Sigdal
- false
-
-
-
- Krødsherad
- false
-
-
-
- Modum
- false
-
-
-
- Øvre Eiker
- false
-
-
-
- Nedre Eiker
- false
-
-
-
- Lier
- false
-
-
-
- Røyken
- false
-
-
-
- Hurum
- false
-
-
-
- Flesberg
- false
-
-
-
- Rollag
- false
-
-
-
- Nore og Uvdal
- false
-
-
-
- Kongsvinger
- false
-
-
-
- Hamar
- false
-
-
-
- Ringsaker
- false
-
-
-
- Løten
- false
-
-
-
- Stange
- false
-
-
-
- Nord-Odal
- false
-
-
-
- Sør-Odal
- false
-
-
-
- Eidskog
- false
-
-
-
- Grue
- false
-
-
-
- Åsnes
- false
-
-
-
- Våler i Innlandet
- false
-
-
-
- Elverum
- false
-
-
-
- Trysil
- false
-
-
-
- Åmot
- false
-
-
-
- Stor-Elvdal
- false
-
-
-
- Rendalen
- false
-
-
-
- Engerdal
- false
-
-
-
- Tolga
- false
-
-
-
- Tynset
- false
-
-
-
- Alvdal
- false
-
-
-
- Folldal
- false
-
-
-
- Lillehammer
- false
-
-
-
- Gjøvik
- false
-
-
-
- Dovre
- false
-
-
-
- Lesja
- false
-
-
-
- Skjåk
- false
-
-
-
- Lom
- false
-
-
-
- Vågå
- false
-
-
-
- Nord-Fron
- false
-
-
-
- Sel
- false
-
-
-
- Sør-Fron
- false
-
-
-
- Ringebu
- false
-
-
-
- Øyer
- false
-
-
-
- Gausdal
- false
-
-
-
- Østre Toten
- false
-
-
-
- Vestre Toten
- false
-
-
-
- Jevnaker
- false
-
-
-
- Lunner
- false
-
-
-
- Gran
- false
-
-
-
- Søndre Land
- false
-
-
-
- Nordre Land
- false
-
-
-
- Sør-Aurdal
- false
-
-
-
- Etnedal
- false
-
-
-
- Nord-Aurdal
- false
-
-
-
- Vestre Slidre
- false
-
-
-
- Øystre Slidre
- false
-
-
-
- Vang
- false
-
-
-
- Halden
- false
-
-
-
- Moss
- false
-
-
-
- Sarpsborg
- false
-
-
-
- Fredrikstad
- false
-
-
-
- Hvaler
- false
-
-
-
- Aremark
- false
-
-
-
- Marker
- false
-
-
-
- Rømskog
- false
-
-
-
- Trøgstad
- false
-
-
-
- Spydeberg
- false
-
-
-
- Askim
- false
-
-
-
- Eidsberg
- false
-
-
-
- Skiptvet
- false
-
-
-
- Rakkestad
- false
-
-
-
- Råde
- false
-
-
-
- Rygge
- false
-
-
-
- Våler
- false
-
-
-
- Hobøl
- false
-
-
-
- Vestby
- false
-
-
-
- Ski
- false
-
-
-
- Ås
- false
-
-
-
- Frogn
- false
-
-
-
- Nesodden
- false
-
-
-
- Oppegård
- false
-
-
-
- Aurskog-Høland
- false
-
-
-
- Sørum
- false
-
-
-
- Fet
- false
-
-
-
- Rælingen
- false
-
-
-
- Enebakk
- false
-
-
-
- Lørenskog
- false
-
-
-
- Skedsmo
- false
-
-
-
- Nittedal
- false
-
-
-
- Gjerdrum
- false
-
-
-
- Ullensaker
- false
-
-
-
- Nes i Øst-Viken
- false
-
-
-
- Eidsvoll
- false
-
-
-
- Nannestad
- false
-
-
-
- Hurdal
- false
-
-
-
- Oslo - Gamle Oslo
- false
-
-
-
- Oslo - Grünerløkka
- false
-
-
-
- Oslo - Sagene
- false
-
-
-
- Oslo - St.Hanshaugen
- false
-
-
-
- Oslo - Frogner
- false
-
-
-
- Oslo - Ullern
- false
-
-
-
- Oslo - Vestre Aker
- false
-
-
-
- Oslo - Nordre Aker
- false
-
-
-
- Oslo - Bjerke
- false
-
-
-
- Oslo - Grorud
- false
-
-
-
- Oslo - Stovner
- false
-
-
-
- Oslo - Alna
- false
-
-
-
- Oslo - Østensjø
- false
-
-
-
- Oslo - Nordstrand
- false
-
-
-
- Oslo - Søndre Nordstrand
- false
-
-
-
- Oslo - Sentrum
- false
-
-
-
- Horten
- false
-
-
-
- Tønsberg
- false
-
-
-
- Sandefjord
- false
-
-
-
- Svelvik
- false
-
-
-
- Larvik
- false
-
-
-
- Sande i Vest-Viken
- false
-
-
-
- Holmestrand
- false
-
-
-
- Re
- false
-
-
-
- Færder
- false
-
-
-
- Porsgrunn
- false
-
-
-
- Skien
- false
-
-
-
- Notodden
- false
-
-
-
- Siljan
- false
-
-
-
- Bamble
- false
-
-
-
- Kragerø
- false
-
-
-
- Drangedal
- false
-
-
-
- Nome
- false
-
-
-
- Bø i Telemark
- false
-
-
-
- Sauherad
- false
-
-
-
- Tinn
- false
-
-
-
- Hjartdal
- false
-
-
-
- Seljord
- false
-
-
-
- Kviteseid
- false
-
-
-
- Nissedal
- false
-
-
-
- Fyresdal
- false
-
-
-
- Tokke
- false
-
-
-
- Vinje
- false
-
-
- All Municipalities in Norway
- Kommuner
- false
-
diff --git a/force-app/main/default/globalValueSets/PhysicalArrangements.globalValueSet-meta.xml b/force-app/main/default/globalValueSets/PhysicalArrangements.globalValueSet-meta.xml
deleted file mode 100644
index 6aa31fe86..000000000
--- a/force-app/main/default/globalValueSets/PhysicalArrangements.globalValueSet-meta.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
- Varierte arbeidsstillinger
- false
-
-
-
- Ergonomiske tilpasninger
- false
-
-
-
- Unngå tunge løft
- false
-
-
-
- Hørsel
- false
-
-
-
- Syn
- false
-
-
-
- Andre former for fysisk tilrettelegging
- false
-
-
- Fysisk tilrettelegging
- false
-
diff --git a/force-app/main/default/globalValueSets/WorkEnvironment.globalValueSet-meta.xml b/force-app/main/default/globalValueSets/WorkEnvironment.globalValueSet-meta.xml
deleted file mode 100644
index a5128d555..000000000
--- a/force-app/main/default/globalValueSets/WorkEnvironment.globalValueSet-meta.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- Tilrettelagt opplæring
- false
-
-
-
- Tilrettelagte arbeidsoppgaver
- false
-
-
-
- Mentor
- false
-
-
-
- Andre former for tilrettelegging
- false
-
-
- Arbeidsmiljø
- false
-
diff --git a/force-app/main/default/globalValueSets/WorkTime.globalValueSet-meta.xml b/force-app/main/default/globalValueSets/WorkTime.globalValueSet-meta.xml
deleted file mode 100644
index 5b6a35f31..000000000
--- a/force-app/main/default/globalValueSets/WorkTime.globalValueSet-meta.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- Heltid
- false
-
-
-
- Jobb hver ukedag, men ikke hele dager
- false
-
-
-
- Borte fra jobb til faste dager eller tider
- false
-
-
-
- Fleksible arbeidsdager
- false
-
-
- Arbeidstid
- false
-
diff --git a/force-app/main/default/objects/Contact/fields/InvalidEmail__c.field-meta.xml b/force-app/main/default/objects/Contact/fields/InvalidEmail__c.field-meta.xml
deleted file mode 100644
index aad66d560..000000000
--- a/force-app/main/default/objects/Contact/fields/InvalidEmail__c.field-meta.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
- InvalidEmail__c
- Hvis noen skriver en ugyldig e-postadresse på nav.no så havner den her.
-
-Gyldige tegn:
-- A-Z
-- 0-9
-- !#$%&'*+-/=?^_`{|}~.
-
-Ugyldig:
-- Ugyldig format (navn@domene.no)
-- ÆØÅ
-- To punktum etter hverandre
-- To krøllalfa (@)
-- Mellomrom
- false
- Hvis noen skriver en ugyldig e-postadresse på nav.no så havner den her.
-
- 255
- false
- false
- Text
- false
-
diff --git a/force-app/main/default/objects/Contact/fields/TAG_Informed__c.field-meta.xml b/force-app/main/default/objects/Contact/fields/TAG_Informed__c.field-meta.xml
deleted file mode 100644
index 191eff060..000000000
--- a/force-app/main/default/objects/Contact/fields/TAG_Informed__c.field-meta.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
- TAG_Informed__c
- false
- false
- Personen er informert om at vi registrerer opplysninger om hen og kan knytte aktiviteter til hen. Personen kan be om at disse opplysningene rettes opp eller slettes ved en senere anledning.
-
- false
- Checkbox
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/CustomOpportunity__c.object-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/CustomOpportunity__c.object-meta.xml
deleted file mode 100644
index d414f92b2..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/CustomOpportunity__c.object-meta.xml
+++ /dev/null
@@ -1,181 +0,0 @@
-
-
-
- Accept
- Default
-
-
- Accept
- Large
- Default
-
-
- Accept
- Small
- Default
-
-
- CancelEdit
- Default
-
-
- CancelEdit
- Large
- Default
-
-
- CancelEdit
- Small
- Default
-
-
- Clone
- Default
-
-
- Clone
- Large
- Default
-
-
- Clone
- Small
- Default
-
-
- Delete
- Default
-
-
- Delete
- Large
- Default
-
-
- Delete
- Small
- Default
-
-
- Edit
- Default
-
-
- Edit
- Large
- Default
-
-
- Edit
- Small
- Default
-
-
- List
- Default
-
-
- List
- Large
- Default
-
-
- List
- Small
- Default
-
-
- New
- Default
-
-
- New
- Large
- Default
-
-
- New
- Small
- Default
-
-
- SaveEdit
- Default
-
-
- SaveEdit
- Large
- Default
-
-
- SaveEdit
- Small
- Default
-
-
- Tab
- Default
-
-
- Tab
- Large
- Default
-
-
- Tab
- Small
- Default
-
-
- View
- Action override updated by Lightning App Builder during activation.
- TAG_Opportunity_Record_Page
- Large
- false
- Flexipage
-
-
- View
- Action override updated by Lightning App Builder during activation.
- TAG_Opportunity_Record_Page
- Small
- false
- Flexipage
-
-
- View
- Default
-
- false
- Simple_Opportunity
- Deployed
- true
- true
- false
- true
- false
- true
- true
- true
- true
- Private
-
-
- {0000}
-
- false
- AutoNumber
-
- Custom Opportunities
- false
-
- Account__c
- TAG_OrganizationNameFromForm__c
- InquiryCategory__c
- InclusionStage__c
- OWNER.FIRST_NAME
- OWNER.LAST_NAME
-
- ReadWrite
- Public
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/compactLayouts/OpportunityCompactLayout.compactLayout-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/compactLayouts/OpportunityCompactLayout.compactLayout-meta.xml
deleted file mode 100644
index ee1a61ec2..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/compactLayouts/OpportunityCompactLayout.compactLayout-meta.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- OpportunityCompactLayout
- InquiryCategory__c
- Account__c
- InclusionStage__c
- OwnerId
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/compactLayouts/Simple_Opportunity.compactLayout-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/compactLayouts/Simple_Opportunity.compactLayout-meta.xml
deleted file mode 100644
index 96e6d9812..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/compactLayouts/Simple_Opportunity.compactLayout-meta.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- Simple_Opportunity
- Account__c
- InclusionStage__c
- TAG_NavUnit__c
- OwnerId
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/Account__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/Account__c.field-meta.xml
deleted file mode 100644
index 5faa03ff7..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/Account__c.field-meta.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
- Account__c
- SetNull
- Arbeidsgiver
- false
- Virksomheten som har muligheten.
-
-
- true
-
- Account.IsPersonAccount
- equals
- False
-
- false
-
- Account
- Custom Opportunities
- Inkluderingsmuligheter
- false
- false
- false
- Lookup
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/BasicSkills__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/BasicSkills__c.field-meta.xml
deleted file mode 100644
index bb4e0528c..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/BasicSkills__c.field-meta.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- BasicSkills__c
- Grunnleggende ferdigheter
- false
-
- false
- false
- false
- MultiselectPicklist
-
- true
- BasicSkills
-
- 4
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/ClosingReason__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/ClosingReason__c.field-meta.xml
deleted file mode 100644
index f93056460..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/ClosingReason__c.field-meta.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
- ClosingReason__c
- false
-
- false
- false
- false
- Picklist
-
- true
-
- false
-
- Kandidat godkjent
- false
-
-
-
- Kandidat ikke godkjent
- false
-
-
-
- leveranse avsluttet
- false
-
-
-
- Selvbetjening
- false
-
-
-
- Ikke Aktuell for IA-Leveranse
- false
-
-
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/Contact__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/Contact__c.field-meta.xml
deleted file mode 100644
index 44502d0c8..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/Contact__c.field-meta.xml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
- Contact__c
- SetNull
- false
-
-
- true
-
- Contact.IsPersonAccount
- notEqual
- True
-
- false
-
- Contact
- Custom Opportunities
- Inkluderingsmuligheter
- false
- false
- false
- Lookup
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/EmployerNeeds__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/EmployerNeeds__c.field-meta.xml
deleted file mode 100644
index 7b8a67ffc..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/EmployerNeeds__c.field-meta.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
- EmployerNeeds__c
- false
-
- false
- false
- false
- MultiselectPicklist
-
- true
-
- false
-
- Lønnstilskudd
- false
-
-
-
- Inkluderingstilskudd
- false
-
-
-
- Mentor
- false
-
-
-
- Arbeidstrening
- false
-
-
-
- Vil bidra
- false
-
-
-
-
- 4
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/InclusionStage__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/InclusionStage__c.field-meta.xml
deleted file mode 100644
index 48ede1572..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/InclusionStage__c.field-meta.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
- InclusionStage__c
- Steg
- false
-
- true
- true
- false
- Picklist
-
-
- false
-
- Ny henvendelse
- true
-
-
-
- Avklaring
- false
-
-
-
- Ferdig Avklart
- false
-
-
-
- Avsluttet
- false
-
-
-
- Aktiv
- false
-
-
-
- Ansvarlig tildelt
- false
-
-
-
- Virksomhet kontaktet
- false
-
-
-
- Finn kandidat
- false
-
-
-
- Kandidat presentert
- false
-
-
-
- Plan
- false
-
-
-
- Gjennomføring
- false
-
-
-
- Evaluering
- false
-
-
-
- TAG_IALukket
- false
-
-
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/InquiryCategory__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/InquiryCategory__c.field-meta.xml
deleted file mode 100644
index eca1f176b..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/InquiryCategory__c.field-meta.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
- InquiryCategory__c
- Henvendelseskategori
- false
-
- false
- false
- false
- Picklist
-
-
- false
-
- Skal ansette
- false
-
-
-
- Tiltak
- false
-
-
-
- Forebygge sykefravær
- false
-
-
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/Inquiry_Category_2__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/Inquiry_Category_2__c.field-meta.xml
deleted file mode 100644
index 5e8250914..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/Inquiry_Category_2__c.field-meta.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- Inquiry_Category_2__c
- Added field number 2, as the inq. cat original field reflects fields on contactform. In order not to have to change on contactform, this field is used. On Change here, inq. cat field is updated
- false
-
- false
- false
- false
- Picklist
-
- true
-
- false
-
- Skal ansette
- false
-
-
-
- Tiltak
- false
-
-
-
- Forebygge sykefravær
- false
-
-
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/Municipality__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/Municipality__c.field-meta.xml
deleted file mode 100644
index cf23024e3..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/Municipality__c.field-meta.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- Municipality__c
- Kommune
- false
-
- false
- false
- false
- Picklist
-
- true
- Municipalities
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/PhysicalArrangements__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/PhysicalArrangements__c.field-meta.xml
deleted file mode 100644
index 4758c2db0..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/PhysicalArrangements__c.field-meta.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- PhysicalArrangements__c
- Fysisk tilrettelegging
- false
-
- false
- false
- false
- MultiselectPicklist
-
- true
- PhysicalArrangements
-
- 4
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/Result__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/Result__c.field-meta.xml
deleted file mode 100644
index 1206c0bff..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/Result__c.field-meta.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
- Result__c
- false
-
- false
- true
- false
- Picklist
-
- InclusionStage__c
- true
-
- false
-
- Direktemeldt stilling
- false
-
-
-
- Arbeidstrening
- false
-
-
-
- Andre tiltak
- false
-
-
-
- Skal rekruttere selv
- false
-
-
-
- Ikke aktuelt
- false
-
-
-
- NAV skal bistå
- false
- false
-
-
-
- Skal ansette selv
- false
- false
-
-
-
-
- Ferdig Avklart
- Avsluttet
- Direktemeldt stilling
-
-
- Ferdig Avklart
- Avsluttet
- Arbeidstrening
-
-
- Ferdig Avklart
- Avsluttet
- Andre tiltak
-
-
- Ferdig Avklart
- Avsluttet
- Skal rekruttere selv
-
-
- Ferdig Avklart
- Avsluttet
- Ikke aktuelt
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/Source__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/Source__c.field-meta.xml
deleted file mode 100644
index 09b46dc74..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/Source__c.field-meta.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
- Source__c
- Legg inn hvor henvendelsen kom fra
- false
- Hvor muligheten kommer fra. Innkomne henvendelser fra nav.no markeres med 'Kontaktskjema'.
-
- false
- true
- false
- Picklist
-
- true
-
- false
-
- Internt tips
- false
-
-
-
- Kontaktsenteret
- false
-
-
-
- Kontaktskjema
- false
-
-
-
- Messe
- false
-
-
-
- Utgående henvendelse
- false
-
-
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_CreateContract__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_CreateContract__c.field-meta.xml
deleted file mode 100644
index d0adc39f8..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_CreateContract__c.field-meta.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
- TAG_CreateContract__c
- Ønsker du at det skal opprettes en avtale fra denne muligheten?
- false
- Ønsker du at det skal opprettes en avtale fra denne muligheten?
-
- false
- false
- false
- Picklist
-
- InclusionStage__c
- true
-
- false
-
- Ja
- false
-
-
-
- Nei
- false
-
-
-
-
- Avsluttet
- Ja
-
-
- Avsluttet
- Nei
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_IAClarification__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_IAClarification__c.field-meta.xml
deleted file mode 100644
index 1a7790c13..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_IAClarification__c.field-meta.xml
+++ /dev/null
@@ -1,28 +0,0 @@
-
-
- TAG_IAClarification__c
- Brukt for å avsjekk at virksomhet er klar for neste steg i IA Path, skal legges til valideringsregel
- false
-
- false
- false
- false
- MultiselectPicklist
-
- true
-
- false
-
- Tillitsvalgt involvert
- false
-
-
-
- Eget forarbeid gjennomført
- false
-
-
-
-
- 3
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_IAProcess_result__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_IAProcess_result__c.field-meta.xml
deleted file mode 100644
index e37e688ab..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_IAProcess_result__c.field-meta.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- TAG_IAProcess_result__c
- Dependent field on close/end IA Process
- false
-
- false
- false
- false
- Picklist
-
- true
-
- false
-
- Ferdig
- false
-
-
-
- Selvbetjening
- false
-
-
-
- Ikke aktuelt
- false
-
-
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_IAService__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_IAService__c.field-meta.xml
deleted file mode 100644
index e5e7e4ac5..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_IAService__c.field-meta.xml
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
- TAG_IAService__c
- Describes which IA service is to be delivered
- false
-
- false
- false
- false
- Picklist
-
- true
-
- false
-
- Systematisk sykefraværsarbeid
- false
-
-
-
- Forebyggende arbeidsmiljøarbeid
- false
-
-
-
- HelseIArbeid
- false
-
-
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_NavUnit__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_NavUnit__c.field-meta.xml
deleted file mode 100644
index eee34d6d0..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_NavUnit__c.field-meta.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- TAG_NavUnit__c
- SetNull
- false
-
- NavUnit__c
- Custom Opportunities
- Custom_Opportunities
- false
- true
- false
- Lookup
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_OrganizationNameFromForm__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_OrganizationNameFromForm__c.field-meta.xml
deleted file mode 100644
index d91b7c968..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/TAG_OrganizationNameFromForm__c.field-meta.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- TAG_OrganizationNameFromForm__c
- Organisasjonsnavnet fra kontaktskjemaet. Kan brukes for å manuelt mappe virksomhet til konto hvis arbeidsgiver ikke har skrevet inn organisasjonsnummer.
- false
- Organisasjonsnavnet fra kontaktskjemaet. I tilfelle arbeidsgiveren ikke skrev inn organisasjonsnummeret kan du finne riktig virksomhet ved å søke opp navnet.
-
- 255
- false
- false
- false
- Text
- false
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/WorkEnvironment__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/WorkEnvironment__c.field-meta.xml
deleted file mode 100644
index 526af3a54..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/WorkEnvironment__c.field-meta.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- WorkEnvironment__c
- Arbeidsmiljø
- false
-
- false
- false
- false
- MultiselectPicklist
-
- true
- WorkEnvironment
-
- 4
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/fields/WorkTime__c.field-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/fields/WorkTime__c.field-meta.xml
deleted file mode 100644
index 303d202e2..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/fields/WorkTime__c.field-meta.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
- WorkTime__c
- Arbeidstid
- false
-
- false
- false
- false
- MultiselectPicklist
-
- true
- WorkTime
-
- 4
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/recordTypes/Inclusion.recordType-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/recordTypes/Inclusion.recordType-meta.xml
deleted file mode 100644
index fdce07d38..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/recordTypes/Inclusion.recordType-meta.xml
+++ /dev/null
@@ -1,2080 +0,0 @@
-
-
- Inclusion
- true
- Simple_Opportunity
- En mulighet for inkludering
-
-
- BasicSkills__c
-
- Andre utfordringer
- false
-
-
- Lese norsk
- false
-
-
- Regning og tallforståelse
- false
-
-
- Skrive norsk
- false
-
-
- Snakke norsk
- false
-
-
-
- ClosingReason__c
-
- Kandidat godkjent
- false
-
-
- Kandidat ikke godkjent
- false
-
-
-
- EmployerNeeds__c
-
- Arbeidstrening
- false
-
-
- Inkluderingstilskudd
- false
-
-
- Lønnstilskudd
- false
-
-
- Mentor
- false
-
-
- Vil bidra
- false
-
-
-
- InclusionStage__c
-
- Avklaring
- false
-
-
- Avsluttet
- false
-
-
- Ferdig Avklart
- false
-
-
- Ny henvendelse
- true
-
-
-
- InquiryCategory__c
-
- Forebygge sykefravær
- false
-
-
- Skal ansette
- false
-
-
- Tiltak
- false
-
-
-
- Inquiry_Category_2__c
-
- Forebygge sykefravær
- false
-
-
- Skal ansette
- false
-
-
- Tiltak
- false
-
-
-
- Municipality__c
-
- Agdenes
- false
-
-
- Alstahaug
- false
-
-
- Alta
- false
-
-
- Alvdal
- false
-
-
- Andøy
- false
-
-
- Aremark
- false
-
-
- Arendal
- false
-
-
- Asker
- false
-
-
- Askim
- false
-
-
- Askvoll
- false
-
-
- Askøy
- false
-
-
- Audnedal
- false
-
-
- Aukra
- false
-
-
- Aure
- false
-
-
- Aurland
- false
-
-
- Aurskog-Høland
- false
-
-
- Austevoll
- false
-
-
- Austrheim
- false
-
-
- Averøy
- false
-
-
- Balestrand
- false
-
-
- Ballangen
- false
-
-
- Balsfjord
- false
-
-
- Bamble
- false
-
-
- Bardu
- false
-
-
- Beiarn
- false
-
-
- Berg
- false
-
-
- Bergen - Arna
- false
-
-
- Bergen - Bergenhus
- false
-
-
- Bergen - Fana
- false
-
-
- Bergen - Fyllingsdalen
- false
-
-
- Bergen - Laksevåg
- false
-
-
- Bergen - Ytrebygda
- false
-
-
- Bergen - Årstad
- false
-
-
- Bergen - Åsane
- false
-
-
- Berlevåg
- false
-
-
- Bindal
- false
-
-
- Birkenes
- false
-
-
- Bjerkreim
- false
-
-
- Bjugn
- false
-
-
- Bodø
- false
-
-
- Bokn
- false
-
-
- Bremanger
- false
-
-
- Brønnøy
- false
-
-
- Bygland
- false
-
-
- Bykle
- false
-
-
- Båtsfjord
- false
-
-
- Bærum
- false
-
-
- Bø
- false
-
-
- Bø i Telemark
- false
-
-
- Bømlo
- false
-
-
- Deatnu - Tana
- false
-
-
- Divtasvuodna %E2%80%93 Tysfjord
- false
-
-
- Dovre
- false
-
-
- Drammen
- false
-
-
- Drangedal
- false
-
-
- Dyrøy
- false
-
-
- Dønna
- false
-
-
- Eid
- false
-
-
- Eide
- false
-
-
- Eidfjord
- false
-
-
- Eidsberg
- false
-
-
- Eidskog
- false
-
-
- Eidsvoll
- false
-
-
- Eigersund
- false
-
-
- Elverum
- false
-
-
- Enebakk
- false
-
-
- Engerdal
- false
-
-
- Etne
- false
-
-
- Etnedal
- false
-
-
- Evenes
- false
-
-
- Evje og Hornnes
- false
-
-
- Farsund
- false
-
-
- Fauske %E2%80%93 Fuossko
- false
-
-
- Fedje
- false
-
-
- Fet
- false
-
-
- Finnøy
- false
-
-
- Fitjar
- false
-
-
- Fjaler
- false
-
-
- Fjell
- false
-
-
- Flakstad
- false
-
-
- Flatanger
- false
-
-
- Flekkefjord
- false
-
-
- Flesberg
- false
-
-
- Flora
- false
-
-
- Flå
- false
-
-
- Folldal
- false
-
-
- Forsand
- false
-
-
- Fosnes
- false
-
-
- Fredrikstad
- false
-
-
- Frogn
- false
-
-
- Froland
- false
-
-
- Frosta
- false
-
-
- Fræna
- false
-
-
- Frøya
- false
-
-
- Fusa
- false
-
-
- Fyresdal
- false
-
-
- Færder
- false
-
-
- Førde
- false
-
-
- Gamvik
- false
-
-
- Gaular
- false
-
-
- Gausdal
- false
-
-
- Gildeskål
- false
-
-
- Giske
- false
-
-
- Gjemnes
- false
-
-
- Gjerdrum
- false
-
-
- Gjerstad
- false
-
-
- Gjesdal
- false
-
-
- Gjøvik
- false
-
-
- Gloppen
- false
-
-
- Gol
- false
-
-
- Gran
- false
-
-
- Grane
- false
-
-
- Granvin
- false
-
-
- Gratangen
- false
-
-
- Grimstad
- false
-
-
- Grong
- false
-
-
- Grue
- false
-
-
- Gulen
- false
-
-
- Guovdageaidnu %E2%80%93 Kautokeino
- false
-
-
- Gáivuotna %E2%80%93 Kåfjord %E2%80%93 Kaivuono
- false
-
-
- Hadsel
- false
-
-
- Halden
- false
-
-
- Halsa
- false
-
-
- Hamar
- false
-
-
- Hamarøy
- false
-
-
- Hammerfest
- false
-
-
- Haram
- false
-
-
- Hareid
- false
-
-
- Harstad
- false
-
-
- Hasvik
- false
-
-
- Hattfjelldal
- false
-
-
- Haugesund
- false
-
-
- Hemne
- false
-
-
- Hemnes
- false
-
-
- Hemsedal
- false
-
-
- Herøy
- false
-
-
- Herøy i Møre
- false
-
-
- Hitra
- false
-
-
- Hjartdal
- false
-
-
- Hjelmeland
- false
-
-
- Hobøl
- false
-
-
- Hol
- false
-
-
- Hole
- false
-
-
- Holmestrand
- false
-
-
- Holtålen
- false
-
-
- Hornindal
- false
-
-
- Horten
- false
-
-
- Hurdal
- false
-
-
- Hurum
- false
-
-
- Hvaler
- false
-
-
- Hyllestad
- false
-
-
- Hå
- false
-
-
- Hægebostad
- false
-
-
- Høyanger
- false
-
-
- Høylandet
- false
-
-
- Ibestad
- false
-
-
- Inderøy
- false
-
-
- Indre Fosen
- false
-
-
- Iveland
- false
-
-
- Jevnaker
- false
-
-
- Jondal
- false
-
-
- Jølster
- false
-
-
- Karlsøy
- false
-
-
- Karmøy
- false
-
-
- Klepp
- false
-
-
- Klæbu
- false
-
-
- Kongsberg
- false
-
-
- Kongsvinger
- false
-
-
- Kragerø
- false
-
-
- Kristiansand
- false
-
-
- Kristiansund
- false
-
-
- Krødsherad
- false
-
-
- Kvalsund
- false
-
-
- Kvam
- false
-
-
- Kvinesdal
- false
-
-
- Kvinnherad
- false
-
-
- Kviteseid
- false
-
-
- Kvitsøy
- false
-
-
- Kvæfjord
- false
-
-
- Kvænangen
- false
-
-
- Kárášjohka %E2%80%93 Karasjok
- false
-
-
- Larvik
- false
-
-
- Lebesby
- false
-
-
- Leikanger
- false
-
-
- Leirfjord
- false
-
-
- Leka
- false
-
-
- Lenvik
- false
-
-
- Lesja
- false
-
-
- Levanger
- false
-
-
- Lier
- false
-
-
- Lierne
- false
-
-
- Lillehammer
- false
-
-
- Lillesand
- false
-
-
- Lindesnes
- false
-
-
- Lindås
- false
-
-
- Loabák %E2%80%93 Lavangen
- false
-
-
- Lom
- false
-
-
- Loppa
- false
-
-
- Lund
- false
-
-
- Lunner
- false
-
-
- Lurøy
- false
-
-
- Luster
- false
-
-
- Lyngdal
- false
-
-
- Lyngen
- false
-
-
- Lærdal
- false
-
-
- Lødingen
- false
-
-
- Lørenskog
- false
-
-
- Løten
- false
-
-
- Malvik
- false
-
-
- Mandal
- false
-
-
- Marker
- false
-
-
- Marnardal
- false
-
-
- Masfjorden
- false
-
-
- Meland
- false
-
-
- Meldal
- false
-
-
- Melhus
- false
-
-
- Meløy
- false
-
-
- Meråker
- false
-
-
- Midsund
- false
-
-
- Midtre Gauldal
- false
-
-
- Modalen
- false
-
-
- Modum
- false
-
-
- Molde
- false
-
-
- Moskenes
- false
-
-
- Moss
- false
-
-
- Målselv
- false
-
-
- Måsøy
- false
-
-
- Namdalseid
- false
-
-
- Namsos
- false
-
-
- Namsskogan
- false
-
-
- Nannestad
- false
-
-
- Narvik
- false
-
-
- Naustdal
- false
-
-
- Nedre Eiker
- false
-
-
- Nes
- false
-
-
- Nes i Øst-Viken
- false
-
-
- Nesna
- false
-
-
- Nesodden
- false
-
-
- Nesset
- false
-
-
- Nissedal
- false
-
-
- Nittedal
- false
-
-
- Nome
- false
-
-
- Nord-Aurdal
- false
-
-
- Nord-Fron
- false
-
-
- Nord-Odal
- false
-
-
- Norddal
- false
-
-
- Nordkapp
- false
-
-
- Nordre Land
- false
-
-
- Nordreisa - Ráisa - Raisi
- false
-
-
- Nore og Uvdal
- false
-
-
- Notodden
- false
-
-
- Nærøy
- false
-
-
- Odda
- false
-
-
- Oppdal
- false
-
-
- Oppegård
- false
-
-
- Orkdal
- false
-
-
- Os
- false
-
-
- Os i Trøndelag
- false
-
-
- Osen
- false
-
-
- Oslo - Alna
- false
-
-
- Oslo - Bjerke
- false
-
-
- Oslo - Frogner
- false
-
-
- Oslo - Gamle Oslo
- false
-
-
- Oslo - Grorud
- false
-
-
- Oslo - Grünerløkka
- false
-
-
- Oslo - Nordre Aker
- false
-
-
- Oslo - Nordstrand
- false
-
-
- Oslo - Sagene
- false
-
-
- Oslo - Sentrum
- false
-
-
- Oslo - St%2EHanshaugen
- false
-
-
- Oslo - Stovner
- false
-
-
- Oslo - Søndre Nordstrand
- false
-
-
- Oslo - Ullern
- false
-
-
- Oslo - Vestre Aker
- false
-
-
- Oslo - Østensjø
- false
-
-
- Osterøy
- false
-
-
- Overhalla
- false
-
-
- Porsanger %E2%80%93 Porsáŋgu %E2%80%93 Porsanki
- false
-
-
- Porsgrunn
- false
-
-
- Raarvikhe %E2%80%93 Røyrvik
- false
-
-
- Radøy
- false
-
-
- Rakkestad
- false
-
-
- Rana
- false
-
-
- Randaberg
- false
-
-
- Rauma
- false
-
-
- Re
- false
-
-
- Rendalen
- false
-
-
- Rennebu
- false
-
-
- Rennesøy
- false
-
-
- Rindal
- false
-
-
- Ringebu
- false
-
-
- Ringerike
- false
-
-
- Ringsaker
- false
-
-
- Risør
- false
-
-
- Roan
- false
-
-
- Rollag
- false
-
-
- Rygge
- false
-
-
- Råde
- false
-
-
- Rælingen
- false
-
-
- Rødøy
- false
-
-
- Rømskog
- false
-
-
- Røros
- false
-
-
- Røst
- false
-
-
- Røyken
- false
-
-
- Salangen
- false
-
-
- Saltdal
- false
-
-
- Samnanger
- false
-
-
- Sande
- false
-
-
- Sande i Vest-Viken
- false
-
-
- Sandefjord
- false
-
-
- Sandnes
- false
-
-
- Sandøy
- false
-
-
- Sarpsborg
- false
-
-
- Sauda
- false
-
-
- Sauherad
- false
-
-
- Sel
- false
-
-
- Selbu
- false
-
-
- Selje
- false
-
-
- Seljord
- false
-
-
- Sigdal
- false
-
-
- Siljan
- false
-
-
- Sirdal
- false
-
-
- Skaun
- false
-
-
- Skedsmo
- false
-
-
- Ski
- false
-
-
- Skien
- false
-
-
- Skiptvet
- false
-
-
- Skjervøy
- false
-
-
- Skjåk
- false
-
-
- Skodje
- false
-
-
- Skånland
- false
-
-
- Smøla
- false
-
-
- Snillfjord
- false
-
-
- Snåase-Snåsa
- false
-
-
- Sogndal
- false
-
-
- Sokndal
- false
-
-
- Sola
- false
-
-
- Solund
- false
-
-
- Songdalen
- false
-
-
- Sortland
- false
-
-
- Spydeberg
- false
-
-
- Stange
- false
-
-
- Stavanger - Eiganes og Våland
- false
-
-
- Stavanger - Hillevåg
- false
-
-
- Stavanger - Hinna
- false
-
-
- Stavanger - Hundvåg
- false
-
-
- Stavanger - Madla
- false
-
-
- Stavanger - Storhaug
- false
-
-
- Stavanger - Tasta
- false
-
-
- Steigen
- false
-
-
- Steinkjer
- false
-
-
- Stjørdal
- false
-
-
- Stor-Elvdal
- false
-
-
- Stord
- false
-
-
- Stordal
- false
-
-
- Storfjord %E2%80%93 Omasvuotna %E2%80%93 Omasvuono
- false
-
-
- Strand
- false
-
-
- Stranda
- false
-
-
- Stryn
- false
-
-
- Sula
- false
-
-
- Suldal
- false
-
-
- Sund
- false
-
-
- Sunndal
- false
-
-
- Surnadal
- false
-
-
- Sveio
- false
-
-
- Svelvik
- false
-
-
- Sykkylven
- false
-
-
- Søgne
- false
-
-
- Sømna
- false
-
-
- Søndre Land
- false
-
-
- Sør-Aurdal
- false
-
-
- Sør-Fron
- false
-
-
- Sør-Odal
- false
-
-
- Sør-Varanger
- false
-
-
- Sørfold
- false
-
-
- Sørreisa
- false
-
-
- Sørum
- false
-
-
- Time
- false
-
-
- Tingvoll
- false
-
-
- Tinn
- false
-
-
- Tjeldsund
- false
-
-
- Tokke
- false
-
-
- Tolga
- false
-
-
- Torsken
- false
-
-
- Tranøy
- false
-
-
- Tromsø
- false
-
-
- Trondheim - Heimdal
- false
-
-
- Trondheim - Lerkendal
- false
-
-
- Trondheim - Midtbyen
- false
-
-
- Trondheim - Østbyen
- false
-
-
- Trysil
- false
-
-
- Træna
- false
-
-
- Trøgstad
- false
-
-
- Tvedestrand
- false
-
-
- Tydal
- false
-
-
- Tynset
- false
-
-
- Tysnes
- false
-
-
- Tysvær
- false
-
-
- Tønsberg
- false
-
-
- Ullensaker
- false
-
-
- Ullensvang
- false
-
-
- Ulstein
- false
-
-
- Ulvik
- false
-
-
- Unjárga %E2%80%93 Nesseby
- false
-
-
- Utsira
- false
-
-
- Vadsø
- false
-
-
- Vaksdal
- false
-
-
- Valle
- false
-
-
- Vang
- false
-
-
- Vanylven
- false
-
-
- Vardø
- false
-
-
- Vefsn
- false
-
-
- Vega
- false
-
-
- Vegårshei
- false
-
-
- Vennesla
- false
-
-
- Verdal
- false
-
-
- Verran
- false
-
-
- Vestby
- false
-
-
- Vestnes
- false
-
-
- Vestre Slidre
- false
-
-
- Vestre Toten
- false
-
-
- Vestvågøy
- false
-
-
- Vevelstad
- false
-
-
- Vik
- false
-
-
- Vikna
- false
-
-
- Vindafjord
- false
-
-
- Vinje
- false
-
-
- Volda
- false
-
-
- Voss
- false
-
-
- Vågan
- false
-
-
- Vågsøy
- false
-
-
- Vågå
- false
-
-
- Våler
- false
-
-
- Våler i Innlandet
- false
-
-
- Værøy
- false
-
-
- Åfjord
- false
-
-
- Ål
- false
-
-
- Ålesund
- false
-
-
- Åmli
- false
-
-
- Åmot
- false
-
-
- Årdal
- false
-
-
- Ås
- false
-
-
- Åseral
- false
-
-
- Åsnes
- false
-
-
- Øksnes
- false
-
-
- Ørland
- false
-
-
- Ørskog
- false
-
-
- Ørsta
- false
-
-
- Østre Toten
- false
-
-
- Øvre Eiker
- false
-
-
- Øyer
- false
-
-
- Øygarden
- false
-
-
- Øystre Slidre
- false
-
-
-
- PhysicalArrangements__c
-
- Andre former for fysisk tilrettelegging
- false
-
-
- Ergonomiske tilpasninger
- false
-
-
- Hørsel
- false
-
-
- Syn
- false
-
-
- Unngå tunge løft
- false
-
-
- Varierte arbeidsstillinger
- false
-
-
-
- Result__c
-
- Andre tiltak
- false
-
-
- Arbeidstrening
- false
-
-
- Direktemeldt stilling
- false
-
-
- Ikke aktuelt
- false
-
-
- Skal rekruttere selv
- false
-
-
-
- Source__c
-
- Internt tips
- true
-
-
- Kontaktskjema
- false
-
-
- Utgående henvendelse
- false
-
-
-
- TAG_CreateContract__c
-
- Ja
- false
-
-
-
- TAG_IAClarification__c
-
- Eget forarbeid gjennomført
- false
-
-
- Tillitsvalgt involvert
- false
-
-
-
- TAG_IAProcess_result__c
-
- Ferdig
- false
-
-
- Ikke aktuelt
- false
-
-
- Selvbetjening
- false
-
-
-
- TAG_IAService__c
-
- Forebyggende arbeidsmiljøarbeid
- false
-
-
- HelseIArbeid
- false
-
-
- Systematisk sykefraværsarbeid
- false
-
-
-
- WorkEnvironment__c
-
- Andre former for tilrettelegging
- false
-
-
- Mentor
- false
-
-
- Tilrettelagt opplæring
- false
-
-
- Tilrettelagte arbeidsoppgaver
- false
-
-
-
- WorkTime__c
-
- Borte fra jobb til faste dager eller tider
- false
-
-
- Fleksible arbeidsdager
- false
-
-
- Heltid
- false
-
-
- Jobb hver ukedag%2C men ikke hele dager
- false
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/recordTypes/Inclusive_Employment.recordType-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/recordTypes/Inclusive_Employment.recordType-meta.xml
deleted file mode 100644
index 6e921904b..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/recordTypes/Inclusive_Employment.recordType-meta.xml
+++ /dev/null
@@ -1,2084 +0,0 @@
-
-
- Inclusive_Employment
- true
- OpportunityCompactLayout
- IA - prosess
-
-
- BasicSkills__c
-
- Andre utfordringer
- false
-
-
- Lese norsk
- false
-
-
- Regning og tallforståelse
- false
-
-
- Skrive norsk
- false
-
-
- Snakke norsk
- false
-
-
-
- ClosingReason__c
-
- Ikke Aktuell for IA-Leveranse
- false
-
-
- Selvbetjening
- false
-
-
- leveranse avsluttet
- false
-
-
-
- EmployerNeeds__c
-
- Arbeidstrening
- false
-
-
- Inkluderingstilskudd
- false
-
-
- Lønnstilskudd
- false
-
-
- Mentor
- false
-
-
- Vil bidra
- false
-
-
-
- InclusionStage__c
-
- Avklaring
- false
-
-
- Avsluttet
- false
-
-
- Ferdig Avklart
- false
-
-
- Ny henvendelse
- true
-
-
-
- InquiryCategory__c
-
- Forebygge sykefravær
- true
-
-
-
- Inquiry_Category_2__c
-
- Forebygge sykefravær
- false
-
-
- Skal ansette
- false
-
-
- Tiltak
- false
-
-
-
- Municipality__c
-
- Agdenes
- false
-
-
- Alstahaug
- false
-
-
- Alta
- false
-
-
- Alvdal
- false
-
-
- Andøy
- false
-
-
- Aremark
- false
-
-
- Arendal
- false
-
-
- Asker
- false
-
-
- Askim
- false
-
-
- Askvoll
- false
-
-
- Askøy
- false
-
-
- Audnedal
- false
-
-
- Aukra
- false
-
-
- Aure
- false
-
-
- Aurland
- false
-
-
- Aurskog-Høland
- false
-
-
- Austevoll
- false
-
-
- Austrheim
- false
-
-
- Averøy
- false
-
-
- Balestrand
- false
-
-
- Ballangen
- false
-
-
- Balsfjord
- false
-
-
- Bamble
- false
-
-
- Bardu
- false
-
-
- Beiarn
- false
-
-
- Berg
- false
-
-
- Bergen - Arna
- false
-
-
- Bergen - Bergenhus
- false
-
-
- Bergen - Fana
- false
-
-
- Bergen - Fyllingsdalen
- false
-
-
- Bergen - Laksevåg
- false
-
-
- Bergen - Ytrebygda
- false
-
-
- Bergen - Årstad
- false
-
-
- Bergen - Åsane
- false
-
-
- Berlevåg
- false
-
-
- Bindal
- false
-
-
- Birkenes
- false
-
-
- Bjerkreim
- false
-
-
- Bjugn
- false
-
-
- Bodø
- false
-
-
- Bokn
- false
-
-
- Bremanger
- false
-
-
- Brønnøy
- false
-
-
- Bygland
- false
-
-
- Bykle
- false
-
-
- Båtsfjord
- false
-
-
- Bærum
- false
-
-
- Bø
- false
-
-
- Bø i Telemark
- false
-
-
- Bømlo
- false
-
-
- Deatnu - Tana
- false
-
-
- Divtasvuodna %E2%80%93 Tysfjord
- false
-
-
- Dovre
- false
-
-
- Drammen
- false
-
-
- Drangedal
- false
-
-
- Dyrøy
- false
-
-
- Dønna
- false
-
-
- Eid
- false
-
-
- Eide
- false
-
-
- Eidfjord
- false
-
-
- Eidsberg
- false
-
-
- Eidskog
- false
-
-
- Eidsvoll
- false
-
-
- Eigersund
- false
-
-
- Elverum
- false
-
-
- Enebakk
- false
-
-
- Engerdal
- false
-
-
- Etne
- false
-
-
- Etnedal
- false
-
-
- Evenes
- false
-
-
- Evje og Hornnes
- false
-
-
- Farsund
- false
-
-
- Fauske %E2%80%93 Fuossko
- false
-
-
- Fedje
- false
-
-
- Fet
- false
-
-
- Finnøy
- false
-
-
- Fitjar
- false
-
-
- Fjaler
- false
-
-
- Fjell
- false
-
-
- Flakstad
- false
-
-
- Flatanger
- false
-
-
- Flekkefjord
- false
-
-
- Flesberg
- false
-
-
- Flora
- false
-
-
- Flå
- false
-
-
- Folldal
- false
-
-
- Forsand
- false
-
-
- Fosnes
- false
-
-
- Fredrikstad
- false
-
-
- Frogn
- false
-
-
- Froland
- false
-
-
- Frosta
- false
-
-
- Fræna
- false
-
-
- Frøya
- false
-
-
- Fusa
- false
-
-
- Fyresdal
- false
-
-
- Færder
- false
-
-
- Førde
- false
-
-
- Gamvik
- false
-
-
- Gaular
- false
-
-
- Gausdal
- false
-
-
- Gildeskål
- false
-
-
- Giske
- false
-
-
- Gjemnes
- false
-
-
- Gjerdrum
- false
-
-
- Gjerstad
- false
-
-
- Gjesdal
- false
-
-
- Gjøvik
- false
-
-
- Gloppen
- false
-
-
- Gol
- false
-
-
- Gran
- false
-
-
- Grane
- false
-
-
- Granvin
- false
-
-
- Gratangen
- false
-
-
- Grimstad
- false
-
-
- Grong
- false
-
-
- Grue
- false
-
-
- Gulen
- false
-
-
- Guovdageaidnu %E2%80%93 Kautokeino
- false
-
-
- Gáivuotna %E2%80%93 Kåfjord %E2%80%93 Kaivuono
- false
-
-
- Hadsel
- false
-
-
- Halden
- false
-
-
- Halsa
- false
-
-
- Hamar
- false
-
-
- Hamarøy
- false
-
-
- Hammerfest
- false
-
-
- Haram
- false
-
-
- Hareid
- false
-
-
- Harstad
- false
-
-
- Hasvik
- false
-
-
- Hattfjelldal
- false
-
-
- Haugesund
- false
-
-
- Hemne
- false
-
-
- Hemnes
- false
-
-
- Hemsedal
- false
-
-
- Herøy
- false
-
-
- Herøy i Møre
- false
-
-
- Hitra
- false
-
-
- Hjartdal
- false
-
-
- Hjelmeland
- false
-
-
- Hobøl
- false
-
-
- Hol
- false
-
-
- Hole
- false
-
-
- Holmestrand
- false
-
-
- Holtålen
- false
-
-
- Hornindal
- false
-
-
- Horten
- false
-
-
- Hurdal
- false
-
-
- Hurum
- false
-
-
- Hvaler
- false
-
-
- Hyllestad
- false
-
-
- Hå
- false
-
-
- Hægebostad
- false
-
-
- Høyanger
- false
-
-
- Høylandet
- false
-
-
- Ibestad
- false
-
-
- Inderøy
- false
-
-
- Indre Fosen
- false
-
-
- Iveland
- false
-
-
- Jevnaker
- false
-
-
- Jondal
- false
-
-
- Jølster
- false
-
-
- Karlsøy
- false
-
-
- Karmøy
- false
-
-
- Klepp
- false
-
-
- Klæbu
- false
-
-
- Kongsberg
- false
-
-
- Kongsvinger
- false
-
-
- Kragerø
- false
-
-
- Kristiansand
- false
-
-
- Kristiansund
- false
-
-
- Krødsherad
- false
-
-
- Kvalsund
- false
-
-
- Kvam
- false
-
-
- Kvinesdal
- false
-
-
- Kvinnherad
- false
-
-
- Kviteseid
- false
-
-
- Kvitsøy
- false
-
-
- Kvæfjord
- false
-
-
- Kvænangen
- false
-
-
- Kárášjohka %E2%80%93 Karasjok
- false
-
-
- Larvik
- false
-
-
- Lebesby
- false
-
-
- Leikanger
- false
-
-
- Leirfjord
- false
-
-
- Leka
- false
-
-
- Lenvik
- false
-
-
- Lesja
- false
-
-
- Levanger
- false
-
-
- Lier
- false
-
-
- Lierne
- false
-
-
- Lillehammer
- false
-
-
- Lillesand
- false
-
-
- Lindesnes
- false
-
-
- Lindås
- false
-
-
- Loabák %E2%80%93 Lavangen
- false
-
-
- Lom
- false
-
-
- Loppa
- false
-
-
- Lund
- false
-
-
- Lunner
- false
-
-
- Lurøy
- false
-
-
- Luster
- false
-
-
- Lyngdal
- false
-
-
- Lyngen
- false
-
-
- Lærdal
- false
-
-
- Lødingen
- false
-
-
- Lørenskog
- false
-
-
- Løten
- false
-
-
- Malvik
- false
-
-
- Mandal
- false
-
-
- Marker
- false
-
-
- Marnardal
- false
-
-
- Masfjorden
- false
-
-
- Meland
- false
-
-
- Meldal
- false
-
-
- Melhus
- false
-
-
- Meløy
- false
-
-
- Meråker
- false
-
-
- Midsund
- false
-
-
- Midtre Gauldal
- false
-
-
- Modalen
- false
-
-
- Modum
- false
-
-
- Molde
- false
-
-
- Moskenes
- false
-
-
- Moss
- false
-
-
- Målselv
- false
-
-
- Måsøy
- false
-
-
- Namdalseid
- false
-
-
- Namsos
- false
-
-
- Namsskogan
- false
-
-
- Nannestad
- false
-
-
- Narvik
- false
-
-
- Naustdal
- false
-
-
- Nedre Eiker
- false
-
-
- Nes
- false
-
-
- Nes i Øst-Viken
- false
-
-
- Nesna
- false
-
-
- Nesodden
- false
-
-
- Nesset
- false
-
-
- Nissedal
- false
-
-
- Nittedal
- false
-
-
- Nome
- false
-
-
- Nord-Aurdal
- false
-
-
- Nord-Fron
- false
-
-
- Nord-Odal
- false
-
-
- Norddal
- false
-
-
- Nordkapp
- false
-
-
- Nordre Land
- false
-
-
- Nordreisa - Ráisa - Raisi
- false
-
-
- Nore og Uvdal
- false
-
-
- Notodden
- false
-
-
- Nærøy
- false
-
-
- Odda
- false
-
-
- Oppdal
- false
-
-
- Oppegård
- false
-
-
- Orkdal
- false
-
-
- Os
- false
-
-
- Os i Trøndelag
- false
-
-
- Osen
- false
-
-
- Oslo - Alna
- false
-
-
- Oslo - Bjerke
- false
-
-
- Oslo - Frogner
- false
-
-
- Oslo - Gamle Oslo
- false
-
-
- Oslo - Grorud
- false
-
-
- Oslo - Grünerløkka
- false
-
-
- Oslo - Nordre Aker
- false
-
-
- Oslo - Nordstrand
- false
-
-
- Oslo - Sagene
- false
-
-
- Oslo - Sentrum
- false
-
-
- Oslo - St%2EHanshaugen
- false
-
-
- Oslo - Stovner
- false
-
-
- Oslo - Søndre Nordstrand
- false
-
-
- Oslo - Ullern
- false
-
-
- Oslo - Vestre Aker
- false
-
-
- Oslo - Østensjø
- false
-
-
- Osterøy
- false
-
-
- Overhalla
- false
-
-
- Porsanger %E2%80%93 Porsáŋgu %E2%80%93 Porsanki
- false
-
-
- Porsgrunn
- false
-
-
- Raarvikhe %E2%80%93 Røyrvik
- false
-
-
- Radøy
- false
-
-
- Rakkestad
- false
-
-
- Rana
- false
-
-
- Randaberg
- false
-
-
- Rauma
- false
-
-
- Re
- false
-
-
- Rendalen
- false
-
-
- Rennebu
- false
-
-
- Rennesøy
- false
-
-
- Rindal
- false
-
-
- Ringebu
- false
-
-
- Ringerike
- false
-
-
- Ringsaker
- false
-
-
- Risør
- false
-
-
- Roan
- false
-
-
- Rollag
- false
-
-
- Rygge
- false
-
-
- Råde
- false
-
-
- Rælingen
- false
-
-
- Rødøy
- false
-
-
- Rømskog
- false
-
-
- Røros
- false
-
-
- Røst
- false
-
-
- Røyken
- false
-
-
- Salangen
- false
-
-
- Saltdal
- false
-
-
- Samnanger
- false
-
-
- Sande
- false
-
-
- Sande i Vest-Viken
- false
-
-
- Sandefjord
- false
-
-
- Sandnes
- false
-
-
- Sandøy
- false
-
-
- Sarpsborg
- false
-
-
- Sauda
- false
-
-
- Sauherad
- false
-
-
- Sel
- false
-
-
- Selbu
- false
-
-
- Selje
- false
-
-
- Seljord
- false
-
-
- Sigdal
- false
-
-
- Siljan
- false
-
-
- Sirdal
- false
-
-
- Skaun
- false
-
-
- Skedsmo
- false
-
-
- Ski
- false
-
-
- Skien
- false
-
-
- Skiptvet
- false
-
-
- Skjervøy
- false
-
-
- Skjåk
- false
-
-
- Skodje
- false
-
-
- Skånland
- false
-
-
- Smøla
- false
-
-
- Snillfjord
- false
-
-
- Snåase-Snåsa
- false
-
-
- Sogndal
- false
-
-
- Sokndal
- false
-
-
- Sola
- false
-
-
- Solund
- false
-
-
- Songdalen
- false
-
-
- Sortland
- false
-
-
- Spydeberg
- false
-
-
- Stange
- false
-
-
- Stavanger - Eiganes og Våland
- false
-
-
- Stavanger - Hillevåg
- false
-
-
- Stavanger - Hinna
- false
-
-
- Stavanger - Hundvåg
- false
-
-
- Stavanger - Madla
- false
-
-
- Stavanger - Storhaug
- false
-
-
- Stavanger - Tasta
- false
-
-
- Steigen
- false
-
-
- Steinkjer
- false
-
-
- Stjørdal
- false
-
-
- Stor-Elvdal
- false
-
-
- Stord
- false
-
-
- Stordal
- false
-
-
- Storfjord %E2%80%93 Omasvuotna %E2%80%93 Omasvuono
- false
-
-
- Strand
- false
-
-
- Stranda
- false
-
-
- Stryn
- false
-
-
- Sula
- false
-
-
- Suldal
- false
-
-
- Sund
- false
-
-
- Sunndal
- false
-
-
- Surnadal
- false
-
-
- Sveio
- false
-
-
- Svelvik
- false
-
-
- Sykkylven
- false
-
-
- Søgne
- false
-
-
- Sømna
- false
-
-
- Søndre Land
- false
-
-
- Sør-Aurdal
- false
-
-
- Sør-Fron
- false
-
-
- Sør-Odal
- false
-
-
- Sør-Varanger
- false
-
-
- Sørfold
- false
-
-
- Sørreisa
- false
-
-
- Sørum
- false
-
-
- Time
- false
-
-
- Tingvoll
- false
-
-
- Tinn
- false
-
-
- Tjeldsund
- false
-
-
- Tokke
- false
-
-
- Tolga
- false
-
-
- Torsken
- false
-
-
- Tranøy
- false
-
-
- Tromsø
- false
-
-
- Trondheim - Heimdal
- false
-
-
- Trondheim - Lerkendal
- false
-
-
- Trondheim - Midtbyen
- false
-
-
- Trondheim - Østbyen
- false
-
-
- Trysil
- false
-
-
- Træna
- false
-
-
- Trøgstad
- false
-
-
- Tvedestrand
- false
-
-
- Tydal
- false
-
-
- Tynset
- false
-
-
- Tysnes
- false
-
-
- Tysvær
- false
-
-
- Tønsberg
- false
-
-
- Ullensaker
- false
-
-
- Ullensvang
- false
-
-
- Ulstein
- false
-
-
- Ulvik
- false
-
-
- Unjárga %E2%80%93 Nesseby
- false
-
-
- Utsira
- false
-
-
- Vadsø
- false
-
-
- Vaksdal
- false
-
-
- Valle
- false
-
-
- Vang
- false
-
-
- Vanylven
- false
-
-
- Vardø
- false
-
-
- Vefsn
- false
-
-
- Vega
- false
-
-
- Vegårshei
- false
-
-
- Vennesla
- false
-
-
- Verdal
- false
-
-
- Verran
- false
-
-
- Vestby
- false
-
-
- Vestnes
- false
-
-
- Vestre Slidre
- false
-
-
- Vestre Toten
- false
-
-
- Vestvågøy
- false
-
-
- Vevelstad
- false
-
-
- Vik
- false
-
-
- Vikna
- false
-
-
- Vindafjord
- false
-
-
- Vinje
- false
-
-
- Volda
- false
-
-
- Voss
- false
-
-
- Vågan
- false
-
-
- Vågsøy
- false
-
-
- Vågå
- false
-
-
- Våler
- false
-
-
- Våler i Innlandet
- false
-
-
- Værøy
- false
-
-
- Åfjord
- false
-
-
- Ål
- false
-
-
- Ålesund
- false
-
-
- Åmli
- false
-
-
- Åmot
- false
-
-
- Årdal
- false
-
-
- Ås
- false
-
-
- Åseral
- false
-
-
- Åsnes
- false
-
-
- Øksnes
- false
-
-
- Ørland
- false
-
-
- Ørskog
- false
-
-
- Ørsta
- false
-
-
- Østre Toten
- false
-
-
- Øvre Eiker
- false
-
-
- Øyer
- false
-
-
- Øygarden
- false
-
-
- Øystre Slidre
- false
-
-
-
- PhysicalArrangements__c
-
- Andre former for fysisk tilrettelegging
- false
-
-
- Ergonomiske tilpasninger
- false
-
-
- Hørsel
- false
-
-
- Syn
- false
-
-
- Unngå tunge løft
- false
-
-
- Varierte arbeidsstillinger
- false
-
-
-
- Result__c
-
- Andre tiltak
- false
-
-
- Arbeidstrening
- false
-
-
- Direktemeldt stilling
- false
-
-
- Ikke aktuelt
- false
-
-
- Skal rekruttere selv
- false
-
-
-
- Source__c
-
- Internt tips
- false
-
-
- Kontaktsenteret
- false
-
-
- Kontaktskjema
- false
-
-
- Messe
- false
-
-
- Utgående henvendelse
- false
-
-
-
- TAG_CreateContract__c
-
- Ja
- false
-
-
-
- TAG_IAClarification__c
-
- Eget forarbeid gjennomført
- false
-
-
- Tillitsvalgt involvert
- false
-
-
-
- TAG_IAProcess_result__c
-
- Ferdig
- false
-
-
- Ikke aktuelt
- false
-
-
- Selvbetjening
- false
-
-
-
- TAG_IAService__c
-
- Forebyggende arbeidsmiljøarbeid
- false
-
-
- HelseIArbeid
- false
-
-
- Systematisk sykefraværsarbeid
- false
-
-
-
- WorkEnvironment__c
-
- Andre former for tilrettelegging
- false
-
-
- Mentor
- false
-
-
- Tilrettelagt opplæring
- false
-
-
- Tilrettelagte arbeidsoppgaver
- false
-
-
-
- WorkTime__c
-
- Borte fra jobb til faste dager eller tider
- false
-
-
- Fleksible arbeidsdager
- false
-
-
- Heltid
- false
-
-
- Jobb hver ukedag%2C men ikke hele dager
- false
-
-
-
diff --git a/force-app/main/default/objects/CustomOpportunity__c/validationRules/Source_must_be_set.validationRule-meta.xml b/force-app/main/default/objects/CustomOpportunity__c/validationRules/Source_must_be_set.validationRule-meta.xml
deleted file mode 100644
index f0af110e4..000000000
--- a/force-app/main/default/objects/CustomOpportunity__c/validationRules/Source_must_be_set.validationRule-meta.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
- Source_must_be_set
- true
- ISBLANK( TEXT ( Source__c ) )
- Source__c
- Velg kilden muligheten kommer fra
-
diff --git a/force-app/main/shared/classes/SharedFunctions.cls b/force-app/main/shared/classes/SharedFunctions.cls
deleted file mode 100644
index ee3e84099..000000000
--- a/force-app/main/shared/classes/SharedFunctions.cls
+++ /dev/null
@@ -1,34 +0,0 @@
-public without sharing class SharedFunctions {
- public static Map fetchAccounts(List organisationNumbers) {
- List accounts = [
- SELECT Id, INT_OrganizationNumber__c, INT_MunicipalityNumber__c
- FROM Account
- WHERE
- INT_OrganizationNumber__c IN :organisationNumbers
- AND INT_OrganizationNumber__c != NULL
- AND IsPersonAccount = FALSE
- ];
-
- Map accountMap = new Map();
- for (Account acc : accounts) {
- accountMap.put(acc.INT_OrganizationNumber__c, acc);
- }
-
- return accountMap;
- }
-
- public static Map fetchOrCreateContact(
- List wrapperList,
- Map accountMap
- ) {
- List existingContacts = SharedFunctions_FetchOrCreateContact.getExistingContacts(wrapperList);
- SharedFunctions_FetchOrCreateContact.addNewSourceToExistingContacts(wrapperList, existingContacts);
- SharedFunctions_FetchOrCreateContact.mapUnmappedContacts(wrapperList, existingContacts, accountMap);
- Map contactMap = SharedFunctions_FetchOrCreateContact.createContactMapWithEmailAsKey(
- existingContacts
- );
- SharedFunctions_FetchOrCreateContact.createRemainingContacts(wrapperList, accountMap, contactMap);
-
- return contactMap;
- }
-}
diff --git a/force-app/main/shared/classes/SharedFunctionsTest.cls b/force-app/main/shared/classes/SharedFunctionsTest.cls
deleted file mode 100644
index 5c4ee317f..000000000
--- a/force-app/main/shared/classes/SharedFunctionsTest.cls
+++ /dev/null
@@ -1,639 +0,0 @@
-@isTest
-private without sharing class SharedFunctionsTest {
- @testSetup
- private static void setup() {
- createDefaultAccounts();
- }
-
- @isTest
- private static void testFetchAccounts() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- Account acc2 = new Account(Name = 'Test Employer 2', INT_OrganizationNumber__c = '77777777');
- insert new List{ acc, acc2 };
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Email = 'tore.toresen@example.com',
- AccountId = acc.Id
- );
- insert con;
-
- Test.StartTest();
- Map result = SharedFunctions.fetchAccounts(
- new List{ acc.INT_OrganizationNumber__c, acc2.INT_OrganizationNumber__c }
- );
- Test.StopTest();
-
- Integer contactRelationships = [SELECT Id FROM AccountContactRelation].size();
- System.assertEquals(acc.Id, result.get(acc.INT_OrganizationNumber__c).Id, 'Should be same account');
- System.assertEquals(acc2.Id, result.get(acc2.INT_OrganizationNumber__c).Id, 'Should be same account');
- System.assertEquals(
- 1,
- contactRelationships,
- 'Should have added the contact to the new accounts as a relationship'
- );
- }
-
- @isTest
- private static void testFetchOrCreateContact_create() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- '99999999',
- 'kurs'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = SharedFunctions.fetchAccounts(new List{ wrapper.companyNumber });
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- Integer contactRelationships = [SELECT Id FROM AccountContactRelation].size();
- System.assertEquals(acc.Id, result.get('test@test.com').AccountId, 'Should be same account');
- System.assert(result.get('test@test.com').Source__c.contains('kurs'), 'Should be same account');
- System.assertEquals(
- 1,
- contactRelationships,
- 'Should have added the contact to the new accounts as a relationship'
- );
- }
-
- @isTest
- private static void testFetchOrCreateContact_existingIsPDL() {
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- '99999999',
- 'kurs'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = new Map();
-
- Id personAccountRecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName()
- .get('PersonAccount')
- .getRecordTypeId();
- Account newPersonAccount = new Account();
-
- newPersonAccount.FirstName = 'Fred';
- newPersonAccount.LastName = 'Smith';
- newPersonAccount.PersonEmail = 'test@test.com';
- newPersonAccount.RecordTypeId = personAccountRecordTypeId;
- insert newPersonAccount;
-
- System.assertEquals(1, [SELECT Id FROM Contact].size(), 'one PDL contact before');
-
- Test.startTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.stopTest();
-
- System.assertEquals(2, [SELECT Id FROM Contact].size(), 'one PDL contact + one regular contact afterwards');
- }
-
- @isTest
- private static void testFetchOrCreateContact_nullOrgNo() {
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- null,
- 'kurs'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = new Map();
-
- List contacts = [SELECT Id, Account.INT_OrganizationNumber__c FROM Contact];
- System.assertEquals(0, contacts.size(), 'before, zero contacts');
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- contacts = [SELECT Id, Account.INT_OrganizationNumber__c FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, one contact');
-
- Id defaultAccountId = SharedFunctions_FetchOrCreateContact.getDefaultAccountId();
- System.assertEquals(defaultAccountId, contacts[0].AccountId, 'Contact should have the default account.');
- }
-
- @isTest
- private static void testFetchOrCreateContact_emptyOrgNo() {
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- '',
- 'kurs'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = new Map();
-
- List contacts = [SELECT Id, Account.INT_OrganizationNumber__c FROM Contact];
- System.assertEquals(0, contacts.size(), 'before, zero contacts');
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- contacts = [SELECT Id, Account.INT_OrganizationNumber__c FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, one contact');
-
- Id defaultAccountId = SharedFunctions_FetchOrCreateContact.getDefaultAccountId();
- System.assertEquals(defaultAccountId, contacts[0].AccountId, 'Contact should have the default account');
- }
-
- @isTest
- private static void testFetchOrCreateContact_nullOrgNo_existingContact() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'Toråsen',
- Email = 'test@domain.com',
- AccountId = acc.Id
- );
- insert con;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@domain.com',
- null,
- 'kurs'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = new Map();
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(1, contacts.size(), 'before, one contact');
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- contacts = [SELECT Id, AccountId FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, one contact');
- System.assertEquals(acc.Id, contacts[0].AccountId, 'Contact should have the default account.');
- }
-
- @isTest
- private static void testFetchOrCreateContact_emptyOrgNo_existingContact() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'Toråsen',
- Email = 'test@domain.com',
- AccountId = acc.Id
- );
- insert con;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@domain.com',
- '',
- 'kurs'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = new Map();
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(1, contacts.size(), 'before, one contact');
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- contacts = [SELECT Id, AccountId FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, one contact');
- System.assertEquals(acc.Id, contacts[0].AccountId, 'Contact should have the default account');
- }
-
- @isTest
- private static void testFetchOrCreateContact_emptyEmail() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- Account acc2 = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '677777');
- insert new List{ acc, acc2 };
- Contact con = new Contact(TAG_Informed__c = true, LastName = 'test', FirstName = 'test', AccountId = acc.Id);
- insert con;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- '',
- '677777',
- 'test'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = SharedFunctions.fetchAccounts(new List{ wrapper.companyNumber });
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(1, contacts.size(), 'Before, only 1 contact');
-
- Test.StartTest();
- SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- contacts = [SELECT Id FROM Contact];
- System.assertEquals(2, contacts.size(), 'After, 2 contacts despite empty email');
- }
-
- @isTest
- private static void testFetchOrCreateContact_invalidEmail() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test @domain.com',
- '99999999',
- 'test'
- );
- SharedFunctions_ContactModel wrapper2 = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'testÆØÅ@domain.com',
- '99999999',
- 'test'
- );
- SharedFunctions_ContactModel wrapper3 = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@domaincom',
- '99999999',
- 'test'
- );
- SharedFunctions_ContactModel wrapper4 = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'te@st@domain.com',
- '99999999',
- 'test'
- );
- SharedFunctions_ContactModel wrapper5 = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@domain',
- '99999999',
- 'test'
- );
- SharedFunctions_ContactModel wrapper6 = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test£@domain.com',
- '99999999',
- 'test'
- );
- List wrapperList = new List{
- wrapper,
- wrapper2,
- wrapper3,
- wrapper4,
- wrapper5,
- wrapper6
- };
-
- Map accountMap = SharedFunctions.fetchAccounts(new List{ wrapper.companyNumber });
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(0, contacts.size(), 'Before, only 1 contact');
-
- Test.StartTest();
- SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- contacts = [SELECT Id, InvalidEmail__c, Email FROM Contact];
- System.assertEquals(6, contacts.size(), 'After, 6 contacts despite invalid email');
-
- for (Contact c : contacts) {
- System.assertEquals(null, c.Email, 'Email should be null, as the emailed added is invalid');
- System.assertNotEquals(
- null,
- c.InvalidEmail__c,
- 'InvalidEmail__c should not be null, as the email added is invalid'
- );
- }
- }
-
- @isTest
- private static void testFetchOrCreateContact_invalidEmailExisting_CreateNewWithInvalidEmail() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'Toråsen',
- InvalidEmail__c = 'test @domain.com',
- AccountId = acc.Id
- );
- insert con;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test @domain.com',
- '99999999',
- 'test'
- );
- List wrapperList = new List{ wrapper };
-
- Map accountMap = SharedFunctions.fetchAccounts(new List{ wrapper.companyNumber });
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(1, contacts.size(), 'Before, only 1 contact');
-
- Test.StartTest();
- SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- contacts = [SELECT Id, InvalidEmail__c, Email FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, still only one contact despite invalid email');
-
- for (Contact c : contacts) {
- System.assertEquals(null, c.Email, 'Email should be null, as the emailed added is invalid');
- System.assertEquals(
- 'test @domain.com',
- c.InvalidEmail__c,
- 'InvalidEmail__c should not be null, as the email added is invalid'
- );
- System.assertEquals(con.Id, c.Id, 'Same contact');
- }
- }
-
- @isTest
- private static void testFetchOrCreateContact_existingContact() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Email = 'test@test.com',
- AccountId = acc.Id
- );
- insert con;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- '99999999',
- 'test'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = SharedFunctions.fetchAccounts(new List{ wrapper.companyNumber });
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- System.assertEquals(con.Id, result.get('test@test.com').Id, 'Should be same existing contact');
-
- Integer contactRelationships = [SELECT Id FROM AccountContactRelation].size();
- System.assertEquals(
- 1,
- contactRelationships,
- 'Should have added the contact to the new accounts as a relationship'
- );
- }
-
- @isTest
- private static void testFetchOrCreateContact_existingContact_newSource() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Source__c = 'Kurs',
- Email = 'test@test.com',
- AccountId = acc.Id
- );
- insert con;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- '99999999',
- 'Permittering'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = SharedFunctions.fetchAccounts(new List{ wrapper.companyNumber });
-
- Test.StartTest();
- SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- con = [SELECT Id, Source__c FROM contact WHERE Id = :con.Id LIMIT 1];
- System.assert(con.Source__c.contains('Kurs'), 'Source should contain kurs');
- System.assert(con.Source__c.contains('Permittering'), 'Source should contain Permittering');
- }
-
- @isTest
- private static void testFetchOrCreateContact_existingContactOnAnotherAccount() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- Account acc2 = new Account(Name = 'Test Employer 2', INT_OrganizationNumber__c = '77777777');
- insert new List{ acc, acc2 };
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Email = 'test@test.com',
- AccountId = acc.Id
- );
- insert con;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- '77777777',
- 'test'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = SharedFunctions.fetchAccounts(new List{ wrapper.companyNumber });
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- Integer contactRelationships = [SELECT Id FROM AccountContactRelation].size();
- System.assertEquals(con.Id, result.get('test@test.com').Id, 'Should be same existing contact');
- System.assertEquals(
- 2,
- contactRelationships,
- 'Should have added the contact to the new accounts as a relationship'
- );
- }
-
- @isTest
- private static void testFetchOrCreateContact_existingContactOnAnotherAccount_sameUserMultipleInsertions() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- Account acc2 = new Account(Name = 'Test Employer 2', INT_OrganizationNumber__c = '77777777');
- Account acc3 = new Account(Name = 'Test Employer 2', INT_OrganizationNumber__c = '4444');
- insert new List{ acc, acc2, acc3 };
-
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Email = 'test@test.com',
- AccountId = acc.Id
- );
- insert con;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- '77777777',
- 'test'
- );
- SharedFunctions_ContactModel wrapper2 = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- '4444',
- 'test'
- );
- List wrapperList = new List{ wrapper, wrapper2 };
-
- Map accountMap = SharedFunctions.fetchAccounts(
- new List{ wrapper.companyNumber, wrapper2.companyNumber }
- );
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- Integer contactRelationships = [SELECT Id FROM AccountContactRelation].size();
- System.assertEquals(con.Id, result.get('test@test.com').Id, 'Should be same existing contact');
- System.assertEquals(
- 3,
- contactRelationships,
- 'Should have added the contact to the new accounts as a relationship'
- );
- }
-
- @isTest
- private static void testFetchOrCreateContact_existingContactOnAnotherAccount_multipleUsers() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '77777777');
- Account acc2 = new Account(Name = 'Test Employer 2', INT_OrganizationNumber__c = '4444');
- Account acc3 = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '9999999');
- Account acc4 = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '3333');
- insert new List{ acc, acc2, acc3, acc4 };
-
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Email = 'test@test.com',
- AccountId = acc.Id
- );
- Contact con2 = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Email = 'test_new@test.com',
- AccountId = acc2.Id
- );
- insert new List{ con, con2 };
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'test@test.com',
- '9999999',
- 'test'
- );
- SharedFunctions_ContactModel wrapper2 = new SharedFunctions_ContactModel(
- 'test2',
- 'etternavn2',
- '34430400',
- 'test_new@test.com',
- '3333',
- 'test'
- );
- List wrapperList = new List{ wrapper, wrapper2 };
- Map accountMap = SharedFunctions.fetchAccounts(
- new List{ wrapper.companyNumber, wrapper2.companyNumber }
- );
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- Integer contactRelationships = [SELECT Id FROM AccountContactRelation].size();
- System.assertEquals(con.Id, result.get('test@test.com').Id, 'Should be same existing contact');
- System.assertEquals(
- 4,
- contactRelationships,
- 'Should have added the contact to the new accounts as a relationship'
- );
- }
-
- @isTest
- private static void testFetchOrCreateContact_uppcaseEmail() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Email = 'test@test.com',
- AccountId = acc.Id
- );
- insert con;
-
- SharedFunctions_ContactModel wrapper = new SharedFunctions_ContactModel(
- 'test',
- 'etternavn',
- '90080900',
- 'Test@test.com',
- '77777777',
- 'test'
- );
- List wrapperList = new List{ wrapper };
- Map accountMap = SharedFunctions.fetchAccounts(new List{ wrapper.companyNumber });
-
- Test.StartTest();
- Map result = SharedFunctions.fetchOrCreateContact(wrapperList, accountMap);
- Test.StopTest();
-
- System.assertEquals(con.Id, result.get('test@test.com').Id, 'Should be same existing contact');
- }
-
- // helper functions
-
- private static void createDefaultAccounts() {
- insert new Account(name = 'Kontakter uten konto', INT_OrganizationNumber__c = 'AG_DEFAULT');
- }
-}
diff --git a/force-app/main/shared/classes/SharedFunctions_ContactModel.cls b/force-app/main/shared/classes/SharedFunctions_ContactModel.cls
deleted file mode 100644
index 15c8ccdb1..000000000
--- a/force-app/main/shared/classes/SharedFunctions_ContactModel.cls
+++ /dev/null
@@ -1,26 +0,0 @@
-public with sharing class SharedFunctions_ContactModel {
- public String firstName;
- public String lastName;
- public String phone;
- public String email;
- public String companyNumber;
- public String source;
-
- public SharedFunctions_ContactModel(
- String firstName,
- String lastName,
- String phone,
- String email,
- String companyNumber,
- String source
- ) {
- this.firstName = firstName;
- this.lastName = lastName;
- this.phone = phone;
- this.email = email;
- this.companyNumber = companyNumber;
- this.source = source;
- }
- public SharedFunctions_ContactModel() {
- }
-}
diff --git a/force-app/main/shared/classes/SharedFunctions_FetchOrCreateContact.cls b/force-app/main/shared/classes/SharedFunctions_FetchOrCreateContact.cls
deleted file mode 100644
index 6685bccaa..000000000
--- a/force-app/main/shared/classes/SharedFunctions_FetchOrCreateContact.cls
+++ /dev/null
@@ -1,181 +0,0 @@
-public without sharing class SharedFunctions_FetchOrCreateContact {
- // will check both Email and InvalidEmail__c in case the email is Salesforce invalid (but not invalid for Norwegians, e.g., ÆØÅ)
- public static List getExistingContacts(List wrapperList) {
- Set emails = new Set();
- for (SharedFunctions_ContactModel cw : wrapperList) {
- emails.add(cw.email);
- }
-
- List existingContacts = [
- SELECT Id, Email, FirstName, LastName, Account.INT_OrganizationNumber__c, InvalidEmail__c, Source__c
- FROM Contact
- WHERE
- ((Email IN :emails
- AND Email != NULL)
- OR (InvalidEmail__c IN :emails
- AND InvalidEmail__c != NULL))
- AND IsPersonAccount = FALSE
- ];
-
- return existingContacts;
- }
-
- // append new source if its not already on the contact
- public static void addNewSourceToExistingContacts(
- List wrapperList,
- List contacts
- ) {
- Map wrapperMap = new Map();
- for (SharedFunctions_ContactModel cw : wrapperList) {
- wrapperMap.put(cw.email, cw);
- }
-
- List contactsToUpdate = new List();
-
- for (Contact con : contacts) {
- SharedFunctions_ContactModel cw = wrapperMap.containsKey(con.Email)
- ? wrapperMap.get(con.Email)
- : wrapperMap.get(con.InvalidEmail__c);
- if (cw != null) {
- List sources = con.Source__c != null ? con.Source__c.split(';') : new List();
- String newSource = cw.source;
- if (!sources.contains(newSource)) {
- sources.add(newSource);
- con.Source__c = String.join(sources, ';');
- contactsToUpdate.add(con);
- }
- }
- }
- update contactsToUpdate;
- }
-
- // create AccountContactRelation for unmapped contacts (e.g., when a contact is found originally but not mapped to the new account they're inquiring from)
- public static void mapUnmappedContacts(
- List wrapperList,
- List existingContacts,
- Map accountMap
- ) {
- Map> contactWrapperMap = createMapOfContactWrapper(wrapperList);
- List relationships = new List();
-
- Map contactAndAccountToMap = new Map();
- for (Contact con : existingContacts) {
- String email = '';
- if (con.Email != null) {
- email = con.Email;
- } else if (con.InvalidEmail__c != null) {
- email = con.InvalidEmail__c;
- }
-
- if (contactWrapperMap.containsKey(email.toLowerCase())) {
- List wrapper = contactWrapperMap.get(email.toLowerCase());
- for (SharedFunctions_ContactModel cw : wrapper) {
- if (email == cw.email) {
- String postedCompanyNumber = cw.companyNumber;
- String currentCompanyNumber = con.Account.INT_OrganizationNumber__c;
-
- if (
- postedCompanyNumber != currentCompanyNumber && accountMap.containsKey(postedCompanyNumber)
- ) {
- Id accId = accountMap.get(postedCompanyNumber).Id;
- relationships.add(new AccountContactRelation(AccountId = accId, ContactId = con.Id));
- }
- }
- }
- }
- }
-
- Database.insert(relationships, false); // insert all, and ignore errors on duplicates
- }
-
- /* Check for valid emails
- -----------------------------
-
- Not allowed:
- - ÆØÅ
- - Spaces
- - Double period (..)
- - More than one at (@)
- - Signs except the A-Z, 0-9 and !#$%&*+-/=?^_`{|}~.
- */
-
- public static Boolean checkIfValidEmail(String email) {
- String emailRegex = '^[a-zA-Z0-9._|\\\\%#~`=?&/$^*!}{+-]+@((?!-)[a-zA-Z0-9.-]{1,63}(?http://www.regular-expressions.info/email.html
- Pattern MyPattern = Pattern.compile(emailRegex);
- Matcher MyMatcher = MyPattern.matcher(email);
-
- return MyMatcher.matches();
- }
-
- public static Map> createMapOfContactWrapper(
- List wrapperList
- ) {
- Map> contactWrapperMap = new Map>();
- for (SharedFunctions_ContactModel cw : wrapperList) {
- if (contactWrapperMap.containsKey(cw.email.toLowerCase())) {
- contactWrapperMap.get(cw.email.toLowerCase()).add(cw);
- } else {
- contactWrapperMap.put(cw.email.toLowerCase(), new List{ cw });
- }
- }
-
- return contactWrapperMap;
- }
-
- public static Map createContactMapWithEmailAsKey(List existingContacts) {
- Map contactMap = new Map();
-
- for (Contact con : existingContacts) {
- if (con.Email != null) {
- contactMap.put(con.Email.toLowerCase(), con);
- } else if (con.InvalidEmail__c != null) {
- contactMap.put(con.InvalidEmail__c.toLowerCase(), con);
- }
- }
-
- return contactMap;
- }
-
- public static void createRemainingContacts(
- List wrapperList,
- Map accountMap,
- Map contactMap
- ) {
- List newContacts = new List();
- for (SharedFunctions_ContactModel cw : wrapperList) {
- if (!contactMap.containsKey(cw.email.toLowerCase())) {
- Id accountId = accountMap.containsKey(cw.companyNumber)
- ? accountMap.get(cw.companyNumber).Id
- : getDefaultAccountId();
-
- Contact con = new Contact(
- FirstName = cw.firstName,
- LastName = cw.lastName,
- MobilePhone = cw.phone,
- AccountId = accountId,
- Source__c = cw.source
- );
-
- // if cw.email is a valid email, add the email
- if (SharedFunctions_FetchOrCreateContact.checkIfValidEmail(cw.email)) {
- con.Email = cw.email;
- } else {
- // if invalid, add it only to the invalid email field (to be later fixed by an employee)
- con.InvalidEmail__c = cw.email;
- }
-
- contactMap.put(cw.email.toLowerCase(), con);
- newContacts.add(con);
- }
- }
-
- insert newContacts;
- }
-
- public static Id getDefaultAccountId() {
- List defaultAccount = [SELECT Id FROM Account WHERE INT_OrganizationNumber__c = 'AG_DEFAULT' LIMIT 1];
- Id defaultAccountId = defaultAccount.size() > 0 ? defaultAccount[0].Id : null;
-
- return defaultAccountId;
- }
-}
diff --git a/force-app/main/shared/classes/SharedFunctions_FetchOrCreateContactTest.cls b/force-app/main/shared/classes/SharedFunctions_FetchOrCreateContactTest.cls
deleted file mode 100644
index d3f5cec40..000000000
--- a/force-app/main/shared/classes/SharedFunctions_FetchOrCreateContactTest.cls
+++ /dev/null
@@ -1,269 +0,0 @@
-@isTest
-private without sharing class SharedFunctions_FetchOrCreateContactTest {
- @TestSetup
- static void makeData() {
- insert new Account(name = 'Kontakter uten konto', INT_OrganizationNumber__c = 'AG_DEFAULT');
- }
-
- @isTest
- private static void testGetExistingContacts_empty() {
- List wrapperList = new List{
- new SharedFunctions_ContactModel('test', 'etternavn', '90080900', 'test@domain.com', '99999999', 'test')
- };
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(0, contacts.size(), 'Before, zero contacts');
-
- Test.StartTest();
- List actual = SharedFunctions_FetchOrCreateContact.getExistingContacts(wrapperList);
- Test.StopTest();
-
- contacts = [SELECT Id FROM Contact];
- System.assertEquals(0, contacts.size(), 'After, zero contacts');
- }
-
- @isTest
- private static void testGetExistingContacts_existing() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Email = 'test@domain.com',
- AccountId = acc.Id
- );
- insert con;
- List wrapperList = new List{
- new SharedFunctions_ContactModel('test', 'etternavn', '90080900', 'test@domain.com', '99999999', 'test')
- };
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(1, contacts.size(), 'Before, 1 contacts');
-
- Test.StartTest();
- List actual = SharedFunctions_FetchOrCreateContact.getExistingContacts(wrapperList);
- Test.StopTest();
-
- contacts = [SELECT Id FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, 1 contacts');
- }
-
- @isTest
- private static void testAddNewSourceToExistingContacts() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Source__c = 'Permittering',
- Email = 'test@domain.com',
- AccountId = acc.Id
- );
- insert con;
-
- List wrapperList = new List{
- new SharedFunctions_ContactModel('test', 'etternavn', '90080900', 'test@domain.com', '99999999', 'test')
- };
- List contacts = SharedFunctions_FetchOrCreateContact.getExistingContacts(wrapperList);
-
- Test.StartTest();
- SharedFunctions_FetchOrCreateContact.addNewSourceToExistingContacts(wrapperList, contacts);
- Test.StopTest();
-
- contacts = [SELECT Id, Source__c FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, 1 contacts');
- System.assert(contacts[0].Source__c.contains('test'), 'Should contain new source "test" ');
- System.assert(contacts[0].Source__c.contains('Permittering'), 'Should contain old source "permittering" ');
- }
-
- @isTest
- private static void testMapUnmappedContacts() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- Account acc2 = new Account(Name = 'Test Employer 2', INT_OrganizationNumber__c = '8888888');
- insert acc;
- insert acc2;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Source__c = 'permittering',
- Email = 'test@domain.com',
- AccountId = acc.Id
- );
- insert con;
-
- List wrapperList = new List{
- new SharedFunctions_ContactModel('test', 'etternavn', '90080900', 'test@domain.com', '8888888', 'test')
- };
- List existingContacts = SharedFunctions_FetchOrCreateContact.getExistingContacts(wrapperList);
- Map accountMap = SharedFunctions.fetchAccounts(
- new List{ acc.INT_OrganizationNumber__c, acc2.INT_OrganizationNumber__c }
- );
-
- Integer contactRelationships = [SELECT Id FROM AccountContactRelation].size();
- System.assertEquals(
- 1,
- contactRelationships,
- 'Should have added the contact to the existing accounts as a relationship'
- );
-
- Test.StartTest();
- SharedFunctions_FetchOrCreateContact.mapUnmappedContacts(wrapperList, existingContacts, accountMap);
- Test.StopTest();
-
- contactRelationships = [SELECT Id FROM AccountContactRelation].size();
- System.assertEquals(
- 2,
- contactRelationships,
- 'Should have added the contact to the new accounts as a relationship'
- );
- }
-
- @isTest
- private static void testCheckIfValidEmail_false() {
- Test.StartTest();
- Boolean actual1 = SharedFunctions_FetchOrCreateContact.checkIfValidEmail('test @domain.com');
- Boolean actual2 = SharedFunctions_FetchOrCreateContact.checkIfValidEmail('testÆØÅ@domain.com');
- Boolean actual3 = SharedFunctions_FetchOrCreateContact.checkIfValidEmail('test@domaincom');
- Boolean actual4 = SharedFunctions_FetchOrCreateContact.checkIfValidEmail('te@st@domain.com');
- Boolean actual5 = SharedFunctions_FetchOrCreateContact.checkIfValidEmail('test@domain');
- Boolean actual6 = SharedFunctions_FetchOrCreateContact.checkIfValidEmail('test£@domain.com');
- Boolean actual7 = SharedFunctions_FetchOrCreateContact.checkIfValidEmail('test@domain.com');
- Boolean actual8 = SharedFunctions_FetchOrCreateContact.checkIfValidEmail('test@domain-.com');
- Test.StopTest();
-
- System.assert(!actual1, 'should be false, as "test @domain.com" is wrong');
- System.assert(!actual2, 'should be false, as "testÆØÅ@domain.com" is wrong');
- System.assert(!actual3, 'should be false, as "test@domaincom" is wrong');
- System.assert(!actual4, 'should be false, as "te@st@domain.com" is wrong');
- System.assert(!actual5, 'should be false, as "test@domain" is wrong');
- System.assert(!actual6, 'should be false, as "test£@domain.com" is wrong');
- System.assert(actual7, 'should be true, as "test@domain.com" is correct');
- System.assert(!actual8, 'should be false, as "test@domain-.com" is wrong');
- }
-
- @isTest
- private static void testCreateMapOfContactWrapper() {
- List wrapperList = new List{
- new SharedFunctions_ContactModel('test', 'etternavn', '90080900', 'test@domain.com', '8888888', 'test')
- };
-
- Test.StartTest();
- Map> actual = SharedFunctions_FetchOrCreateContact.createMapOfContactWrapper(
- wrapperList
- );
- Test.StopTest();
-
- System.assertEquals(1, actual.size(), 'size should 1 one as only one contact');
- System.assert(actual.containsKey('test@domain.com'), 'should contain key "test@domain.com"');
- }
-
- @isTest
- private static void testCreateContactMapWithEmailAsKey() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- Contact con = new Contact(
- TAG_Informed__c = true,
- LastName = 'test',
- FirstName = 'test',
- Source__c = 'permittering',
- Email = 'test@domain.com',
- AccountId = acc.Id
- );
- insert con;
-
- Test.StartTest();
- Map actual = SharedFunctions_FetchOrCreateContact.createContactMapWithEmailAsKey(
- new List{ con }
- );
- Test.StopTest();
-
- System.assertEquals(1, actual.size(), 'size should be 1 contact');
- System.assert(actual.containsKey('test@domain.com'), 'should contain key "test@domain.com"');
- System.assertEquals(con.Id, actual.get('test@domain.com').Id, 'should be same contact id');
- }
-
- @isTest
- private static void testCreateRemainingContacts() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- List wrapperList = new List{
- new SharedFunctions_ContactModel('test', 'etternavn', '90080900', 'test@domain.com', '99999999', 'test')
- };
- Map contactMap = SharedFunctions_FetchOrCreateContact.createContactMapWithEmailAsKey(
- new List()
- );
- Map accountMap = SharedFunctions.fetchAccounts(
- new List{ acc.INT_OrganizationNumber__c }
- );
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(0, contacts.size(), 'Before, zero contacts');
-
- Test.StartTest();
- SharedFunctions_FetchOrCreateContact.createRemainingContacts(wrapperList, accountMap, contactMap);
- Test.StopTest();
-
- contacts = [SELECT Id FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, one contact');
- }
-
- @isTest
- private static void testCreateRemainingContacts_emptyOrgNo() {
- Account acc = new Account(Name = 'Test Employer 1', INT_OrganizationNumber__c = '99999999');
- insert acc;
- List wrapperList = new List{
- new SharedFunctions_ContactModel('test', 'etternavn', '90080900', 'test@domain.com', '99999999', 'test')
- };
- Map contactMap = new Map();
- Map accountMap = new Map();
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(0, contacts.size(), 'Before, zero contacts');
-
- Test.StartTest();
- SharedFunctions_FetchOrCreateContact.createRemainingContacts(wrapperList, accountMap, contactMap);
- Test.StopTest();
-
- contacts = [SELECT Id, Account.INT_OrganizationNumber__c FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, one contact');
-
- Id defaultAccountId = SharedFunctions_FetchOrCreateContact.getDefaultAccountId();
- System.assertEquals(defaultAccountId, contacts[0].AccountId, 'Contact should have the default account');
- }
-
- @isTest
- private static void testCreateRemainingContacts_nullOrgNo() {
- List wrapperList = new List{
- new SharedFunctions_ContactModel('test', 'etternavn', '90080900', 'test@domain.com', null, 'test')
- };
- Map contactMap = new Map();
- Map accountMap = new Map();
-
- List contacts = [SELECT Id FROM Contact];
- System.assertEquals(0, contacts.size(), 'Before, zero contacts');
-
- Test.StartTest();
- SharedFunctions_FetchOrCreateContact.createRemainingContacts(wrapperList, accountMap, contactMap);
- Test.StopTest();
-
- contacts = [SELECT Id, Account.INT_OrganizationNumber__c FROM Contact];
- System.assertEquals(1, contacts.size(), 'After, one contact');
-
- Id defaultAccountId = SharedFunctions_FetchOrCreateContact.getDefaultAccountId();
- System.assertEquals(defaultAccountId, contacts[0].AccountId, 'Contact should have the default account');
- }
-
- @isTest
- private static void testGetDefaultAccountId() {
- Id expectedId = [SELECT Id FROM Account WHERE INT_OrganizationNumber__c = 'AG_DEFAULT' LIMIT 1].Id;
-
- Test.StartTest();
- Id defaultAccountId = SharedFunctions_FetchOrCreateContact.getDefaultAccountId();
- Test.StopTest();
-
- System.assertEquals(expectedId, defaultAccountId, 'Account exists, thus the ID is returned');
- }
-}