A
A
Alexander Ivanov2021-02-02 10:15:39
1C
Alexander Ivanov, 2021-02-02 10:15:39

How to get / set the creation date of a 1C document?

Hello!

How to determine the creation date of a document in 1C using a query? It is the date of creation, not the date of the document.
I need to upload documents to an external system, I am almost not familiar with 1C, but it was a surprise for me that there is no such standard field that can be obtained in a request.

If there is no such field, how can the creation date be substituted when a user creates a document? I tried to read the forums, but did not find the answer, I will be glad for any help!

1C 8.3. Document type - Outgoing Cash Order

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Shamin, 2021-02-02
@aschurf

Create the CreationDate attribute for the document
In the object (document) module, write the following code:

Если ЭтоНовый() Тогда
    ДатаСоздания = ТекущаяДата();
  КонецЕсли;

The code will work for new documents.

K
Konstantin, 2021-02-02
@fosihas

Not on a regular basis. Unless such props are specially created.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question