@dvelop-sdk
    Preparing search index...

    Function updateBoEntity

    • Update a business object entity.

      Type Parameters

      • E = any

        Type for Entity. Defaults to any.

      Parameters

      Returns Promise<void>

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

      await updateBoEntity({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      keyPropertyType: "number", //"string", "number" or "guid"
      keyPropertyValue: 1,
      entityChange: {
      "firstName": "J.D."
      }
      });

      You can also use generics:

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

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

      await updateBoEntity<Employee>({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      keyPropertyType: "number", //"string", "number" or "guid"
      keyPropertyValue: 1,
      entityChange: {
      "firstName": "John Micheal (J.D.)"
      }
      });
    • Update a business object entity.

      Type Parameters

      • T
      • E = any

        Type for Entity. Defaults to any.

      Parameters

      Returns Promise<T>

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

      await updateBoEntity({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      keyPropertyType: "number", //"string", "number" or "guid"
      keyPropertyValue: 1,
      entityChange: {
      "firstName": "J.D."
      }
      });

      You can also use generics:

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

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

      await updateBoEntity<Employee>({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      keyPropertyType: "number", //"string", "number" or "guid"
      keyPropertyValue: 1,
      entityChange: {
      "firstName": "John Micheal (J.D.)"
      }
      });