Configuration¶
Application Config¶
The application config is a little different depending on if using the read from disk or read from SFTP server. Below you will find examples of both the options.
Warning
Please note that the exported EDP files does not contain any headers for the different columns. This problem is solved for this package by manually specifying the columns in the application config for each files as you can see below. The order of the columns in the application config must match the order in the files. It is however possible to choose what and how many columns you want to use in the Lime Admin config.
Option 1, read from disk¶
Lime App: # <-- Change this to your Lime Application name.
config:
edp:
path_type: 'osfs'
path: "C:\\Integrations\\Future\\" # If it is a network path example: \\\\server2\\Folder1\\Import\\
customer_fileprefix: 'LimeKund' # Change these prefixes if neccessary.
serviceplace_fileprefix: 'LimeAnlaggning' # Change these prefixes if neccessary.
service_fileprefix: 'LimeTjanst' # Change these prefixes if neccessary.
custom_columns: # The package contains a default. If the integration you are configuring has extra columns, the columns can be overwritten here. The files are delivered without column headers.
lime_customer: ["Kundnr", "Personnr1", "Personnr2", "Efternamn1", "Förnamn1", "Efternamn2", "Förnamn2", "Kundadress", "KundPostnr", "KundOrt", "KundLand", "TelefonBostad", "TelefonArbete", "TelefonMobil", "Epostadress", "Fax", "BetalningssättText", "AGMedgivandeFr¨nBGÅter", "EFakturaBanknamn", "KundkategoriText", "KundUpphördDatum", "KundStatus", "EpostOK", "SMSOK", "KundTyp", "KundSkapad", "SenastÄndrad", "CUSTOMER_SPECIFIC_FIELD1", "CUSTOMER_SPECIFIC_FIELD2"]
lime_serviceplace: ["Kundnr", "Anlnr", "AnläggningAdress", "AnläggningPostnr", "AnläggningOrt", "Fastighetsbeteckning", "Fastighetsnyckel", "AnläggningKontakt", "AnläggningTelefon", "AvläsningsDistrikt", "LTA", "Populärnamn", "AnläggningNyckelNr", "AnläggningPortkod", "AnläggningUpphördDatum", "Anläggningskategori", "AnläggninUtskicksadress", "AnläggningSkapad", "SenastÄndrad"]
lime_service: ["Kundnr", "Anlnr", "Tjänstnr", "Mätarnr", "SenastFaktureradTomDatum", "SenasteFakturanr", "TjänstStartDatum", "TjänstSlutDatum", "Taxa", "Mätarplacering", "TjänstNyckelNr", "Årsförbrukning", "Tömningsfrekvenskod", "RHDistriktkodText", "Slanglängd", "Brunnstyp", "Behållarestorlek", "Xkoordinat", "Ykoordinat", "Lägenhet", "Tomtyta", "ÖvrigtAntal", "AntalBehållare", "Bevakning", "Mätarstorlek", "Behållare", "Avfallstyp", "TjänstSkapad", "SenastÄndrad", "Taxebenämning", "Produkt", "Delprodukt"]
Option 2, read from SFTP¶
Lime App: # <-- Change this to your Lime Application name.
config:
edp:
path_type: 'sftp'
path: "/" # Only / if the files are dumped in the root directory of the SFTP, otherwise something like /EdpExport or whatever the customer have setup
sftp:
address: "11.111.11.111" #
port: 22 # default is 22, but can be other things also
account: "EdpImport" # the username for logging into the sftp server
customer_fileprefix: 'LimeKund' # Change these prefixes if neccessary.
serviceplace_fileprefix: 'LimeAnlaggning' # Change these prefixes if neccessary.
service_fileprefix: 'LimeTjanst' # Change these prefixes if neccessary.
custom_columns: # The package contains a default. If the integration you are configuring has extra columns, the columns can be overwritten here. The files are delivered without column headers.
lime_customer: ["Kundnr", "Personnr1", "Personnr2", "Efternamn1", "Förnamn1", "Efternamn2", "Förnamn2", "Kundadress", "KundPostnr", "KundOrt", "KundLand", "TelefonBostad", "TelefonArbete", "TelefonMobil", "Epostadress", "Fax", "BetalningssättText", "AGMedgivandeFr¨nBGÅter", "EFakturaBanknamn", "KundkategoriText", "KundUpphördDatum", "KundStatus", "EpostOK", "SMSOK", "KundTyp", "KundSkapad", "SenastÄndrad", "CUSTOMER_SPECIFIC_FIELD1", "CUSTOMER_SPECIFIC_FIELD2"]
lime_serviceplace: ["Kundnr", "Anlnr", "AnläggningAdress", "AnläggningPostnr", "AnläggningOrt", "Fastighetsbeteckning", "Fastighetsnyckel", "AnläggningKontakt", "AnläggningTelefon", "AvläsningsDistrikt", "LTA", "Populärnamn", "AnläggningNyckelNr", "AnläggningPortkod", "AnläggningUpphördDatum", "Anläggningskategori", "AnläggninUtskicksadress", "AnläggningSkapad", "SenastÄndrad"]
lime_service: ["Kundnr", "Anlnr", "Tjänstnr", "Mätarnr", "SenastFaktureradTomDatum", "SenasteFakturanr", "TjänstStartDatum", "TjänstSlutDatum", "Taxa", "Mätarplacering", "TjänstNyckelNr", "Årsförbrukning", "Tömningsfrekvenskod", "RHDistriktkodText", "Slanglängd", "Brunnstyp", "Behållarestorlek", "Xkoordinat", "Ykoordinat", "Lägenhet", "Tomtyta", "ÖvrigtAntal", "AntalBehållare", "Bevakning", "Mätarstorlek", "Behållare", "Avfallstyp", "TjänstSkapad", "SenastÄndrad", "Taxebenämning", "Produkt", "Delprodukt"]
secrets:
edp:
sftp:
password: "super_secret_password"
Lime Admin config¶
The package comes with a Lime Admin config that can be used for custom mapping of columns from the edp files to properties in Lime. To find the configuration head over Settings -> EDP Integration in Lime Admin. To quickly get a config up and running look at this example provided here: Addon EDP configuration