ftos.data.updateBusinessUnit
IMPORTANT!
Starting with v24.3.0, this is renamed from updateEntityBusinessUnit to ftos.data.updateBusinessUnit.
Starting with v24.3.0, this is renamed from updateEntityBusinessUnit to ftos.data.updateBusinessUnit.
Updates a record's associated business unit.
This is a data service method for business service components.
Syntax
function ftos.data.updateBusinessUnit(businessUnitName: string, entityName: string, recordID: string): void
| Parameter | Description |
|---|---|
businessUnitName
|
Name of the business unit to which you wish to assign the entity. |
entityName
|
Name of the record's parent entity. |
recordID
|
ID of the record you wish to assign to the new business unit. |
Examples
In this example, we assign record 656f62dd-60f5-43ba-86d0-ba8c43acd719 in the employees entity to the support business unit.
ftos.data.updateBusinessUnit('support', 'employees', '656f62dd-60f5-43ba-86d0-ba8c43acd719');