OData - get additional props from Entity

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Just came
Rating: 0
Joined: May 17, 2021
Company:

Dear collegues,
I try to access to my database via Odata interface. I stuck with little problem - I want to access user-provided data in Entity, that places in "additional props" (Я не знаю, как точно это называется в английской конфигурации - "дополнительные реквизиты" короче)

For example, I create user-defined property to entities "Warehouses" (Склады). Let's call it "space", where user can enter square meters of warehouse.

But when I get Entity by Rest client, array of additional props is empty - [].

How to get additional props by Odata in 1C>

 
#2
People who like this:0Yes/0No
Administrator
Rating: 14
Joined: Oct 3, 2019
Company:

Dear Denis,

when you publish the OData interface, you use a special data processor to specify what data will be available through the REST API.

Since additional attributes of objects in typical 1C programs are usually stored in the "AdditionalAttributesAndInfoSets" catalog, try to open access via the REST API for this catalog as well.

By the way, our blog has an article on working with OData: https://1c-dn.com/blog/synchronization-between-a-mobile-app-and-a-database-server-on-the-1c-platform/

And please Denis - our forum is read by developers from different countries who do not always understand Russian. Therefore, for general convenience, we use English.

 
Subscribe
Be the first to know tips & trick on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.