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