Type for Entity. Defaults to any.
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 for Entity. Defaults to any.
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.