Open OData access in 1C

OData is the standard way 1C lets other programs read and change a base. You switch it on once in the settings of your 1C: create a separate user for it, tick the sections to share, then paste the address of your base and that user's name and password into Dovetly. Your own 1C password stays with you, and you can switch the user off at any time.

Before you start

  • Sign in to 1C as an administrator: only someone who may change the settings of the program can open OData.
  • Your base has to open from the internet: a base in the 1C:Fresh cloud already does. If a 1C partner or a hosting company runs your base, see the part for them below the steps.
  • The screenshots show 1C in Russian: in Romanian, English or another language the items are usually in the same places, under names in that language. The guide gives the Russian names in quotes, the way 1C shows them, with the English meaning next to them.

In 1C, step by step

  1. Open Data synchronization

    In 1C:Accounting and in 1C:Payroll and HR open «Администрирование» (Administration) in the menu on the left, then «Синхронизация данных» (Data synchronization). In 1C:Small Business, Company Management and Retail open «Настройки» (Settings), then «Синхронизация данных» under «Интеграции» (Integrations).

    1C:Accounting with Администрирование open in the menu on the left and Синхронизация данных marked
    Screenshot: 1C:Fresh, Russian interface
  2. Open the OData settings

    At the bottom of the page click «Настройки стандартного интерфейса OData» (Standard OData interface settings). In 1C:Fresh the window that opens is called «Настройка автоматического REST-сервиса».

    The Синхронизация данных page with the link Настройки стандартного интерфейса OData marked at the bottom
    Screenshot: 1C:Fresh, Russian interface
  3. Create a separate user

    On the «Авторизация» (Authorization) tab tick «Создать для использования автоматического REST-сервиса отдельные имя пользователя и пароль», a separate user name and password for this access. 1C fills in the name odata.user, and you can keep it. Type a password twice. This user can't work in 1C the way a person does, and your own password stays with you.

    The Авторизация tab with the box for a separate user ticked, the user name odata.user and a hidden password
    Screenshot: 1C:Fresh, Russian interface
  4. Load the list of sections

    Open the «Состав» (Composition) tab and click «Загрузить метаданные» (Load metadata). 1C shows the sections of your base: catalogs, documents, registers and the rest.

    The Состав tab with the Загрузить метаданные button and the list of the sections of the base
    Screenshot: 1C:Fresh, Russian interface
  5. Find a section

    You don't need to look through the whole list. Click in it, press Ctrl+F, type «Номенклатура» (your products and services), choose «По точному совпадению» (exact match) and click «Найти» (Find).

    The 1C search window with Номенклатура typed and the exact match option marked
    Screenshot: 1C:Fresh, Russian interface
  6. Tick it, then the other sections of your program

    Tick the row 1C found. Find and tick the other sections of your program the same way:

    • 1C:Small Business, Company Management and Retail: «Номенклатура», «Заказ покупателя» and «Валюты».
    • 1C:Payroll and HR: «Сотрудники», «Начисление зарплаты и взносов», «Валюта регламентированного учета» and «Валюты».
    • 1C:Accounting and other programs: «Номенклатура», «Валюта регламентированного учета», «Валюты» and the sections you want to ask about.
    The Номенклатура row found and ticked on the Состав tab
    Screenshot: 1C:Fresh, Russian interface
  7. Allow the linked objects and save

    After each tick 1C asks whether to allow access to the objects the section depends on. Click «Разрешить» (Allow); in 1C:Accounting the buttons are «Да» and «Нет», so click «Да» (Yes). 1C then opens what the ticked section can't be read without, such as customers, warehouses and sales documents. When you're done, click «Сохранить и закрыть» (Save and close).

    The 1C question about access to dependent objects with the Разрешить button marked
    Screenshot: 1C:Fresh, Russian interface

Copy the address of your base

Open your base in the browser and copy the address from the address bar, for example https://1c.mycompany.com/base/. If the address goes on after the name of the base, paste it as it is: Dovetly finds the base in it.

For a base on your own server, ask whoever published it for the address of the publication.

Paste it into Dovetly

After you sign up, Dovetly opens the window to connect 1C. Later you find it in All connectors. Fill in the three fields and click Connect. Dovetly checks that 1C lets this user in and shows the name of your organization from the base.

If your base opens with http://, Dovetly connects it too, and the steps in the connect window remind you that the password and the data then travel unprotected. Ask whoever publishes the base to switch it to https://.

  • Address of your 1C base: the one you just copied.
  • 1C user for OData: the user from step 3, odata.user unless you changed it.
  • Password of that user: the one you typed in step 3.

If a 1C partner or a hosting company runs your base

Send them this list:

  • Publish the base with the standard OData interface: on the web server, with OData switched on in the publication, over https.
  • Let Dovetly through: if access to the base is limited by address, allow 2.29.176.52. Dovetly reads your base from this address only.
  • Create the separate OData user: as in steps 3 to 7, and tick the sections of your program.
  • Send the address of the base: and the name and password of that user, so you can paste them into Dovetly.

To switch it off

In 1C open «Настройки стандартного интерфейса OData» again and untick the separate user on the «Авторизация» tab, or give it a new password. The connector can't read your base from that moment. If you gave the user a new password and want the connector back, paste the new password in Dovetly: My connectors, then 1C.

If it doesn't work

  • Dovetly says 1C didn't accept the login or password: check that you typed the user from step 3 and its password. If you don't remember the password, set a new one on the «Авторизация» tab and save.
  • Dovetly says there's no standard OData interface at the address: copy the address again while the base is open in the browser. For a base on your own server, ask whoever publishes it to switch OData on in the publication.
  • Dovetly says no section is open yet: go back to the «Состав» tab, tick the sections from step 6, allow the linked objects and save.
  • Your assistant says a section isn't open: tick that section on the «Состав» tab the way you did in steps 5 to 7, save, and ask again in a minute.
  • Dovetly can't reach your base: a base on your own server may open only inside your office. Ask whoever runs it to publish it on the internet, or to let 2.29.176.52 through.
  • Your assistant says 1C refused access: 1C let the user from step 3 in, but that user has no right to what was asked. Ask whoever set up your 1C to give it the right to read that section, and to change it if you use Make changes.
  • Dovetly or your assistant says the server didn't let the request through (HTTP 403): the request stopped before it reached 1C: the server where your base is published turned it away, for example because access is limited by address. If the base is on your own server, ask whoever runs it to let 2.29.176.52 through.
  • Dovetly or your assistant says the certificate of the site isn't valid: the https certificate of the address where your base is published has expired, doesn't match the address or isn't trusted, so Dovetly didn't send the password. Ask whoever publishes the base to renew the certificate.
  • Your assistant says 1C answered with a web page instead of data: the base seems to be under maintenance, to want you to sign in through a browser, or the hosting shows its own page. Try again in a few minutes; if it happens again, open the base in a browser and check that it opens.

Related