Lime Web Components API Documentation - v7.4.0
    Preparing search index...

    Type Alias LimeObjectSystemProperties

    The system properties managed by the platform on every Lime object.

    These are the underscore-less names used on hydrated LimeObjects after the runtime normalizes a raw record. Raw records returned by query repositories carry the same fields with a _ prefix; see LimeObjectRecord.

    type LimeObjectSystemProperties = {
        createdtime: string;
        descriptive: string;
        id: number;
        timestamp: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    createdtime: string

    ISO 8601 timestamp when this object was created.

    This is an audit field that records when the record was first created in the system. The timestamp includes date and time with timezone.

    import { PlatformServiceName } from '@limetech/lime-web-components';

    const repository = platform.get(PlatformServiceName.LimeObjectRepository);
    const limeObject = repository.getObject('company', 1234);

    if (limeObject) {
    const created = new Date(limeObject.createdtime);
    console.log(`Created on: ${created.toLocaleDateString()}`);
    }
    descriptive: string

    Human-readable text representation of this object.

    This is the display name shown in lists, dropdowns, and references. Calculated from labels set on the LimeType's properties. Can be a single field or a combination of multiple fields.

    import { PlatformServiceName } from '@limetech/lime-web-components';

    const repository = platform.get(PlatformServiceName.LimeObjectRepository);

    const company = repository.getObject('company', 1234);
    const person = repository.getObject('person', 5678);

    console.log(company?.descriptive); // "Acme Corporation"
    console.log(person?.descriptive); // "John Doe" (firstname + lastname)
    id: number

    Unique identifier for this object.

    The ID is a positive integer that uniquely identifies this record within its LimeType. IDs are auto-generated and immutable.

    import { PlatformServiceName } from '@limetech/lime-web-components';

    const repository = platform.get(PlatformServiceName.LimeObjectRepository);
    const limeObject = repository.getObject('company', 1234);

    if (limeObject) {
    console.log(`Object ID: ${limeObject.id}`); // "Object ID: 1234"
    }
    timestamp: string

    ISO 8601 timestamp of the last modification to this object.

    Updated automatically whenever any property of the object changes.

    import { PlatformServiceName } from '@limetech/lime-web-components';

    const repository = platform.get(PlatformServiceName.LimeObjectRepository);
    const limeObject = repository.getObject('company', 1234);

    if (limeObject) {
    const updated = new Date(limeObject.timestamp);
    const minutesAgo = (Date.now() - updated.getTime()) / 60_000;
    console.log(`Last updated ${Math.floor(minutesAgo)} minutes ago`);
    }