Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Function buildUuid

    • Build a Universally Unique Identifier (uuid) from possibly limited data. An attempt will be made to resolve omitted components, but an identifier and at least one of documentName, parent, and pack are required.

      Parameters

      • context: {
            documentName?: string;
            id: string;
            pack?: string | null;
            parent?: Document<object, DocumentConstructionContext> | null;
        }

        Data for building the uuid

        • OptionaldocumentName?: string

          The document name (or type)

        • id: string

          The identifier of the document

        • Optionalpack?: string | null

          The document's compendium pack, if applicable

        • Optionalparent?: Document<object, DocumentConstructionContext> | null

          The document's parent, if any

      Returns string | null

      A well-formed Document uuid unless one is unable to be created