Functions Export
Functions Export
concatStri prefixRequThis function concatenates a string with a prefix or a suffix.EXAMPLE 1: In the following transf
convertCo outputFormaThis function converts the countries into format compliant withISO 3166-1. { "sourcePat
manipulat sourceDateFThis function converts one date format into another after JSONPathtransformations. Use case
MPLE 1: In the following transformation example, functionconcatString will be applied to allsource logon names (SAM-account
hISO 3166-1. { "sourcePath": "$.addresses", "preserveArrayWithSingleElement": true, "optional": true, "targetPath":
Pathtransformations. Use cases: A Java date format can be converted into another Java dateformat. Example: "2018–02–2811:
ce logon names (SAM-account user names) read fromMicrosoft AD, adhering a prefix_ips and a suffix 123in the target system.
optional": true, "targetPath": "$.addresses", "functions": [ { "type": "convertCountryCode", "outputFormat": "alph
mat. Example: "2018–02–2811:00:00.000" to"02/28/2018"A date format based on Unix Time Stamp can beconverted into a Jav
suffix 123in the target system. For example, asAMAccountName namejohnsmith from the source system will beprovisioned as
ode", "outputFormat": "alpha2", "inputAttributes": ["country"], "outputAttribute": "country" } ]}EXAMPLE:In the
mp can beconverted into a Java one. That means, if the source systemstores a date as a number of milliseconds, after thetrans
e system will beprovisioned as ips_johnsmith123 in the targetsystem. Example {"user": { "mappings": [{ "sourcePath": "$.s
ountry" } ]}EXAMPLE:In the following transformation example, functionconvertCountryCode will be applied to allsource co
of milliseconds, after thetransformations this number will be converted and written in thetarget system as a human readable
appings": [{ "sourcePath": "$.sAMAccountName[0]", "targetPath": "$.userName", "functions": [{ "function": "concatString",
will be applied to allsource countries read from the source system, converting them in thewanted ISO format. For example, th
t system as a human readable date. Example:"Date(1519809649123–0240)" to"2018–02–28 UTC+1"NoteBear in mind the follo
[{ "function": "concatString", "prefix": "ips_", "suffix": 123 } ]}... }EXAMPLE 2: In the following transformation example, func
ed ISO format. For example, the countryname United States from the source systemwill be provisioned in the target system as
C+1"NoteBear in mind the following restrictions aboutUnix Time Stamp format:It is mainly applicable for SAP SuccessFactorscon
transformation example, functionconcatString will be applied to allsource user IDs in a source system, converting them into un
isioned in the target system as:US if theoutputFormat isalpha2;USA if theoutputFormat isalpha3;840 if theoutputFormat isnum
able for SAP SuccessFactorsconnectors. If the source date format contains a timezone (GMT,EST, ACT, etc.), after converting fro
ystem, converting them into uniforme-mails in the Microsoft Azure AD targetsystem. In this case, the concatStringfunction take
;840 if theoutputFormat isnumeric;United States if theoutputFormat isfullName.
, ACT, etc.), after converting from UnixTime Stamp, the date will be displayedas a UTC offset. During calculation, the timezone i
, the concatStringfunction takes the value of the aad.domain.nameproperty (which is the name of a verified Microsoft Azure A
ring calculation, the timezone is ignored – themilliseconds are converted to a "pure" date. Thetimezone is displayed (as UTC off
of a verified Microsoft Azure AD domain)and adheres it to the userId. For example, asource user ID johnsmith123 can produce
mezone is displayed (as UTC offset) but not takeninto account. The manipulateDate function supports thefollowing operations:
ID johnsmith123 can produce atarget principal namejohnsmith123@mail.acme.com.Example
{"sourcePath": "$.userId","t
ports thefollowing operations: (Java) Incrementing the date by the"+" sign or when there is no sign(Java) Decrementing the da
{"sourcePath": "$.userId","targetPath": "$.emails[0].value", "correlationAttribute": true, "functions": [{"function": "concatSt
ign(Java) Decrementing the date by the"–" sign (Unix Time Stamp) Converting a number ofmilliseconds into a human readable
ctions": [{"function": "concatString","suffix": "@%aad.domain.name%"}]},...
econds into a human readable dateExampleReads and writes the current date in standardJava dateformat
{"targetPath": "$
ateformat
{"targetPath": "$.EmployeeType.ValidityPeriod.StartDate","sourceVariable": "currentDate","functions": [{"functi
entDate","functions": [{"function": "manipulateDate","targetDateFormat" : "yyyy-MM-dd'T'HH:mm:ss'Z'","sourceDateFormat"
mm:ss'Z'","sourceDateFormat" : "MM/DD/YYYY","years":"months": // You can also, for example, increment the date with 3 da
, increment the date with 3 days and 2 hours"days": "3""hours": "+2" "minutes": "seconds": }...}ExampleReads a given date in U
ExampleReads a given date in Unix TimeStamp format (in milliseconds) and writes theconverted value in the target system as a
value in the target system as a standardJava dateformat {"targetPath": "$.EmployeeType.ValidityPeriod.StartDate","sourc
alidityPeriod.StartDate","sourcePath": "$date","functions": [{"function": "manipulateDate", "sourceDateFormat": "Dat
"sourceDateFormat": "Date(milliseconds)""targetDateFormat": "yyyy-MM-dd"}...}