---
description: >-
  Implementation of the latest Diamant webservice to access and modify data in
  your accounting software. Here is an explanation of testing the connection.
---

# Test connection

### TrySecureLogin

Can be used to verify if the service url is correct and the account data are valid.

#### Parameters

* company (required): the value of the company in your Diamant accounting software.&#x20;

#### Example

```javascript
let result = app.businessFunction({
    functionName: "Diamant",
    methodName: "TrySecureLogin",
    company: "999"
})
```

### CreateIdentifier

Create a random and unique identifier within the company. Can be used to test if the user has enough permissions within the company.

#### Paramters

* company (required): the value of the company in your Diamant accounting software.&#x20;

#### Example

```javascript
let result = app.businessFunction({
    functionName: "Diamant",
    methodName: "CreateIdentifier",
    company: "999"
})
```

