Skip to main content

Knowledge Base
Knowledge Base

Cedric BlancSemarchy Team
Director, Product Management at Semarchy

How to log user connection/login to applications

You may want to log user connections to your Semarchy application. The built-in audit trail does not keep track of user connections, but only of user actions (creating / updating records, starting a workflow, ...).
This article explains how to use the Semarchy platform mechanisms to log this information into a table (a regular table or a model entity).

The proposed method relies on model variables to persist this information into the database.
Model variables are typically used to implement security rules or to retrieve information from database or LDAP, when this information does not need to be duplicated... (More)

Cedric BlancSemarchy Team
Director, Product Management at Semarchy

How to manage the xDM platform with REST and Powershell

Since Semarchy xDM v5, web services (REST API) are available to manage the Semarchy xDM platform.

This article gives you some Powershell commands that you can use to write your own commands and manage your platform. Alternatively, you can create your requests in a REST client such as Postman.

Common commands - authentication parameters

Before calling any service, always run the following commands:


#connection to xDM using basic authentification
$user = "semadmin"
$pass = "semadmin"
$pair = "$($user):$($pass)"
$encodedCreds = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($pair))
$basicAuthValue = "Basic $encodedCreds"
$header = @{Authorization = $basicAuthValue}
$host = "localhost"
$port = "8088"
$base_url = "http://$($host):$($port)"... (More)
Zahuur MohamudSemarchy Team
Customer Success Consultant at Semarchy

How to set up Cascading Filters in xDM

The idea of cascading filters is that as a user makes certain selections then xDM can limit other selections. A common example is the linked ideas of Country → State → City as shown in this diagram:

As you enter a person, when you select a country then your options for State and City should be limited by the parent value.

Setting up Steppers

The key concepts are that while entering data in a Stepper you are selecting values which are References to another entity. You can define a Filter for the Picker which allows you to pick values... (More)

Cedric BlancSemarchy Team
Director, Product Management at Semarchy

How to delete records?

Deleting records can be performed in many ways: directly from the xDM application, using SQL, or using the Rest API. In any case, it needs some model configurations. This article explains what should be configured to enable deletion, and how to perform the record deletion in all possible ways.

Enable deletion

To support any record deletion, you must enable deletion on the concerned entity and check all reference relationships to this entity:

  • In the model design, select the Delete Enabled option in the entity properties:
  • Check each relation defined in the Is Referenced By menu for your entity:
  • In the... (More)