New Doc ID

function copy link

Purpose

This function generates a new DocID. A DocID is a string composed of 20 printable characters obtained from the compression of a GUID. Generally, the NewDocID is used to set a primary key that has the DO_ID concept.

Syntax

string id = NewDocID()

Arguments

This function has no arguments.

Return value

A string is returned of 20 printable characters obtained by the compression of a GUID.

  • It is possible to reconvert the DocID into a GUID using the DocIDToGuid function and vice versa with the GUID2DocID function.

Changed on: 15/12/2022 / From version: 9.0.3940