@dvelop-sdk
    Preparing search index...

    Function deleteBoEntity

    • Delete a business object entity.

      Parameters

      Returns Promise<void>

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

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

      You can supply your own onResponse to react to the raw response, for example to get a notification if the entity requested for deletion didn't exist.

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

      const responseMessage: string = await deleteBoEntity({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      keyPropertyType: "number", //"string", "number" or "guid"
      keyPropertyValue: 3
      }, {
      onResponse: (response) => response.status === 204 ? "Entity does not exist." : "Entity was deleted."
      });

      console.log(responseMessage); // Entity does not exist.
    • Delete a business object entity.

      Type Parameters

      • T

      Parameters

      Returns Promise<T>

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

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

      You can supply your own onResponse to react to the raw response, for example to get a notification if the entity requested for deletion didn't exist.

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

      const responseMessage: string = await deleteBoEntity({
      systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
      authSessionId: "3f3c428d452"
      },{
      modelName: "HOSPITALBASEDATA",
      pluralEntityName: "employees",
      keyPropertyType: "number", //"string", "number" or "guid"
      keyPropertyValue: 3
      }, {
      onResponse: (response) => response.status === 204 ? "Entity does not exist." : "Entity was deleted."
      });

      console.log(responseMessage); // Entity does not exist.