AddressService
- 1 Configuration
- 2 Parameters
- 2.1 Example
- 3 Address providers
- 3.1 Excel/CSV
- 3.1.1 Configuration
- 3.1.2 Parameters
- 3.1.3 File: CSV Provider
- 3.1.4 Configuration
- 3.1.5 File: Excel Provider
- 3.1.6 Configuration
- 3.2 Generic SQL
- 3.2.1 Configuration
- 3.2.2 Parameters
- 3.2.3 Query
- 3.3 Zefix
- 3.3.1 Configuration
- 3.3.2 Zefix (HTTP)
- 3.3.3 Zefix (Discontinued SOAP/XML option)
- 3.4 ETV Access
- 3.4.1 Configuration
- 3.4.2 Parameters
- 3.5 inÂnoÂsolÂvcity (formerly NEST)
- 3.5.1 Configuration
- 3.5.2 Parameters
- 3.6 Microsoft Exchange
- 3.6.1 Configuration
- 3.6.2 Parameters
- 3.7 SAP C4C (Cloud for Customer)
- 3.7.1 Configuration
- 3.7.2 Parameters
- 3.7.3 Examples
- 3.7.4 CorporateAccount
- 3.7.5 IndividualCustomer
- 3.7.6 Contact
- 3.8 SharePoint Online
- 3.8.1 Configuration
- 3.8.2 Parameters
- 3.9 Generic HTTP
- 3.9.1 Configuration
- 3.9.2 Parameters
- 3.9.3 Access to user information
- 3.1 Excel/CSV
The new generation of OneOffixx address providers performs the search on the OneOffixx server and no longer on the client.
Configuration
All new address providers, are enclosed in a provider that serves as an interface between the new and old worlds. Example:
<!-- AddressService -->
<AddressProvider id="E10A8313-A92D-4CB2-A12B-9AEB58F39207" order="1" active="true" ServiceUrl="http://localhost:41380/api/v1/Address">
<!-- Insert configuration of server-side address providers here -->
</AddressProvider>
Parameters
id GUID that identifies the AddressService. Always
E10A8313-A92D-4CB2-A12B-9AEB58F39207
order Specifies sorting with other address providers in the recipient dialog.
active Indicates if the address provider is available.
ServiceUrl Optional. Configured in rare cases if the AddressService running in parallel from the service endpoint for synchronization should not be used.
Example
<!-- AddressService -->
<AddressProvider id="E10A8313-A92D-4CB2-A12B-9AEB58F39207" order="1" active="true">
<!-- serverside Excel/CSV address provider -->
<AddressProvider id="62C19ADA-826B-4EBC-848D-B32E957D78C6" Title="myCSVFile.csv">
<SearchParameters>
<SearchParameter Name="firstName" Label="Vorname/Name" Type="String" Length="100" Sort="1" />
</SearchParameters>
<FilePath>myCSVFile.csv</FilePath>
<Provider Name="CSV"></Provider>
<Icon></Icon>
<Mapping>
<!-- Mapping -->
</Mapping>
</AddressProvider>
</AddressProvider>
NOTE
The AddressService will not work without a configured security key. This must be generated in the dashboard beforehand.
Address providers
Excel/CSV
Configuration
<!-- AddressService -->
<AddressProvider id="E10A8313-A92D-4CB2-A12B-9AEB58F39207" order="1" active="true">
<!-- serverside Excel/CSV address provider -->
<AddressProvider id="62C19ADA-826B-4EBC-848D-B32E957D78C6" Title="myCSVFile.csv">
<SearchParameters>
<SearchParameter Name="firstName" Label="Vorname/Name" Type="String" Length="100" Sort="1" />
</SearchParameters>
<FilePath>myCSVFile.csv</FilePath>
<Provider Name="CSV"></Provider>
<Icon></Icon>
<Mapping>
<!-- Insert mapping here -->
</Mapping>
</AddressProvider>
</AddressProvider>
Parameters
id 62C19ADA-826B-4EBC-848D-B32E957D78C6
SearchParameter List of all possible inputs.
Name Unique id for the parameter. Corresponds to the column headers for CSV or for Excel files in which to search.
Label Displayed text in front of the input field. Type Input type: String (text), Long (number), Boolean (Yes/No) or Date. Length Maximum length for strings
Sort Sort value against the other parameters
Mapping Mapping to OneOffixx contact fields. See default contact mapping.
Provider Provider, either CSV or EXCEL. Specified in the Name attribute.
Title The title that will be displayed to the user.
Icon Base64 icon that will be displayed to the user in the recipient dialog.
File: CSV Provider
Configuration
HasHeaders Default value:
True
if the CSV file has headers. OtherwiseFalse
. If there are no headers, the columns will be numbered (adjust SearchParameters and mapping accordingly).Delimeter Separator. Default value:
";"
.
File: Excel Provider
Configuration
HasHeaders Default value:
True
, if the Excel file has headers. OtherwiseFalse
. If there are no headers, the columns will be numbered as in Excel (A, B...) (adjust SearchParameter and Mapping accordingly).Sheet The Excel sheet to use. If no value is specified, the first sheet will be used.
Generic SQL
Configuration
Parameters
id 7E50AA46-A035-4F11-B44F-BBCBAB4780B7
SearchParameter List with all possible entries.
*Name__ Unique id for the parameter. Corresponds to the named parameter for the sql query.
Label Displayed text in front of the input field Type Input type: String (Text), Long (Number), Boolean (Yes/No) or Date (Date) Length Maximum length for strings
Sort Sort value against the other parameters
Mapping Mapping to OneOffixx contact fields, see Mapping
ConnectionString ConnectionString. May be encoded.
ConnectionProvider System.Data.Odbc, System.Data.SqlClient, MySql.Data.MySqlClient, Oracle.ManagedDataAccess.Client.
Title The title that will be displayed to the user.
Icon Base64 icon that will be displayed to the user in the recipient dialog.
Query
The SQL query must be in the format for the respective target database. Since all search parameters are treated as SQL parameters, the respective SQL parameter syntax of the target system must be followed.
Example: MS SQL
Example: MySQL
CAUTION
For Oracle, Odbc and PostgreSQL the order of the placeholders in the query must match the order of the "SearchParameters!
Example: Oracle
Example: Odbc
Example: PostgreSQL
CAUTION
The restriction of the sequence has the consequence that a parameter can be used exactly once in the query.
Â
The following MS SQL query cannot be translated directly to Oracle or Odbc:
If a parameter needs to be compared on more than one column, then these columns can be combined in the SELECT using the respective function of the database system:
Example: Odbc
Zefix
Configuration
Zefix (HTTP)
Parameters
id DC124CDC-C2C0-4379-B9D4-079905E68DEA
ServiceUser The user with which the provider logs into the Zefix service.
ServicePassword The password with which the provider logs into the Zefix service: may be encrypted.
Mapping: optional mapping to customize the filled information, see default contact mapping. Mapped from object
CompanyFull
. Available properties can be found at https://www.zefix.admin.ch/ZefixPublicREST/swagger-ui/index.html .
Above is an example of mapping the most common parameters. Note that you must map all the desired parameters.
Zefix (Discontinued SOAP/XML option)
Parameters
id F6CA6CC9-B201-4556-886E-C6AF5F9460E4
ServiceUser The user with which the provider logs into the Zefix service.
ServicePassword The password with which the provider logs into the Zefix service: may be encrypted.
Uri Optional service url. Default: http://www.e-service.admin.ch/ws-zefix-1.6/ZefixService?wsdl
Mapping: Optinal mapping to customize the filled information. Mapped from the object
companyFullInfoType
. "Subordinate" properties can be accessed via dot (.
). For example:address.addressInformation.street
. Similarly, enumeration can be accessed via zero-based indexer. Example:translation[0].Value
.
ETV Access
Configuration
Parameters
id BD633F5C-816A-4B7C-9546-EEDE889B8BDA
ServiceUser The user with which the provider logs in to the ETV Access service.
ServicePassword The password with which the provider logs into the ETV Access service: may be encrypted.
ServiceId The service id that the provider uses when accessing ETV Access.
SecurityUri Optional service url to the authentication endpoint. Default: https://secure360.directoriesdata.ch/administration/v5/security.asmx?wsdl
SearchAddressUri Optional service url to the address search endpoint. Default: http://service360.directoriesdata.ch/search/v5/searchaddress.asmx?wsdl
Mapping: Optinal mapping to customize the filled information. Mapped from the 'EntryAdd' object. Available properties can be found in the XSD available at http://service360.directoriesdata.ch/search/v5/output/AddressData.xsd. "Subordinate" properties can be accessed via dot (
.
).
The example above shows a mapping of the most common parameters of a private contact. Note that you must map all the desired parameters.
inÂnoÂsolÂvcity (formerly NEST)
innosolvcity address provider by Innosolv. This address interface addresses the "FindSubjectContactPerson" endpoint from the "BasisService".
Configuration
Example 1 (simple)
Example 2 (detailed)
Parameters
id 28F86C73-3A64-4BFF-AD87-CBDA92ED9170
Title Title of the address provider. Default: "inÂnoÂsolÂvcity Kontaktperson" (for UI language German).
NestVersion Version of the inÂnoÂsolÂvcity service.
2020
, if the inÂnoÂsolÂvcity release 2020 (or newer) is installed.Uri Uri of the inÂnoÂsolÂvcity service endpoint (may be encrypted).
UserName The user with which the provider logs into inÂnoÂsolÂvcity (may be encrypted).
Password The password with which the provider logs into inÂnoÂsolÂvcity (may be encrypted).
Debug
true
whether additional information should be logged (request and response)AllAddressTypeDefault
false
if the "AllAddressType" search parameter should be disabled. By using the "AllAddressTypes" search parameter (if configured), the user can change this option for the current search.ActiveOnlyDefault
true
if the "ActiveOnly" search parameter should be active. The "ActiveOnly" search parameter (if configured) allows the user to change this option for the current search.SearchParameters Here the search mask can be configured (see sample configuration). If this element is not configured, a default search mask is displayed (available in DE, EN, FR, IT; checkbox "AllAddressTypes" is not displayed). The following parameters can be used in the inÂnoÂsolÂvcity search:
First name
Last Name
Date of birth (Date)
StreetHouse
Postal code (from NEST 2018)
Place name (from NEST 2018)
ID_Subject (Long)
AllAddressTypes (Boolean) (from NEST 2018)
ActiveOnly (Boolean) (from inÂnoÂsolÂvcity 2020)
Mapping Optional contact mapping, see default contact mapping. Possible
source
fields which are retrieved by inÂnoÂsolÂvcity and made available for mapping:AddressType
AddressAddition
ActiveInactive (from inÂnoÂsolÂvcity 2020)
ActiveInactive_Cd (from inÂnoÂsolÂvcity 2020)
Salutation
DisplayName
Letter salutation
Letter address
Email
Company Name
Date of birth
ID_Subject
ID_Subject_assignment (from inÂnoÂsolÂvcity 2020)
Mobile
Name
Nation
City
POSTCODE
PostcodeCity
PostcodeAdditional digit
StreetHouse
StreetAddition
SubjectType_Cd (from inÂnoÂsolÂvcity 2020)
Telefax
Telephone
Title
first name
Additional name
Search parameters with translated labels:
Entries in the Global Translations:
Microsoft Exchange
This address provider allows to access contacts in Microsoft Exchange via the EWS interface. For this a "Service Account" from your Active Directory is required.
Configuration
Online
To access Exchange Online, authentication via OAuth is required. For this, an "App Registration" in Azure Active Directory is required. Follow these steps:
Log in via the Azure Portal.
Select your Azure Active Directory & copy the
TenantId
.In "App registrations" create a new one with any name you want.
In the "App" under "Authentication" enable the "Treat application as a public client" option.
Also in "Authentication" add
urn:ietf:wg:oauth:2.0:oob
as a "Redirect URI"Under "Manifest" insert the following entry under
requiredResourceAccess
within der square brackets:In "Overview" copy the
ClientId
.
You can also read this configuration in the Microsoft Documentation.
After completing the registration, store the ClientId
as AppClientId
and the TenantId
as TenantId
.
OnPrem
Recommended mapping
The following mapping is recommended, but can be customized as desired.
Parameters
id 24425bd4-d6f1-4e2c-a323-3cc63fb5f07b.
Title Title of the address provider. Default: "Exchange"
EWSUrl Uri of the Exchange service endpoint. For Exchange Online this is always "https://outlook.office365.com/EWS/Exchange.asmx"
UserName The user with which the provider logs on to Exchange.
Password The password with which the provider logs on to Exchange (can be encrypted).
AppClientId The AppClient id of the EWS app configured in AAD (Exchange Online only)
TenantId The TenantId of the AAD (Exchange Online only)
Debug
true
whether additional information should be logged. Logged are the existing values which can be used for mapping.IgnoreSslErrors Ignore invalid SSL certificates or not. Default:
false
. Only partially necessary for OnPrem option.Mapping Optional mapping to customize the filled information.
The following data can be accessed via the default contact mapping:DisplayName
GivenName
Initials
CompanyName
EmailAddresses
Dictionary of type EmailAddressDictionary und Enum EmailAddressKey as Key
PhysicalAddresses
Dictionary of type PhysicalAddressDictionary und Enum PhysicalAddressKey as Key
PhoneNumbers
Dictionary of type PhoneNumberDictionary und Enum PhoneNumberKey as Key
ContactSource
Department
JobTitle
Manager
Surname
Alias
Certain values from the
dictionaries
are already extracted for the mapping and offered as simple values:PhysicalAddressDictionary[PhysicalAddressKey.Business]
City → Contact.Address.City
Street → Contact.Address.Street
PostalCode → Contact.Address.PostalCode
State → Contact.Addess.State
CountryOrRegion → Contact.Address.CountryOrRegion
PhoneNumberDictionary
PhoneNumberKey.BusinessPhone → Contact.Phone.Business
PhoneNumberKey.CompanyMainPhone → Contact.Phone.CompanyMainPhone
PhoneNumberKey.Mobile → Contact.Phone.Mobile
PhoneNumberKey.BusinessFax → Contact.Fax.Business
MailBox
MailBox.Address → MailBox.Address
Default Mapping The default mapping which takes effect if no mapping is defined includes the following properties (field names from Exchange):
GivenName
Surname
JobTitle
Profession
MiddleName
CompanyName
Department
BusinessPhone
CompanyMainPhone
BusinessFax
MobilePhone
PhysicalAddress.Business
City
PostalCode
Street
Mailbox.Address (Primary Email)
Â
SAP C4C (Cloud for Customer)
With the SAP C4C address provider you can access your contact data in the SAP Cloud for Customer. This requires a "Service Account" in the corresponding SAP C4C Cloud.
Configuration
Â
Parameters
id 91d36523-bae9-424e-9618-fae6162d20f7
Title Title of the address provider. Default: "SAP C4C"
EndpointUrl Url of the SAP C4C service endpoint.
UserName The user with which the provider logs on to the SAP C4C service.
Password The password with which the provider logs on to the SAP C4C service (can be encrypted).
SearchParameter List with all possible entries.
*Name__ Unique id for the parameter. Corresponds to the placeholder in the Odata Query. Label Displayed text in front of the input field Type Input type: String (text), Long (number), Boolean (Yes/No) or Date (date) Length Maximum length for strings
Sort Sort value against the other parameters
Query The query for the request at the service is written using OData v2. The search parameters can be referenced using
{SearchParamId}
within the query. At this point, further documentation of the query is omitted, as three examples of configuration are shown below.Mapping The mapping to be defined is a default contact mapping, which must contain the name of the property of the corresponding entity as
SourceAttribute
. The mapping must be configured. There is no default mapping that takes effect if one has not been explicitly defined.Icon Base64 icon that is displayed to the user in the recipient dialog.
The ODataQuery
can also be used to load dependent entities. It must be noted that dependent entities are always returned as an array by the service. This means that for the SourceAttribute
the index of the array must also be specified: RelatedEntityCollection[0].RelatedEntityPropertyName
.
Examples
These examples refer to the entities of the Api V2.
CorporateAccount
IndividualCustomer
Contact
Â
SharePoint Online
With the SharePoint Online address provider you can access your SharePoint lists.
Configuration
To access SharePoint Online, authentication via OAuth is required. This requires an "App Registration" in Azure Active Directory. Perform the following steps:
Log in via the Azure Portal.
Select your Azure Active Directory & copy the
TenantId
.In "App registrations" create a new app with any name you like.
In "API permissions" add the
Microsoft Graph Sites.Read.All
permission (requires Admin Consent).In "Certificates & secrets" add a new client secret.
Parameters
id 5da866b2-e63a-11eb-ba80-0242ac130004*.
Title Title of the address provider. Default: "SharePoint"
HostUrl Host-Url of SharePoint Online (without https://) e.g.
company.sharepoint.com
.TenantId The TenantId of the AAD
ClientId The AppClient ID of the App configured in the AAD
ClientSecret Client Secret of the APP configured in the AAD (can be encrypted).
Site Name of the site in which the list is created.
List Name of the list
SearchParameter List with all input options
Name Unique id for the parameter. Corresponds to the placeholder in the Odata query.
Label Displayed text in front of the input field
Type Input type: String (text), Long (number), Boolean (Yes/No) or Date (date)
Length Maximum length for strings
Sort Sort value against the other parameters
Query The query for the query on the service is written with OData v4. From the list of supported operations the following are possible:
expand
,filter
,orderby
,select
,top
. The columns from the list are always stored infields/
, so it is important that all operations (excepttop
) always have the prefixfields/
. E.g.<select>fields/firstname</select>
. The search parameters can be referenced within the query using{SearchParamId}
.Expand The
Expand
operator can be used to expand multi-dimensional/linked fields. Classic examples are linked persons and address. Default isfields
.Filter The
Filter
operator can be used to filter the entries based on the entered search values. List of comparison operators. Caution, note restrictions below.OrderBy The
OrderBy
operator can be used to sort the entries by specific columns. Default is unsorted.Select with the
Select
operator the returned columns/information can be restricted. Default is all information selected.Top The
Top
operator can be used to limit the maximum number of returned results. Default is 50.
Debug
true
whether additional information should be logged (available values with names for the mapping, more detailed error messages).Mapping For SharePoint lists it is mandatory to define a default contact mapping. Without mapping the entries cannot be processed. For mapping the column names are used as
SourceAttribute
. Exceptions are fields of typelocation
andlink
.Location
Locality information is automatically split by Sharepoint into several columns. These then do not contain the column name, but the English designation: Street, PostalCode, City etc.. The complete address is added with DispName. If there are several columns of type
location
in a list, they will be numbered from left to right, starting with the second address with 0, e.g.Street
,Street0
,Street1
for three addresses.OneOffixx also prepares the addresses itself with
ColumnName.address.City
and so on.
Link
Links are returned by SharePoint splitted into url and display name:
ColumnName.Url
,ColumnName.Description
.
Icon Base64 icon displayed to the user in the recipient dialog.
Â
Generic HTTP
The Generic HTTP Address Provider allows you to access arbitrary configurable HTTP/HTTPS endpoints. In the simplest configuration mode, you specify a destination address and then convert the resulting data into contacts. Since many services require authentication, it is possible to define a step sequence of HTTP requests to fetch via the provider, for example, "access tokens" or other data and reuse it for further HTTP requests.
Configuration
The following configuration simulates a typical scenario where an "AccessToken" must be fetched via UserName/Password and this is then reused.
Parameters
id 09C886F1-4B5A-4372-8CB4-4AA6D2F7A47B
Title Title of the address provider. The name of the system to be addressed is recommended here.
Icon Base64 icon that will be displayed to the user in the recipient dialog.
SearchParameter List of all possible inputs
Name Unique id for the parameter. Corresponds to the placeholder in the Odata Query.
Label Displayed text in front of the input field
Type Input type: String (text), Long (number), Boolean (Yes/No) or Date
Length Maximum length for strings
Sort Sort value against the other parameters
Debug Boolean - whether additional information should be logged (request and response).
Configuration In this part the sequence of HTTP requests is defined.
Secret To avoid plain text passwords in configurations, secrets can be added as
<Secret Name="..." Value="{c[...]}" />
. At runtime the password is decrypted and can be used as a placeholder forRequests
.Step A step comprises a
Request
and aResponse
. An unlimited number of steps can be defined. During each stepProperties
orContacts
can be added to the result list.Request This element is used to build the HTTP request.
Method (attribute) HTTP method to be used (
GET
,POST
, ...)Url (attribute) Target URL of the request. Placeholders can be used in the URL using this notation:
{Placeholder}
. Placeholders are always URL-encoded.Header Any number of HTTP headers can be specified. Placeholders can also be used via the
{Placeholder}
syntax.Body A body can be defined. Placeholders can also be used via the
{Placeholder}
syntax. No encoding is done here.FakeResponse To test an endpoint, the
FakeResponse
element can be used to define a configurable return value.
Response The
Response
can be used to access the HTTP response. AResponse
can either create one or moreProperty
elements or perform a contact mapping.Property This element can be used to read a specific value from the HTTP response using a
JsonPath
or aXPath
. The value is then available via the{Placeholder}
for further requests via the configured name.Contacts The actual contacts are searched for via this element. A
JsonPath
or aXPath
must be specified here. The data is then converted into contacts via the contact mapping.
Access to user information
The {Identity.PrimarySid}
and {Identity.Name}
placeholders can be used to access the current user SID and user name respectively.
PrimeSoft AG, Bahnhofstrasse 4, 8360 Eschlikon, Switzerland