Files
Customer/onces/AA/AAGN/AAGN#35836.sql
Arthur Egberink 7967565a39 AAGN#35836 -- Koppeling Gemeente Nijmegen met Unica
svn path=/Customer/; revision=28544
2016-03-18 13:55:28 +00:00

66 lines
1.9 KiB
SQL

-- Customer specific once-script AAGN#35836.
--
-- (c) 2015 Facilitor bv.
SET ECHO ON
SET DEFINE ON
column fcltlogfile new_value fcltlogfile NOPRINT;
SELECT UPPER (USER) || '_AAGN#35836' || '.lst' AS fcltlogfile FROM DUAL;
spool &fcltlogfile
SET DEFINE OFF;
-- Voeg de api toe om opdrachten van Unica via de api_ordsoap af te kunnen handelen.
INSERT INTO fac_api (fac_api_name,
fac_api_omschrijving,
fac_api_filepath,
fac_api_loglevel,
fac_api_stylesheet,
fac_api_options_json)
VALUES ('UNICA2OPDR',
'Statuswijzigingen ontvangen van Unica.',
'appl/api/api_opdrsoap.asp',
0,
'cust/aaxx/import/Unica/UnicaStatusResponse.xsl',
'{"MLDremark":6, ORDremark":5}');
-- en de persoon
INSERT INTO prs_perslid (prs_perslid_module,
prs_srtperslid_key,
prs_afdeling_key,
prs_perslid_naam,
prs_perslid_oslogin,
prs_perslid_apikey,
prs_perslid_flags)
VALUES ('PRS',
1,
1,
'Unica koppeling',
'_UNICA_KOPPELING',
'KwNqHvluOIOWQrxeYveXZOBsqkYjYvRz',
4);
-- voeg de API user toe aan de autorisatiegroep voor leveranciers.
INSERT INTO fac_gebruikersgroep (prs_perslid_key, fac_groep_key)
(SELECT prs_perslid_key, 122
FROM prs_perslid
WHERE prs_perslid_naam = 'Unica koppeling');
-- koppel de api-user als contactpersoon aan het bedrijf
INSERT INTO prs_contactpersoon (prs_perslid_key, prs_bedrijf_key, prs_contactpersoon_naam)
(SELECT prs_perslid_key, 2665, prs_perslid_naam
FROM prs_perslid
WHERE prs_perslid_naam = 'Unica koppeling');
COMMIT;
BEGIN
adm.systrackscriptid (
'$Id$');
END;
/
SPOOL OFF
QUIT