@dvelop-sdk
    Preparing search index...

    Function createBoEntity

    • Create a business object entity.

      Type Parameters

      • E = any

        Type for Entity. Defaults to any.

      Parameters

      Returns Promise<void>

      import { createBoEntity } from "@dvelop-sdk/business-objects";

      await createBoEntity({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      entity: {
      employeeId: "1",
      firstName: "John Micheal",
      lastName: "Dorian",
      jobTitel: "senior physician"
      }
      });

      You can also use generics:

      import { createBoEntity } from "@dvelop-sdk/business-objects";

      interface Employee {
      employeeId: string;
      firstName: string;
      lastName: string;
      jobTitel: string;
      }

      await createBoEntity<Employee>({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      entity: {
      employeeId: "1",
      firstName: "John Micheal",
      lastName: "Dorian",
      jobTitel: "senior physician"
      }
      });
    • Create a business object entity.

      Type Parameters

      • T
      • E = any

        Type for Entity. Defaults to any.

      Parameters

      Returns Promise<T>

      import { createBoEntity } from "@dvelop-sdk/business-objects";

      await createBoEntity({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      entity: {
      employeeId: "1",
      firstName: "John Micheal",
      lastName: "Dorian",
      jobTitel: "senior physician"
      }
      });

      You can also use generics:

      import { createBoEntity } from "@dvelop-sdk/business-objects";

      interface Employee {
      employeeId: string;
      firstName: string;
      lastName: string;
      jobTitel: string;
      }

      await createBoEntity<Employee>({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      entity: {
      employeeId: "1",
      firstName: "John Micheal",
      lastName: "Dorian",
      jobTitel: "senior physician"
      }
      });