---
title: "GetRegistrations"
canonical: "https://docs.dk.is/space/DEV/10355222/GetRegistrations"
format: markdown
---
This function is used to retrieve persons and/or companies entries registered in Iceland

## Parameters

Used to call the function

1. options  - [TRegistrationGetOptions](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355217)

## Returns

Returns the following

- Array of [TRegistrationEntry](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10357518)

 

> ⚠️ This function only returns data if a contract with Þjóðskrá and/or RSK and a contract with dkVistun for update services for the information

> ℹ️ Possible values for options.ExtraProperties
> ℹ️ 
> ℹ️ - FamilyNumber
> ℹ️ - SortedName
> ℹ️ - County
> ℹ️ - Street
> ℹ️ - House
> ℹ️ - Floor
> ℹ️ - Gender
> ℹ️ - FamilyState
> ℹ️ - ProhibitCode
> ℹ️ - Citizenship
> ℹ️ - PlaceOfBirth
> ℹ️ - SpousePersIdNumber
> ℹ️ - CurrentState
> ℹ️ - ChurchCode
> ℹ️ - ProfessionNumber
> ℹ️ - TypeOfProfession

 

 

<details>
<summary>Example .NET C# - Full Sync</summary>

```csharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using WindowsFormsApplication3.dkWS;
namespace WindowsFormsApplication3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public void SyncNation()
        {
            IItemServiceservice service = new IItemServiceservice()
            {
                BasicSecurityValue = new BasicSecurity() { Username = "authorizeduser", Password = "password" },                
            };
            var dt = new DateTime(1899, 12, 30);
            List<TRegistrationEntry> list = new List<TRegistrationEntry>();
            bool doFetch = true;
            do
            {
                var entries = service.GetRegistrations(new dkWS.TRegistrationGetOptions() { Modified = dt, MaxEntries = 400 });
                list.AddRange(entries);
                if (entries.Count() == 0)
                {
                    doFetch = false;
                }
                else
                {
                    dt = entries[entries.Length - 1].Modified.AddMilliseconds(1);
                }
            } while (doFetch);
        }
    }
}


```
</details>

> ℹ️ To get only changes after a full sync just pass the last Modified of the last entry fetched

 

 

## Related articles



> Macro (contentbylabel)

> Macro (details)
> 
> | **Related issues** |  |
> | --- | --- |